Re: draft proposal : active multiple devices for getUserMedia

On 04/12/2012 04:53 AM, William Lin wrote:
> Hi,
>
> in these days, Constraints and Capabilities API for getUserMedia were 
> discussed while i found one scenario doesn't be covered:
> "users may want to initiate capture from multiple devices at one time 
> in multiple media streams" (refer to 
> http://www.w3.org/TR/capture-scenarios/#multiple-active-devices).
> is it possible adding the options to set the number of active devices? 
> and the callback function needs to change:
Given that the normal case will be one device, what's the cost of this 
relative to "just" calling getUserMedia multiple times?

And how do you see the user interaction dialog looking?

>
>         2.1.3 NavigatorUserMediaSuccessCallback
>
> [Callback=FunctionOnly, NoInterfaceObject]
> interfaceNavigatorUserMediaSuccessCallback  {
>      void  handleEvent  <http://dev.w3.org/2011/webrtc/editor/getusermedia.html#widl-NavigatorUserMediaSuccessCallback-handleEvent-void-LocalMediaStream-stream>  (LocalMediaStream  stream);
> };
>
> -->
> [Callback=FunctionOnly, NoInterfaceObject]
> interfaceNavigatorUserMediaSuccessCallback  {
>      void  handleEvent  <http://dev.w3.org/2011/webrtc/editor/getusermedia.html#widl-NavigatorUserMediaSuccessCallback-handleEvent-void-LocalMediaStream-stream>  (LocalMediaStream[]  streams);
> };
>
> br,
> william

Received on Friday, 13 April 2012 13:48:04 UTC