简体   繁体   English

将房间中的音频和视频通道静音

[英]Muting audio and video channels in a Room

Is it possible via the Twilio SDK for web to stop certain audio and video channels?是否可以通过 web 的 Twilio SDK 停止某些音频和视频通道?

Let's say I have a room with members A, B, and C.假设我有一个包含成员 A、B 和 C 的房间。 I have a situation where I want "A" to be able to turn off sending audio/video to "B", but continue sending audio/video to "C"我有一种情况,我希望“A”能够关闭向“B”发送音频/视频,但继续向“C”发送音频/视频

Also, from the perspective of "A", I need "A" to be able to silence the audio and stop video coming from "B", but continue receiving from "C".另外,从“A”的角度来看,我需要“A”能够使音频静音并停止来自“B”的视频,但继续从“C”接收。

I think what you need here is Subscribe Rules .我认为您在这里需要的是订阅规则 Subscribe rules allow your application to control the tracks that a participant is subscribed to.订阅规则允许您的应用程序控制参与者订阅的轨道。

I know Stack Overflow likes that a full answer is shared, not just a link, but subscribe rules can be complicated and I recommend you read through the documentation available here: https://www.twilio.com/docs/video/api/track-subscriptions#sl-resource我知道 Stack Overflow 喜欢共享完整的答案,而不仅仅是一个链接,但订阅规则可能很复杂,我建议您通读此处提供的文档: https://www.twilio.com/docs/video/api/跟踪订阅#sl-resource

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM