Room API not working for production server

Max

Administrator
Staff member
Good day.
We can't reproduce the problem in Conference example on the server from logs you've sent: room is created successfully and streaming is working:
1661411174518.png

Please try to reproduce the problem in Conference example on your server. If this is not reproduced, please modify the example code minimally to reproduce it and send the code using this form.
 

Max

Administrator
Staff member
Hello,

Please send the MP4 file (or a download link to it if its size more than 30 M) with which the issue occurs using this form.
Seems like it has no atoms needed in header. You can also check this file in ffprobe.
 
Last edited:
Hi,

I have send the video file.

After /vod/startup, we are doing /push/startup but it is not working

We have uploaded files to s3 bucket. The recorded files are working but uploaded videos are not working
@Maximiliankevin
JavaScript:
axios({
    method: 'POST',
    url: `https://***.com:8444/rest-api/vod/startup`,
    data: {
        "uri": `vod-live://s3/${element.s3bucket}/${element.s3key}`,
        "localStreamName": Math.floor((Math.random() * 1000) + 1) + element.s3key
    }
}).then(async (response) => {
    // console.log('response from vod startup', response)
    if (response.status == 200) {
        // console.log('response.data', response)
        var fpdata = JSON.parse(response.config.data)
            console.log('youtube')
            axios({
                method: 'POST',
                url: `https://***.com:8444/rest-api/push/startup`,
                data: {
                    "rtmpUrl": channel.rtmpUrl,
                    "streamName": fpdata.localStreamName, // streamName must be same as localStreamName of previous API
                    "rtmpTransponderFullUrl": true
                }
            }).then(async (response) => {
                // console.log('response from live startup youtube', response)
                if (response.status == 200) {
                }
            }).catch(async (error) => {
                // console.log('error', error)
            })
    })
 
Last edited:

Max

Administrator
Staff member
Seems like network issue between the server and S3 bucket endpoint which leading to bitstream break. Try to use lower resolution/bitrate, use the server and the bucket in the same region. If this does not help, please provide the file (or a download link to it if its size more than 30 M) using this form.
 
Top