RTCOfferAnswerOptions
The 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()
uses RTCOfferOptions
and createAnswer()
uses RTCAnswerOptions
.
Properties
-
voiceActivityDetection
Optional -
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
Specifications
Specification |
---|
WebRTC 1.0: Real-Time Communication Between Browsers (WebRTC 1.0) # dom-rtcofferansweroptions |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
RTCOfferAnswerOptions |
50 |
≤79 |
42 |
No |
? |
11 |
50 |
50 |
42 |
? |
11 |
5.0 |
voiceActivityDetection |
50 |
≤79 |
No |
No |
? |
11 |
50 |
50 |
No |
? |
11 |
5.0 |
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCOfferAnswerOptions