javascript - How to hide "This tab is using your camera or microphone" after call ended - Stack Overflow

I'm using Sinch javascript SDK to build a browser to browser video calling app.When the video ca

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
Add a ment  | 

2 Answers 2

Reset to default 6

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745264669a4619382.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信