The DoubleRange
dictionary is used to define a range of permitted double-precision floating-point values for a property, with either or both a maximum and minimum value specified. The ConstrainDouble
dictionary is based on this, augmenting it to support exact and ideal values as well.
max
min
The specified min
and/or and max
values are required. If no match can be found that is within the given range, an error will occur.
Specification | Status | Comment |
---|---|---|
Media Capture and Streams The definition of 'DoubleRange' in that specification. | Editor's Draft | Initial definition |
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Microsoft Edge | Opera | Safari (WebKit) |
---|---|---|---|---|---|---|
Basic support | (Yes) | 50 (50) | No support | ? | No support | ? |
Feature | Android | Android Webview | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|
Basic support | ? | (Yes) | 50.0 (50) | No support | No support | ? | (Yes) |
ConstrainDoubleRange
MediaTrackConstraints
MediaTrackCapabilities
MediaTrackSupportedConstraints
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/DoubleRange