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
可选
true
, enabling this functionality
| 规范 | 状态 | 注释 |
|---|---|---|
|
WebRTC 1.0: Real-time Communication Between Browsers
The definition of 'RTCOfferAnswerOptions' in that specification. |
候选推荐 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
完整支持
不支持
兼容性未知
非标。预期跨浏览器支持较差。
弃用。不要用于新网站。
RTCOfferAnswerOptions
MediaDevices.getUserMedia()
Navigator.mediaDevices
RTCCertificate
RTCDTMFSender
RTCDTMFToneChangeEvent
RTCDataChannel
RTCDataChannelEvent
RTCDtlsTransport
RTCErrorEvent
RTCIceCandidate
RTCIceTransport
RTCPeerConnection
RTCPeerConnectionIceErrorEvent
RTCPeerConnectionIceEvent
RTCRtpReceiver
RTCRtpSender
RTCRtpTransceiver
RTCSctpTransport
RTCSessionDescription
RTCStatsEvent
RTCStatsReport
RTCTrackEvent