mirror of
https://github.com/servo/servo.git
synced 2025-08-08 15:05:35 +01:00
Add ICEConnectionState to RTCPeerConnection
This commit is contained in:
parent
209caa418b
commit
fc25a80892
3 changed files with 76 additions and 7 deletions
|
@ -20,7 +20,7 @@ interface RTCPeerConnection : EventTarget {
|
|||
Promise<void> addIceCandidate(optional RTCIceCandidateInit candidate);
|
||||
// readonly attribute RTCSignalingState signalingState;
|
||||
readonly attribute RTCIceGatheringState iceGatheringState;
|
||||
// readonly attribute RTCIceConnectionState iceConnectionState;
|
||||
readonly attribute RTCIceConnectionState iceConnectionState;
|
||||
// readonly attribute RTCPeerConnectionState connectionState;
|
||||
// readonly attribute boolean? canTrickleIceCandidates;
|
||||
// static sequence<RTCIceServer> getDefaultIceServers();
|
||||
|
@ -31,7 +31,7 @@ interface RTCPeerConnection : EventTarget {
|
|||
attribute EventHandler onicecandidate;
|
||||
// attribute EventHandler onicecandidateerror;
|
||||
// attribute EventHandler onsignalingstatechange;
|
||||
// attribute EventHandler oniceconnectionstatechange;
|
||||
attribute EventHandler oniceconnectionstatechange;
|
||||
attribute EventHandler onicegatheringstatechange;
|
||||
// attribute EventHandler onconnectionstatechange;
|
||||
|
||||
|
@ -95,3 +95,13 @@ enum RTCIceGatheringState {
|
|||
"gathering",
|
||||
"complete"
|
||||
};
|
||||
|
||||
enum RTCIceConnectionState {
|
||||
"new",
|
||||
"checking",
|
||||
"connected",
|
||||
"completed",
|
||||
"disconnected",
|
||||
"failed",
|
||||
"closed"
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue