diff --git a/index.html b/index.html index 678ee31..b2a400f 100644 --- a/index.html +++ b/index.html @@ -742,7 +742,10 @@
- Let |candidatePair:RTCIceCandidatePair| be the candidate pair that was [= formed =]. + Let |candidatePair:RTCIceCandidatePair| be a new {{RTCIceCandidatePair}} dictionary + with its {{RTCIceCandidatePair/local}} and {{RTCIceCandidatePair/remote}} members + initialized to new {{RTCIceCandidate}}s representing the local and remote part of the + [= formed =] pair respectively.
+ [=Assert=]: |candidatePair| does not [= candidate pair match | match =] any + item in |transport|.{{RTCIceTransport/[[CandidatePairs]]}} +
++ [= list/Append =] |candidatePair| to {{RTCIceTransport/[[CandidatePairs]]}}. +
+[= Fire an event =] named @@ -881,14 +895,29 @@
- Otherwise, instruct the [= ICE agent =] to remove the candidate pair indicated by |candidatePair|.
+ Otherwise (if |accepted| is true
), run the following steps:
+ [= list/Remove =] |candidatePair| from |transport|.{{RTCIceTransport/[[CandidatePairs]]}}. +
++ Instruct the [= ICE agent =] to remove the candidate pair indicated by |candidatePair|. +
+- The {{RTCIceTransport}} object is extended by adding the following internal slot: + The {{RTCIceTransport}} object is extended by adding the following internal slots:
false
.
- If |candidatePair| does not describe a candidate pair formed for [=this=] {{RTCIceTransport}} and sent in - {{RTCIceTransport/onicecandidatepairadd}}, [= exception/throw =] a {{NotFoundError}}. + If |candidatePair| does not [= candidate pair match | match =] any item in [=this=]. + {{RTCIceTransport/[[CandidatePairs]]}}, [= exception/throw =] a {{NotFoundError}}.
- If the {{RTCIceCandidatePair/local}} and {{RTCIceCandidatePair/remote}} attributes of candidatePair do not match a pairing of {{RTCIceCandidatePairEvent/local}} and {{RTCIceCandidatePairEvent/remote}} respectively sent in {{RTCIceTransport/onicecandidatepairadd}}, [= exception/throw =] a {{NotFoundError}}. + If |candidatePair| does not [= candidate pair match | match =] any item in [=this=]. + {{RTCIceTransport/[[CandidatePairs]]}}, [= exception/throw =] a {{NotFoundError}}. +
++ [= list/Remove =] the item in + [=this=].{{RTCIceTransport/[[CandidatePairs]]}} that + [= candidate pair match | matches =] |candidatePair|.