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
voiceActivityDetectionOptional- 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 | Status | Comment |
| WebRTC 1.0: Real-time Communication Between BrowsersThe definition of 'RTCOfferAnswerOptions' in that specification. | Candidate Recommendation | Initial definition. |
Browser compatibility
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.
Update compatibility data on GitHub
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
RTCOfferAnswerOptions
|
Chrome
Full support 50 |
Edge
Full support ≤79 |
Firefox
Full support 42 |
IE
No support No |
Opera
? |
Safari
? |
WebView Android
Full support 50 |
Chrome Android
Full support 50 |
Firefox Android
Full support 42 |
Opera Android
? |
Safari iOS
? |
Samsung Internet Android
Full support 5.0 |
| Chrome
Full support 50 |
Edge
Full support ≤79 |
Firefox
No support No |
IE
No support No |
Opera
? |
Safari
? |
WebView Android
Full support 50 |
Chrome Android
Full support 50 |
Firefox Android
No support No |
Opera Android
? |
Safari iOS
? |
Samsung Internet Android
Full support 5.0 |
Legend
- Full support
- Full support
- No support
- No support
- Compatibility unknown
- Compatibility unknown
- Non-standard. Expect poor cross-browser support.'
- Non-standard. Expect poor cross-browser support.
- Deprecated. Not for use in new websites.'
- Deprecated. Not for use in new websites.
RTCOfferAnswerOptions by Mozilla Contributors is licensed under CC-BY-SA 2.5.