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.
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.
指定
min
and/or and
max
值为
required
. If no match can be found that is within the given range, an error will occur.
| 规范 | 状态 | 注释 |
|---|---|---|
|
媒体捕获和流
The definition of 'ULongRange' in that specification. |
候选推荐 | 初始定义 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
ULongRange
|
Chrome No | Edge No | Firefox No | IE No | Opera No | Safari No | WebView Android No | Chrome Android No | Firefox Android No | Opera Android No | Safari iOS No | Samsung Internet Android No |
不支持
ConstrainULongRange
MediaTrackConstraints
MediaTrackCapabilities
MediaTrackSupportedConstraints
ULongRange
AudioStreamTrack
BlobEvent
CanvasCaptureMediaStream
ConstrainBoolean
ConstrainDOMString
ConstrainDouble
ConstrainLong
DoubleRange
HTMLCanvasElement.captureStream()
LongRange
MediaDevices
MediaStream
MediaStreamTrack
MediaStreamTrackEvent
MediaTrackCapabilities
MediaTrackConstraints
MediaTrackSettings
MediaTrackSupportedConstraints
Navigator.mediaDevices
NavigatorUserMedia
NavigatorUserMediaError
VideoStreamTrack
navigator.mediaDevices.getUserMedia()