Re: Constraints 2014

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.

.: Jan-Ivar :.

Received on Sunday, 23 March 2014 15:02:33 UTC