lightbringer
lightbringer

Reputation: 409

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

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.

Upvotes: 0

Views: 1552

Answers (1)

philnash
philnash

Reputation: 73065

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.

Upvotes: 1

Related Questions