我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译
您也可以阅读此文章的English (US)版。

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.

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 Streams
The definition of 'LongRange' in that specification.
Candidate Recommendation Initial definition

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support Yes ?50 No Yes ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support Yes Yes ?50 Yes ? ?

See also

文档标签和贡献者

 此页面的贡献者: lucian95, Sheppy
 最后编辑者: lucian95,