W3C home > Mailing lists > Public > public-webrtc@w3.org > January 2012

How to define camera resolution + getUserMedia API

From: Paul Neave <paul.neave@gmail.com>
Date: Fri, 20 Jan 2012 10:14:56 +0000
To: public-webrtc@w3.org
Message-ID: <23E0AEDE3C2340B5954CAD102F953B6B@gmail.com>
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

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:26 UTC