The ULongRange
dictionary is used to define a range of permitted integer values for a property, with either or both a maximum and minimum value specified. The ConstrainULongRange
dictionary is based on this, augmenting it to support exact and ideal values as well.
Properties
max
- A numeric value in the range of signed 32-bit integers, specifying the largest permissible value of the property it describes.
min
- A numeric value in the range of signed 32-bit integers, 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 |
Media Capture and StreamsThe definition of 'ULongRange' in that specification. | Candidate Recommendation | Initial definition |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
ULongRange
|
Chrome
No support No |
Edge
No support No |
Firefox
No support No |
IE
No support No |
Opera
No support No |
Safari
No support No |
WebView Android
No support No |
Chrome Android
No support No |
Firefox Android
No support No |
Opera Android
No support No |
Safari iOS
No support No |
Samsung Internet Android
No support No |
Legend
- No support
- No support
See also
- Media Capture and Streams API
- Capabilities, constraints, and settings
ConstrainULongRange
MediaTrackConstraints
MediaTrackCapabilities
MediaTrackSupportedConstraints
ULongRange by Mozilla Contributors is licensed under CC-BY-SA 2.5.