MediaStreamTrack.getCapabilities() - Web APIs 编辑
The getCapabilities()
method of the MediaStreamTrack
interface returns a MediaTrackCapabilities
object which specifies the values or range of values which each constrainable property, based upon the platform and user agent.
Once you know what the browser's capabilities are, your script can use applyConstraints()
to ask for the track to be configured to match ideal or acceptable settings. See Capabilities, constraints, and settings for details on how to work with constrainable properties.
Syntax
const capabilities = track.getCapabilities()
Return value
A MediaTrackCapabilities
object which specifies the value or range of values which are supported for each of the user agent's supported constrainable properties.
Specifications
Specification | Status | Comment |
---|---|---|
Media Capture and Streams The definition of 'getCapabilities()' in that specification. | Candidate Recommendation | Initial definition. |
Browser compatibility
BCD tables only load in the browser
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论