Twilio 视频静音参与者 [英] Twilio video mute participant

查看:32
本文介绍了Twilio 视频静音参与者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用新的 Twilio 视频 API 并且缺少文档,我无法弄清楚如何在视频通话中将参与者(甚至本地)静音.请帮忙.

With the new Twilio video API and the absence of the documentation I can't figure out how to mute a participant (even local) in a video call. Please help.

推荐答案

控制LocalVideoTrack的单个LocalAudioTrack的静音/取消静音或暂停/取消暂停状态,您可以使用 LocalTrack#enableLocalTrack#disable 方法.

To control the muted/unmuted or the paused/unpaused state of a single LocalAudioTrack of LocalVideoTrack, you can use the LocalTrack#enable and LocalTrack#disable methods.

例如,将本地客户端发送的视频轨道静音:

For example, to mute a video track being sent by the local client:

var localMedia = conversation.localMedia;
localMedia.mute();

虽然了解更多关于您是哪个视频版本会很有帮助使用所以我可能会帮助您找到正确的测试版文档.如果您有任何其他问题,我很乐意为您提供更深入的帮助.给我发送电子邮件至 mspeir@twilio.com.

Though it would be helpful to know more about which version of Video you are using so I might help you find the correct beta docs. If you have any additional questions, I'd love to help you a little more in depth. Shoot me an email to mspeir@twilio.com.

这篇关于Twilio 视频静音参与者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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