Failed to get permission getUserMedia ()

I am trying to test screen usage using getUserMedia() . I have a version of Chrome 28 and the getUserMedia() screen capture flag is enabled, but I still get permission to reject errors.

In this screencast for the screen, I get the following error:

Error getUserMedia: NavigatorUserMediaError {code: 1, PERMISSION_DENIED: 1}

So far in this demo screenshot , I get the following demo:

PERMISSION_DENIED. Are you not SSL?

I did not have any sharing tips when visiting sites. Why does my browser refuse to allow sharing?

+4
source share
5 answers

The second demo you mentioned ( this one ) works for me in Chrome 28.

It looks like you turned on the flag, but make sure that one of them Enable screen capture support in getUserMedia() included in chrome://flags (and that you restarted Chrome after enabling this).

+4
source

I had the same resolution as the problem.
I decided to just click it in

Chrome video icon disabled video

And the inclusion of the option "Ask me to enable the video ..."

Reload the page and she will again ask if you want to download the webcam.
It worked for me.

+9
source

To capture a screen using getUserMedia you need to use HTTPS. (Sorry if you followed my link that didn't have this!)

+5
source

I faced the same situation and I decided that the camera is already in use on another page. I closed the page, repeated, and everything is in order.

+1
source

I had the same problem, only because I did not start the web page from the local server (I just opened my html page in chrome via the file system).

Using a core server such as mamp fixed it!

+1
source

Source: https://habr.com/ru/post/1490772/


All Articles