We are using webrtc in chrome to do video conferencing.
That works but it uses our webcam with a bad resolution and in 4:3 aspect ratio. The cam however can deliver HD video in 16:9 format.
How can I control this? By changing Windows settings, chrome configuration or html code?
You can include a request for a specific resolution in the constraints object passed to getUserMedia. For example:
window.navigator.webkitGetUserMedia({
audio: true,
video: {optional:[ {minHeight:720}, {minWidth:960} ]}
}, onSuccess, onError);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With