Search code examples
webrtcapprtcdemosimplewebrtcapprtc

getUserMedia error:Failed to get access to local media - WEBRTC


I've configured the App RTC Server in my PC. When I am accessing using local host (localhost:3000). The Video call is working. But when I am using IP address getting the error. (http://192.168.0.103:3000)

Failed to get access to local media. Error name was PermissionDeniedError. Continuing without sending a stream.

Error getting user media. Only secure origins are allowed.
getUsermedia error: Failed to get access to local media.


Solution

  • getUserMedianeeds HTTPS to work. You'll have to implement HTTPS for your webserver. localhost is the only domain allowed to use getUserMedia without HTTPS.