W3C home > Mailing lists > Public > public-media-capture@w3.org > March 2012

Re: Constraints and Capabilities API for getUserMedia: more detailed proposal

From: Li Li <Li.NJ.Li@huawei.com>
Date: Wed, 28 Mar 2012 02:32:27 +0000
To: "public-media-capture@w3.org" <public-media-capture@w3.org>
Message-id: <B60F8F444AAC9C49A9EF0D12D05E094221677A8D@szxeml535-mbs.china.huawei.com>


Example:

navigator.getUserMedia(
  {mandatory:[video-min-height:600, video-max-bandwidth:500],
    optional:[
      video-max-aspectratio:1.333333333333,
      video-min-timebetweenrefframes:20,
      video-min-framerate:30,
      video-autowhitebalance:on]},
  gotStream, didntGetStream);


===
Capabilities
===



If the getCapabilities() returns multiple devices (e.g. camera001, camera002), I wonder how navigator.getUserMedia() is able to select which device to use. Do we have to say: camera001.getUserMedia(), or somehow designate the target device in the argument?

Thanks.

Li
Received on Wednesday, 28 March 2012 02:33:54 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:14:59 GMT