RTCSctpTransport

这是 实验性技术
检查 浏览器兼容性表格 在生产中使用这之前。

RTCSctpTransport interface provides information which describes a Stream Control Transmission Protocol ( SCTP ) transport. This provides information about limitations of the transport, but also provides a way to access the underlying Datagram Transport Layer Security ( DTLS ) transport over which SCTP packets for all of an RTCPeerConnection 's data channels are sent and received.

You don't create RTCSctpTransport objects yourself; instead, you get access to the RTCSctpTransport for a given RTCPeerConnection through its sctp 特性。

Possibly the most useful property on this interface is its maxMessageSize property, which you can use to determine the upper limit on the size of messages you can send over a data channel on the peer connection.

特性

Also inherits properties from: EventTarget

RTCSctpTransport.maxChannels 只读
An integer value indicating the maximum number of RTCDataChannel s that can be open simultaneously.
RTCSctpTransport.maxMessageSize 只读
An integer value indicating the maximum size, in bytes, of a message which can be sent using the RTCDataChannel.send() 方法。
RTCSctpTransport.state 只读
A DOMString enumerated value indicating the state of the SCTP transport.
RTCSctpTransport.transport 只读
An RTCDtlsTransport object representing the DTLS transport used for the transmission and receipt of data packets.

事件处理程序

RTCSctpTransport.onstatechange
Fired when the RTCSctpTransport.state 改变。

方法

This interface has no methods, but inherits methods from: EventTarget

范例

TBD

规范

规范 状态 Comment
WebRTC 1.0: Real-time Communication Between Browsers
The definition of 'RTCSctpTransport' 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
RTCSctpTransport
Chrome 76 Edge 79 Firefox No
不支持 No
bug 1278299 .
IE No Opera No Safari No WebView Android 76 Chrome Android 76 Firefox Android No
不支持 No
bug 1278299 .
Opera Android 54 Safari iOS No Samsung Internet Android 12.0
maxChannels
Chrome 76 Edge 79 Firefox No
不支持 No
bug 1278299 .
IE No Opera No Safari No WebView Android 76 Chrome Android 76 Firefox Android No
不支持 No
bug 1278299 .
Opera Android 54 Safari iOS No Samsung Internet Android 12.0
maxMessageSize
Chrome 76 Edge 79 Firefox No
不支持 No
bug 1278299 .
IE No Opera No Safari No WebView Android 76 Chrome Android 76 Firefox Android No
不支持 No
bug 1278299 .
Opera Android 54 Safari iOS No Samsung Internet Android 12.0
onstatechange
Chrome 76 Edge 79 Firefox No
不支持 No
bug 1278299 .
IE No Opera No Safari No WebView Android 76 Chrome Android 76 Firefox Android No
不支持 No
bug 1278299 .
Opera Android 54 Safari iOS No Samsung Internet Android 12.0
state
Chrome 76 Edge 79 Firefox No
不支持 No
bug 1278299 .
IE No Opera No Safari No WebView Android 76 Chrome Android 76 Firefox Android No
不支持 No
bug 1278299 .
Opera Android 54 Safari iOS No Samsung Internet Android 12.0
transport
Chrome 76 Edge 79 Firefox No
不支持 No
bug 1278299 .
IE No Opera No Safari No WebView Android 76 Chrome Android 76 Firefox Android No
不支持 No
bug 1278299 .
Opera Android 54 Safari iOS No Samsung Internet Android 12.0

图例

完整支持
完整支持
不支持
不支持
实验。期望将来行为有所改变。
实验。期望将来行为有所改变。
见实现注意事项。

另请参阅