{{APIRef("Media Capture and Streams")}}
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 {{domxref("ConstrainDouble")}} dictionary is based on this, augmenting it to support exact and ideal values as well.
Properties
max
- A floating-point value specifying the largest permissible value of the property it describes.
min
- A floating-point value specifying the smallest permissible value of the property it describes.
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.
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName('Media Capture', '#idl-def-DoubleRange', 'DoubleRange')}} | {{Spec2('Media Capture')}} | Initial definition |
Browser compatibility
{{CompatibilityTable}}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Microsoft Edge | Opera | Safari (WebKit) |
---|---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown}} | {{CompatGeckoDesktop(50)}} | {{CompatNo}} | {{CompatUnknown}} | {{CompatNo}} | {{CompatUnknown}} |
Feature | Android | Android Webview | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|
Basic support | {{CompatUnknown}} | {{CompatVersionUnknown}} | {{CompatGeckoMobile(50)}} | {{CompatNo}} | {{CompatNo}} | {{CompatUnknown}} | {{CompatVersionUnknown}} |
See also
- Media Capture and Streams API
- Capabilities, constraints, and settings
- {{domxref("ConstrainDoubleRange")}}
- {{domxref("MediaTrackConstraints")}}
- {{domxref("MediaTrackCapabilities")}}
- {{domxref("MediaTrackSupportedConstraints")}}