是否可以为 twilio 视频设置比特率? [英] Is it possible to set the bit rate for twilio video?

查看:33
本文介绍了是否可以为 twilio 视频设置比特率?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 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?

文档说 twilio 会自动重新缩放视频以使其在低带宽下工作.但根据我的经验,情况并非如此.如何确保聊天在低带宽下正常工作?

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);

这是我设置 maxVideoBitrate 的地方.

This is where I am setting maxVideoBitrate.

twilio 版本是 3.6.7twilio-video 版本是 1.0.0

twilio version is 3.6.7 twilio-video version is 1.0.0

还有codecname,根据googCodecName是VP8.codecImplementationName 是 libvpx.

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

推荐答案

Twilio 开发人员布道者在这里.

Twilio developer evangelist here.

TwilioVideo 确实支持设置视频和音频的最大比特率,但它不是 1.0.0 初始版本的一部分.

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.

对设置 maxVideoBitratemaxAudioBitrate 的支持是 在 1.3.0 版中发布.如果不是最新的 1.6.0,我建议至少升级到 1.3.0 版本.

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.

这篇关于是否可以为 twilio 视频设置比特率?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆