Having trouble figuring out why this works perfectly in Safari iOS and not Android Chrome throwing the exception NotReadableError: Could not start video source
.
I am closing previous track with this.videoProducer.track.stop()
.
var constraints = {
audio: false,
video: {
"width": {
"ideal": 1280
},
"height": {
"ideal": 720
},
"facingMode": {
"exact": "environment"
},
},
}
const userMedia = await navigator.mediaDevices.getUserMedia(constraints) // Will throw - NotReadableError: Could not start video source
I also tried the constraints without width and height.
{
"audio": false,
"video": {
"facingMode": {
"exact": "environment"
}
}
}
Any ideas on how to debug further or try things out will be appreciated.