Re: Constraints 2014

On 3/23/14 11:02 AM, Jan-Ivar Bruaroey wrote:
> On 3/23/14 6:30 AM, Stefan Håkansson LK wrote:
>> I think Dom has a point; it is not completely clear to me how I would
>> request different combinations of audio and video, with and without
>> constraints applied to the request, e.g. audio (no constraints) + video
>> (e.g. mandatory frameRate, optional width) etc.
>
>   var constraints = {
>       video: true,
>       audio: true,
>       require: ["frameRate"],
>       width: 1280,
>       frameRate: 60,
>   };
>   navigator.getUserMedia(constraints, success, failure);
>
> None of our constraints overlap. e.g. we have frameRate vs. 
> sampleRate, not rate.

Except sourceId, the anti-constraint.

   var constraints = {
       video: true,
       audio: true,
       sourceId: ["4930cde4-09ed-4397-81d2-8163ce322d36",// specific camera
"09bbbd91-5db9-461e-9c99-71329410cb23"], // specific mic
   };
   navigator.getUserMedia(constraints, success, failure);

.: Jan-Ivar :.

Received on Sunday, 23 March 2014 15:23:29 UTC