diff --git a/webrtc.html b/webrtc.html index 670c9c665..a936831f6 100644 --- a/webrtc.html +++ b/webrtc.html @@ -12670,35 +12670,56 @@

- RTCIceCandidatePair Dictionary + RTCIceCandidatePair Interface

+

+ This interface represents an ICE candidate pair, described in Section 4 in [[RFC8445]]. An {{RTCIceCandidatePair}} is a pairing of a local and a remote {{RTCIceCandidate}}. +

+

+ To create an RTCIceCandidatePair with {{RTCIceCandidate}} objects, |local:RTCIceCandidate| and |remote:RTCIceCandidate|, run the following steps: +

+
    +
  1. + Let |candidatePair:RTCIceCandidatePair| be a newly created {{RTCIceCandidatePair}} object. +
  2. +
  3. + Let |candidatePair| have a [[\Local]] internal slot, initialized to |local|. +
  4. +
  5. + Let |candidatePair| have a [[\Remote]] internal slot, initialized to |remote|. +
  6. +
  7. + Return |candidatePair|. +
  8. +
-
dictionary RTCIceCandidatePair {
-  required RTCIceCandidate local;
-  required RTCIceCandidate remote;
+            
[Exposed=Window]
+interface RTCIceCandidatePair {
+  [SameObject] readonly attribute RTCIceCandidate local;
+  [SameObject] readonly attribute RTCIceCandidate remote;
 };

- Dictionary {{RTCIceCandidatePair}} Members + Attributes

+ "RTCIceCandidatePair" class="attributes">
local of type {{RTCIceCandidate}} + "idlAttrType">{{RTCIceCandidate}}, readonly

- The local ICE candidate. + The {{local}} attribute MUST, on getting, return the value of the {{RTCIceCandidatePair/[[Local]]}} internal slot.

remote of type {{RTCIceCandidate}} + "idlAttrType">{{RTCIceCandidate}}, readonly

- The remote ICE candidate. + The {{remote}} attribute MUST, on getting, return the value of the {{RTCIceCandidatePair/[[Remote]]}} internal slot.