HTML 5浏览器相机权限 [英] HTML 5 Browser camera permission

查看:325
本文介绍了HTML 5浏览器相机权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Web应用程序,该应用程序使用WEB RTC进行两个对等方之间的视频通信.一切正常,但是我们在生产中头疼.

I have web application that uses WEB RTC for video communication between two peers. Everything works fine, but we have one headache in production.

问题是,当浏览器请求摄像头和麦克风许可时,弹出窗口经常被用户忽略,因此他们为为什么不显示视频而感到沮丧.所以我想知道是否有一些库可以预测显示权限弹出的位置,因此我可以从html中显示一些箭头并使它更明显?

The thing is that when browser asks for camera and microphone permission, the pop up is often ignored by users and therefor they are getting frustrated why their video is not shown. So i am wondering if there is some library that can predict where the permission pop up is shown, so i can show some arrow from my html and make it more obvious?

推荐答案

getUserMedia函数的大多数浏览器引擎实现都需要用户权限才能访问网络摄像头.视频数据流仅在用户操作后才开始.我认为我们无法访问网络摄像头未经用户访问权限. 如果您想避免用户权限,那么我们只能在html呈现引擎内部避免权限.

Most of the browser engine implementation of getUserMedia function requires user permission to access the webcam.The video data stream starts only after user action.I think we cannot access webcam without user access permission. If you want to avoid user permission then we have to avoid permission only inside the html rendering engine.

这篇关于HTML 5浏览器相机权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆