twilio / video-quickstart-js

A quickstart and code samples for Twilio Video JavaScript SDK. https://www.twilio.com/docs/video
Other
389 stars 337 forks source link

Quickstart on localhost is no longer working on localhost (navigator.mediaDevices does not exist) #177

Closed lhamoudi closed 3 years ago

lhamoudi commented 3 years ago

Same as https://github.com/twilio/video-quickstart-js/issues/157

I swear this used to work for me as a simple test bed. But now following a pull, it doesn't. When I join the room I get

TypeError: Cannot read property 'getLogger' of undefined Cause: navigator.mediaDevices does not exist.

Solution: If you're sure that the browser supports navigator.mediaDevices, make sure your app is being served from a secure context (localhost or an https domain).

manjeshbhargav commented 3 years ago

@lhamoudi I think updating the sdk should solve the issue. Please nuke your node_modules and package-lock.json and run npm install again. That should solve the issue.

lhamoudi commented 3 years ago

Yeah that was it Manjesh I'm a dummy. Neglected to npm install again after a pull.