RTCOfferOptions

RTCOfferOptions dictionary is used to provide optional settings when creating an RTCPeerConnection offer with the createOffer() 方法。

特性

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

iceRestart 可选
A Boolean which, when set to true , tells createOffer() to generate and use new values for the identifying properties of the SDP it creates, resulting in a request that triggers renegotiation of the ICE connection. This is useful if network conditions have changed in a way that make the current configuration untenable or impractical, for instance.

规范

规范 状态 Comment
WebRTC 1.0: Real-time Communication Between Browsers
The definition of 'RTCOfferOptions' 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
RTCOfferOptions Chrome 50 Edge ≤79 Firefox 42
42
RTCOfferOptions was not based on RTCOfferAnswerOptions until Firefox 42.
33
IE No Opera ? Safari ? WebView Android 50 Chrome Android 50 Firefox Android 42
42
RTCOfferOptions was not based on RTCOfferAnswerOptions until Firefox 42.
33
Opera Android ? Safari iOS ? Samsung Internet Android 5.0
iceRestart Chrome 50 Edge ≤79 Firefox 48 IE No Opera ? Safari ? WebView Android 50 Chrome Android 50 Firefox Android 48 Opera Android ? Safari iOS ? Samsung Internet Android 5.0

图例

完整支持
完整支持
不支持
不支持
兼容性未知
兼容性未知
见实现注意事项。