检测另一个选项卡是否在客户端浏览器上共享屏幕,并阻止它们共享
通常,使用网络摄像头,如果浏览器选项卡或桌面应用程序正在使用网络摄像头,其他来源在第一个应用程序停止之前才能使用该网络摄像头。
以类似的方式,当我的Web应用程序也试图共享屏幕时,是否可以检测是否已经在另一个选项卡中共享屏幕?
如果是这样,是否有一种方法可以在开始我的其他流之前终止其他流?
Generally, with a webcam, if a browser tab, or a desktop app is using the webcam, other sources cannot use that webcam until the first app stops.
In a similar way is it possible to detect if there is a screen already being shared in another tab while my web app also tries to share a screen?
If so, is there a way to terminate that other stream before starting mine?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论