OpenVidu / openvidu-tutorials

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

React Depenency OpenVidu-Browser and OpenVidu-React do not work properly on Google Chrome #177

Closed bajie01 closed 2 years ago

bajie01 commented 2 years ago

For Google Chrome version 102.0.5005.61, the React depenency OpenVidu-Browser and OpenVidu-React encounter the following error : getMediaError: [object OverconstrainedError] Publisher initialization failed. INPUT_VIDEO_DEVICE_NOT_FOUND: Video input device with deviceId '' not found

ehddud1006 commented 2 years ago

I am having the same problem.

image

deviceId = "" Why do I keep getting spaces in id?

CSantosM commented 2 years ago

getUserMedia will return an empty label attribute value if the permission for accessing the mediadevice is not given. https://stackoverflow.com/questions/60297972/navigator-mediadevices-enumeratedevices-returns-empty-labels

ehddud1006 commented 2 years ago

In Firefox, it asks for permission, but in Chrome it doesn't, and a blank space is inserted immediately. Chrome's microphone and camera access are allowed in the MacBook settings.

ehddud1006 commented 2 years ago

As a temporary measure, I gave the video source: default value so that I could access my computer's webcam.

image