Is it possible to set the bit rate for twilio video?

大兔子大兔子 提交于 2019-12-11 14:46:05

问题


I am developing a video chat application with twilio-video. I observed that the video chat gets stuck in low bandwidths. Is it possible to set the bitrate for the video so that the video chat works in low bandwidths too?

The documentation says that twilio will automatically rescale the video to make it work in low bandwidths. But in my experience, this hasnt been the case. How can I ensure that the chat works fine in low bandwidths?

 var connectOptions = {
                name: roomName,
                logLevel: 'debug',
                tracks: mediaStream.getTracks(),
                maxAudioBitrate: 16000,
                maxVideoBitrate: 64000,
            };
            return Video.connect(data.token, connectOptions);

This is where I am setting maxVideoBitrate.

twilio version is 3.6.7 twilio-video version is 1.0.0

And the codecname, according to googCodecName is VP8. codecImplementationName is libvpx.


回答1:


Twilio developer evangelist here.

Twilio Video does support setting the maximum bitrate for video and audio, however it was not part of the initial version 1.0.0 release.

Support for setting maxVideoBitrate and maxAudioBitrate was released in version 1.3.0. I recommend upgrading to at least version 1.3.0, if not to the latest 1.6.0.

Let me know if that helps.



来源:https://stackoverflow.com/questions/47636803/is-it-possible-to-set-the-bit-rate-for-twilio-video

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!