Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getUserMedia() not supported in chrome

I am trying to access my webcam using the getUserMedia() using my own website that run using my own ip address.

it was working fine until i tried my website again. i had tried the other demo site and the error given was getUserMedia is not supported.

Chrome version v47.0.2526.80m 32bits

enter image description here

I am able to access the webcam if i enter localhost instead of my ipadress. it also work in firefox.

like image 736
Mick Jack Avatar asked Dec 11 '15 04:12

Mick Jack


People also ask

Which browsers support getUserMedia?

getUserMedia one. Get User Media/Stream API is supported by Mozilla Firefox browser version 36 to 61.

Is getUserMedia deprecated?

getUserMedia() Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes.

Does getUserMedia work on iOS?

Since iOS 11, getUserMedia is supposed to finally work on Apple devices. But in fact it does not work. The JavaScript sample code below works on all other OS: Blackberry, Android, etc...

How do I use Navigator MediaDevices getUserMedia?

When getUserMedia() is invoked, the browser asks for permission from the user to use the media inputs (camera or microphone or both) connected to the user device. Syntax : navigator. mediaDevices.

Can't getUserMedia () work on Chrome 47?

Starting with Chrome 47, getUserMedia () requests are only allowed from secure origins: HTTPS or localhost. Show activity on this post. I am not sure if this exactly solves your problem. However, it might be helpful to someone who is struggling to have getUserMedia () in a working state.

What is getUserMedia TypeError in chrome?

Chrome will throw a “TypeError: Failed to execute ‘getUserMedia’ on ‘MediaDevices’: At least one of audio and video must be requested”. It’s thrown by Chrome when the user closes the privacy dialog asking for mic and webcam access.

Does getUserMedia work on iOS 11?

Since iOS 11, getUserMedia is supposed to finally work on Apple devices. But in fact it does not work. The JavaScript sample code below works on all other OS: Blackberry, Android, etc... Except on iOS as usual.

What is getUserMedia () in web API?

As an API that may involve significant privacy concerns, getUserMedia () is held by the specification to very specific requirements for user notification and permission management. First, getUserMedia () must always get user permission before opening any media gathering input such as a webcam or microphone.


1 Answers

Chrome is requiring secure origins (HTTPS) for getUserMedia.

Starting with Chrome 47, getUserMedia() requests are only allowed from secure origins: HTTPS or localhost.

https://developers.google.com/web/updates/2015/10/chrome-47-webrtc?hl=en

like image 83
Clay Avatar answered Sep 23 '22 06:09

Clay