diff --git a/index.html b/index.html index 84c1d18..151496d 100644 --- a/index.html +++ b/index.html @@ -653,8 +653,7 @@
Let |accepted:boolean| be the result of [= fire an event | firing an event =] named
{{RTCIceTransport/icecandidatepairprune}} at |transport|, using {{RTCIceCandidatePairEvent}}, with the
- {{Event/cancelable}} attribute initialized to true
, and the {{RTCIceCandidatePairEvent/candidatePair}}
- attribute initialized to |candidatePair|.
+ {{Event/cancelable}} attribute initialized to true
, and the {{RTCIceCandidatePairEvent/local}} and {{RTCIceCandidatePairEvent/remote}} attributes initialized to the local and remote candidates, respectively, of |candidatePair|.
When the [= ICE agent =] has formed a candidate pair, the [= user agent =] MUST queue a task to [= fire an - event =] named {{icecandidatepair}} using the {{RTCIceCandidatePairEvent}} interface with the - {{RTCIceCandidatePairEvent/candidatePair}} attribute set to the formed candidate pair. + event =] named {{icecandidatepair}} using the {{RTCIceCandidatePairEvent}} interface, with the + {{RTCIceCandidatePairEvent/local}} and {{RTCIceCandidatePairEvent/remote}} attributes set to the local and remote candidates, respectively, of the formed candidate pair.
[Exposed=Window] interface RTCIceCandidatePairEvent : Event { constructor(DOMString type, RTCIceCandidatePairEventInit eventInitDict); - readonly attribute RTCIceCandidatePair candidatePair; + readonly attribute RTCIceCandidate local; + readonly attribute RTCIceCandidate remote; };
- The {{candidatePair}} attribute represents the {{RTCIceCandidatePair}} object associated with the event. + The {{local}} attribute represents the local {{RTCIceCandidate}} of the candidate pair associated with the event. +
++ The {{remote}} attribute represents the remote {{RTCIceCandidate}} of the candidate pair associated with the event.
dictionary RTCIceCandidatePairEventInit : EventInit { - required RTCIceCandidatePair candidatePair; + required RTCIceCandidate local; + required RTCIceCandidate remote; };
+ The local {{RTCIceCandidate}} of the candidate pair announced by the event. +
+- The {{RTCIceCandidatePair}} object announced by the event. + The remote {{RTCIceCandidate}} of the candidate pair announced by the event.