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
I am able to access the webcam if i enter localhost instead of my ipadress. it also work in firefox.
getUserMedia one. Get User Media/Stream API is supported by Mozilla Firefox browser version 36 to 61.
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.
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...
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.
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.
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With