HTML 5 Browser camera permission

2019-09-05 13:34发布

问题:

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.