- From: Anant Narayanan <anant@mozilla.com>
- Date: Fri, 20 Jan 2012 10:30:18 -0800
- To: public-webrtc@w3.org
Hi Paul, On 1/20/2012 2:14 AM, Paul Neave wrote: > 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? In the current spec this is not possible, it is expected that the user-agent will choose the most appropriate format and resolution. However, we are aware of the need for some kinds of applications to be able to specify certain requirements, and are actively working on a spec that would satisfy both developers (w.r.t. quality) and users (w.r.t. privacy). Two proposals that are being discussed are: Capabilities - http://lists.w3.org/Archives/Public/public-webrtc/2012Jan/0041.html Hints - http://lists.w3.org/Archives/Public/public-media-capture/2012Jan/0014.html It's still pretty early to determine which route we'll end up taking, but if you have strong opinions on what this interface should look like please chime in on the corresponding thread. Regards, -Anant
Received on Friday, 20 January 2012 18:30:46 UTC