The LongRange
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 ConstrainLongRange
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 'LongRange' in that specification. | Candidate Recommendation | Initial definition |
Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | Yes | ? | 50 | No | Yes | ? |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | Yes | Yes | ? | 50 | Yes | ? | ? |
ConstrainLongRange
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/LongRange