OpenVidu / openvidu-tutorials

OpenVidu tutorials to get started
http://openvidu.io/tutorials
Apache License 2.0
228 stars 255 forks source link

"Publisher initialization failed. TypeError: Cannot read property 'getUserMedia' of undefined" #165

Closed ipeakermit closed 2 years ago

ipeakermit commented 3 years ago

No doubt I have a misconfiguration problem. I have openvideo server running on HOST:8443. Then I run any tutorial, for example openvidu-hello-world in HOST:8080.

After loading and clicking through the initial config from hello-world I get the JS error:

Publisher initialization failed. TypeError: Cannot read property 'getUserMedia' of undefined

image

On the other hand the server at HOST:8443 is working perfectly.

How to troubleshoot?

ipeakermit commented 2 years ago

To answer my own question, the error appears to be caused by the default insecure connection to the hello-world service I was using. Upgrading to a secure connection appears to resolve the issue.