Re: Why ignoring unknown mandatory constraints is not stupid

On 11/17/13 11:40 PM, Harald Alvestrand wrote:
> Done: If I'm doing an application whose only purpose is analyzing houses
> for isolation hotspots, getting a non-thermal camera will just mean that
> I have to make code paths to deal with "this is a camera, but the data
> I'm getting from it is completely nonsensical". I don't want to spend
> time doing that.

I'm not saying you have to. One line is all it takes:

   if (!browser.getSupportedConstraints().hasOwnProperty("thermal")) return false;

This is an app decision.

.: Jan-Ivar :.

Received on Monday, 18 November 2013 20:36:58 UTC