How to define camera resolution + getUserMedia API

It appears that the getUserMedia API doesn't have any options to specify the resolution of the video capture, is that correct?

Here are two good demos which work in the latest Chrome Canary: http://webrtc.cloudfoundry.com/get_user_media and another: http://miernicki.com/cam.html

On my computer (OS X 10.7, MacBook Pro) the video image is 352 x 288 pixels, but my webcam is capable of much higher resolutions (and ratios, up to HD). Using the latest Opera Labs build http://dev.opera.com/articles/view/getusermedia-access-camera-privacy-ui/ the video resolution is higher at 640 x 480. For performance and bandwidth reasons, it would be better to be able to specify the camera resolution but this doesn't seem possible, other than by drawing the video object into a canvas at a smaller (or larger) size.

Can anyone clarify this if this is possible, and if not, what is the alternative?

Many thanks,
Paul.

Received on Friday, 20 January 2012 17:31:58 UTC