googlecodelabs / webrtc-web

Realtime communication with WebRTC
https://codelabs.developers.google.com/codelabs/webrtc-web/
Apache License 2.0
755 stars 351 forks source link

Exercise 4 doesn't work because we're serving over http instead of https #125

Open mdifl opened 3 years ago

mdifl commented 3 years ago

Following the exercise in step 4 'Uncaught TypeError: Cannot read property 'getUserMedia' of undefined'

If you're using chrome then this doesn't work because unless you've set up an ssl cert for your server setup Chrome won't allow you to request video feed. There's no reference to this error that I could find in the exercise itself. There was no reference to this potential problem in the exercise so it was very time consuming to learn what the problem was.