WebRTCDataChannel initial support

This commit is contained in:
Fernando Jiménez Moreno 2020-05-30 21:51:17 +02:00
parent 5788882b16
commit 4e6d3e7cec
6 changed files with 335 additions and 1 deletions

View file

@ -126,3 +126,11 @@ partial interface RTCPeerConnection {
// optional RTCRtpTransceiverInit init);
attribute EventHandler ontrack;
};
// https://www.w3.org/TR/webrtc/#rtcpeerconnection-interface-extensions-0
partial interface RTCPeerConnection {
// readonly attribute RTCSctpTransport? sctp;
RTCDataChannel createDataChannel(USVString label,
optional RTCDataChannelInit dataChannelDict = {});
attribute EventHandler ondatachannel;
};