HTML 5 Browser camera permission

旧街凉风 提交于 2020-01-16 08:58:07

问题


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

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?


回答1:


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.



来源:https://stackoverflow.com/questions/32994643/html-5-browser-camera-permission

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!