summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/webidls/enabled/RTCPeerConnection.webidl
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/web-sys/webidls/enabled/RTCPeerConnection.webidl')
-rw-r--r--vendor/web-sys/webidls/enabled/RTCPeerConnection.webidl11
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/web-sys/webidls/enabled/RTCPeerConnection.webidl b/vendor/web-sys/webidls/enabled/RTCPeerConnection.webidl
index 9c74b611e..b91563e99 100644
--- a/vendor/web-sys/webidls/enabled/RTCPeerConnection.webidl
+++ b/vendor/web-sys/webidls/enabled/RTCPeerConnection.webidl
@@ -36,6 +36,15 @@ enum RTCIceConnectionState {
"closed"
};
+enum RTCPeerConnectionState {
+ "closed",
+ "failed",
+ "disconnected",
+ "new",
+ "connecting",
+ "connected"
+};
+
dictionary RTCDataChannelInit {
boolean ordered = true;
unsigned short maxPacketLifeTime;
@@ -89,6 +98,7 @@ interface RTCPeerConnection : EventTarget {
readonly attribute boolean? canTrickleIceCandidates;
readonly attribute RTCIceGatheringState iceGatheringState;
readonly attribute RTCIceConnectionState iceConnectionState;
+ readonly attribute RTCPeerConnectionState connectionState;
[Pref="media.peerconnection.identity.enabled"]
readonly attribute Promise<RTCIdentityAssertion> peerIdentity;
[Pref="media.peerconnection.identity.enabled"]
@@ -130,6 +140,7 @@ interface RTCPeerConnection : EventTarget {
attribute EventHandler onremovestream;
attribute EventHandler oniceconnectionstatechange;
attribute EventHandler onicegatheringstatechange;
+ attribute EventHandler onconnectionstatechange;
Promise<RTCStatsReport> getStats (optional MediaStreamTrack? selector);