RTCOfferAnswerOptions

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 options parameter when calling createOffer() or createAnswer() on an RTCPeerConnection .

Each of createOffer() and createAnswer() use RTCOfferAnswerOptions as the base type for their options 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

规范

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

浏览器兼容性

更新 GitHub 上的兼容性数据
Desktop Mobile
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

图例

完整支持
完整支持
不支持
不支持
兼容性未知
兼容性未知
非标。预期跨浏览器支持较差。
非标。预期跨浏览器支持较差。
弃用。不要用于新网站。
弃用。不要用于新网站。