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

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 UTC