I'm trying to get a lower resolution from the webcam
navigator.getUserMedia({audio: true,
video: {
"mandatory" : {maxWidth : 320},
"optional" : []
}
}, function(stream) {
videoElement.src = URL.createObjectURL(stream);
}, function(error) {console.log(e)});
Everything works fine, but videoElement.videoWidth
is still 640. This is the same whatever video constraints I specify. This is happening only in Firefox, in Chrome everything works fine.
Does anyone know why?
I also tried specifying maxFrameRate
, but this is also ignored. I also tried without optional
and with maxHeight too.