安全上下文
此特征只可用于 安全上下文 (HTTPS),在某些或所有 支持浏览器 .

这是 实验性技术
检查 浏览器兼容性表格 要小心谨慎在生产中使用这之前。

OverconstrainedError 接口在 Media Capture and Streams API indicates that the set of desired capabilities for the current MediaStreamTrack cannot currently be met. When this event is thrown on a MediaStreamTrack, it is muted until either the current constraints can be established or until satisfiable constraints are applied.

构造函数

OverconstrainedError.OverconstrainedError()
创建新的 OverconstrainedError 对象。

特性

OverconstrainedError.constraint 只读

Returns the constraint that was supplied in the constructor, meaning the constraint that was not satisfied.

OverconstrainedError.message 只读

Returns the text supplied in the constructor.

OverconstrainedError.name 只读
Will always return OverconstrainedError .

方法

None.

规范

规范 状态 注释
媒体捕获和流
The definition of 'OverconstrainedError' in that specification.
候选推荐 初始定义。

浏览器兼容性

The compatibility table in 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. 更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
OverconstrainedError Chrome 63 Edge ≤79 Firefox ? IE ? Opera 50 Safari ? WebView Android 63 Chrome Android 63 Firefox Android ? Opera Android 46 Safari iOS ? Samsung Internet Android 8.0
OverconstrainedError() 构造函数 Chrome 63 Edge ≤79 Firefox ? IE ? Opera 50 Safari ? WebView Android 63 Chrome Android 63 Firefox Android ? Opera Android 46 Safari iOS ? Samsung Internet Android 8.0
constraint Chrome 63 Edge ≤79 Firefox ? IE ? Opera 50 Safari ? WebView Android 63 Chrome Android 63 Firefox Android ? Opera Android 46 Safari iOS ? Samsung Internet Android 8.0
message Chrome 63 Edge ≤79 Firefox ? IE ? Opera 50 Safari ? WebView Android 63 Chrome Android 63 Firefox Android ? Opera Android 46 Safari iOS ? Samsung Internet Android 8.0
名称 Chrome 63 Edge ≤79 Firefox ? IE ? Opera 50 Safari ? WebView Android 63 Chrome Android 63 Firefox Android ? Opera Android 46 Safari iOS ? Samsung Internet Android 8.0

图例

完整支持

完整支持

兼容性未知 ?

兼容性未知

实验。期望将来行为有所改变。

实验。期望将来行为有所改变。

元数据

  • 最后修改: