WebRTC API's RTCOfferAnswerOptions dictionary is used to specify options that configure and control the process of creating WebRTC offers or answers. It's used as the base type for the 选项 parameter when calling createOffer() or createAnswer() RTCPeerConnection .

Each of createOffer() and createAnswer() 使用 RTCOfferAnswerOptions as the base type for their 选项 parameter's dictionary. createOffer() 使用 RTCOfferOptions and createAnswer() 使用 RTCAnswerOptions .

特性

voiceActivityDetection 可选
For configurations of systems and codecs that are able to detect when the user is speaking and toggle muting on and off automatically, this option enables and disables that behavior. The default value is true , enabling this functionality

规范

规范 状态 注释
WebRTC 1.0: Real-time Communication Between Browsers
The definition of 'RTCOfferAnswerOptions' in that specification.
候选推荐 初始定义。

浏览器兼容性

The compatibility table on 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
RTCOfferAnswerOptions Chrome 50 Edge ≤79 Firefox 42 IE No Opera ? Safari ? WebView Android 50 Chrome Android 50 Firefox Android 42 Opera Android ? Safari iOS ? Samsung Internet Android 5.0
voiceActivityDetection 弃用 非标 Chrome 50 Edge ≤79 Firefox No IE No Opera ? Safari ? WebView Android 50 Chrome Android 50 Firefox Android No Opera Android ? Safari iOS ? Samsung Internet Android 5.0

图例

完整支持

完整支持

不支持

不支持

兼容性未知 ?

兼容性未知

非标。预期跨浏览器支持较差。

非标。预期跨浏览器支持较差。

弃用。不要用于新网站。

弃用。不要用于新网站。

元数据

  • 最后修改: