W3C home > Mailing lists > Public > public-media-capture@w3.org > October 2014

Re: Return value of getSupportedConstraints (Re: [Bug 26654] WebIDL types needed in Constrainable application)

From: Jan-Ivar Bruaroey <jib@mozilla.com>
Date: Fri, 10 Oct 2014 13:38:00 -0400
Message-ID: <54381978.5080500@mozilla.com>
To: Harald Alvestrand <harald@alvestrand.no>, public-media-capture@w3.org
On 10/10/14, 1:05 PM, Harald Alvestrand wrote:
> Returning a truthy value requires changing the returned value according
> to what the type of the constraint is. That's the odd part.

All types are ConstrainXxx something so returning this should do:

   { width: {}, height: {}, aspectRatio: {}, frameRate: {}, facingMode: 
{} };

This is a constant anyway.

.: Jan-Ivar :.
Received on Friday, 10 October 2014 17:38:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:26:30 UTC