RTCAnswerOptions

RTCAnswerOptions dictionary is used to provide optional settings when creating an SDP answer using RTCPeerConnection.createOffer() after receiving an offer from a remote peer. createOffer() method's options parameter is of this type.

特性

This dictionary inherits properties from the RTCOfferAnswerOptions dictionary, on which it's based.

注意: At this time, RTCAnswerOptions does not have any additional properties defined beyond those included in RTCOfferAnswerOptions . However, this is likely to change in the future, so the type has been defined in preparation for that eventuality.

规范

规范 状态 Comment
WebRTC 1.0: Real-time Communication Between Browsers
The definition of 'RTCAnswerOptions' 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
RTCAnswerOptions 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

图例

完整支持
完整支持
不支持
不支持
兼容性未知
兼容性未知