Hi we are having an issue with:
OV = new OpenVidu();
OV.getDevices().then(devices => {
var first = 0;
var audio = false
var video = false
var id = null
devices.forEach(function(device) {
console.log(device.kind)
console.log(device.deviceId)
if (first === 0 && device.kind === ‘videoinput’) {
first = 1;
video = true
id = device.deviceId;
}
else if(device.kind === ‘audioinput’){
audio = true
}
})
if(audio && video){
userBrowser(id);
}
the device.deviceId is coming out undefined.
It works for some browsers but not for others?
We are on 2.15.
Thanks,
Max
@MaxRiviam hey openvidu does not support all browsers some browser which are famous and widely used like chrome,firefox ,opera ,edge …
please check openvidu docs for more info
So please tell us which browser you are testing so we can help you
Thanks
Hey Vipin:
We are using Chrome and our version is 83.0.4103.116 (Official Build) (64-bit)
Hello Max,
please make sure you have devices permissions granted.
You also can test the devices running navigator.mediaDevices.enumerateDevices on the browser console. It will be return a promise.
In addiction you can test if you have a problem with webrtc and check if the behavior is the same testing webrtc samples https://webrtc.github.io/samples/src/content/devices/input-output/
please make sure you have done promising as @CSantosM said.
second share your browser console log
Thanks