如何像Google Meet一样实现相机切换
我正在尝试实现Google Meet具有的诸如开/关切口之类的东西。我尝试从getusermedia获取曲目并启用设置= true/fals,它可以正常工作,但摄像机指示灯仍在始终出现。他们如何切换相机和指示灯?
I am trying to implement something like the camera on/off toggle that Google Meet has. I have tried getting the tracks from getUserMedia and setting enabled = true/false, it works but the camera indicator light is still on all the time. How are they able to toggle the camera and the indicator light?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要丢失相机指示灯,您将必须删除对流的任何引用(不只是设置为false)。
因此,您必须从同伴中删除轨道。
感谢收发器api 同伴没有重新谈判的冰。
To lose the camera indicator you will have to remove any reference to the stream (no just set enabled to false).
So you have to remove the track from the peer.
Thanks to Transceiver APi you can easily switch/remove track from the peer without renegotiate the ice.