RTCRtpTransceiverInit

RTCRtpTransceiverInit dictionary is used when calling the WebRTC function RTCPeerConnection.addTransceiver() to provide configuration options for the new transceiver.

特性

direction 可选
The new transceiver's preferred directionality. This value is used to initialize the new RTCRtpTransceiver object's RTCRtpTransceiver.direction 特性。
sendEncodings 可选
A list of encodings to allow when sending RTP media from the RTCRtpSender . Each entry is of type RTCRtpEncodingParameters .
streams 可选
A list of MediaStream objects to add to the transceiver's RTCRtpReceiver ; when the remote peer's RTCPeerConnection 's track event occurs, these are the streams that will be specified by that event.

规范

规范 状态 Comment
WebRTC 1.0: Real-time Communication Between Browsers
The definition of 'RTCRtpTransceiverInit' 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
RTCRtpTransceiverInit Chrome 69 Edge ≤18 Firefox 59 IE 不支持 No Opera ? Safari ? WebView Android 69 Chrome Android 69 Firefox Android 59 Opera Android ? Safari iOS ? Samsung Internet Android 10.0
direction Chrome 69 Edge ≤18 Firefox 59 IE 不支持 No Opera ? Safari ? WebView Android 69 Chrome Android 69 Firefox Android 59 Opera Android ? Safari iOS ? Samsung Internet Android 10.0
sendEncodings Chrome 69 Edge ≤18 Firefox 不支持 No
注意事项
No
注意事项
sendEncodings is not yet implemented in Firefox. See bug 1396918 .
IE 不支持 No Opera ? Safari ? WebView Android 69 Chrome Android 69 Firefox Android 不支持 No
注意事项
No
注意事项
sendEncodings is not yet implemented in Firefox. See bug 1396918 .
Opera Android ? Safari iOS ? Samsung Internet Android 10.0
streams Chrome 69 Edge ≤18 Firefox 59 IE 不支持 No Opera ? Safari ? WebView Android 69 Chrome Android 69 Firefox Android 59 Opera Android ? Safari iOS ? Samsung Internet Android 10.0

图例

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

另请参阅