From d0c039b0d7013059fa91c167d65d7772a69afeb6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Bostr=C3=B6m?=
- 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.
Let |transport:RTCIceTransport| be the {{RTCIceTransport}} object associated with |candidatePair|.
+ [=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|.