mirror of
https://github.com/servo/servo.git
synced 2025-08-14 18:05:36 +01:00
Add SignalingState to RTCPeerConnection
This commit is contained in:
parent
fc25a80892
commit
5cb5503a75
3 changed files with 74 additions and 4 deletions
|
@ -18,7 +18,7 @@ interface RTCPeerConnection : EventTarget {
|
|||
// readonly attribute RTCSessionDescription? currentRemoteDescription;
|
||||
// readonly attribute RTCSessionDescription? pendingRemoteDescription;
|
||||
Promise<void> addIceCandidate(optional RTCIceCandidateInit candidate);
|
||||
// readonly attribute RTCSignalingState signalingState;
|
||||
readonly attribute RTCSignalingState signalingState;
|
||||
readonly attribute RTCIceGatheringState iceGatheringState;
|
||||
readonly attribute RTCIceConnectionState iceConnectionState;
|
||||
// readonly attribute RTCPeerConnectionState connectionState;
|
||||
|
@ -30,7 +30,7 @@ interface RTCPeerConnection : EventTarget {
|
|||
attribute EventHandler onnegotiationneeded;
|
||||
attribute EventHandler onicecandidate;
|
||||
// attribute EventHandler onicecandidateerror;
|
||||
// attribute EventHandler onsignalingstatechange;
|
||||
attribute EventHandler onsignalingstatechange;
|
||||
attribute EventHandler oniceconnectionstatechange;
|
||||
attribute EventHandler onicegatheringstatechange;
|
||||
// attribute EventHandler onconnectionstatechange;
|
||||
|
@ -105,3 +105,12 @@ enum RTCIceConnectionState {
|
|||
"failed",
|
||||
"closed"
|
||||
};
|
||||
|
||||
enum RTCSignalingState {
|
||||
"stable",
|
||||
"have-local-offer",
|
||||
"have-remote-offer",
|
||||
"have-local-pranswer",
|
||||
"have-remote-pranswer",
|
||||
"closed"
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue