admin管理员组文章数量:1417418
I'm using Sinch javascript SDK to build a browser to browser video calling app. When the video call is ended with a call to call.hangup();
in chrome (at least) the red camera icon is still visible with the message "This tab is using your camera or microphone".
How can I hide this warning after the call has ended? Is there a call in the Sinch SDK I should be making, or something in the underlying WebRTC framework?
I'm using Sinch javascript SDK to build a browser to browser video calling app. When the video call is ended with a call to call.hangup();
in chrome (at least) the red camera icon is still visible with the message "This tab is using your camera or microphone".
How can I hide this warning after the call has ended? Is there a call in the Sinch SDK I should be making, or something in the underlying WebRTC framework?
Share Improve this question asked Oct 6, 2017 at 17:39 Jonny LeighJonny Leigh 1252 silver badges8 bronze badges 1- I found this github ment to be helpful: github./streamproc/MediaStreamRecorder/issues/… – raksheetbhat Commented Apr 12, 2019 at 8:17
2 Answers
Reset to default 6You need to ensure that all MediaStreamTracks are stopped. If you have access to the stream from getUserMedia, doing this should help:
stream.getTracks().forEach(t => t.stop())
I found the following was required:
sinchClient.stopActiveConnection();
版权声明:本文标题:javascript - How to hide "This tab is using your camera or microphone" after call ended - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745264668a2650527.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论