Skip to content

Commit

Permalink
Define a candidate pair match algorithm.
Browse files Browse the repository at this point in the history
Fixes: #187.

This PR depends on the candidate match algorithm described in #192.

The candidate pair match algorithm will be used in validation steps for RTCIceTransport methods (#188).
  • Loading branch information
sam-vi committed Dec 20, 2023
1 parent 92bea5a commit 4114dd0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,26 @@ <h4>Dictionary <dfn>RTCIceCandidatePairEventInit</dfn> Members</h4>
</section>
</div>
</section>
<p>
The <dfn>candidate pair match</dfn> algorithm given two {{RTCIceCandidatePair}} |first:RTCIceCandidatePair| and |second:RTCIceCandidatePair| is as follows:
</p>
<ol class="algorithm">
<li>
<p>
If |first|.{{RTCIceCandidatePair/local}} does not [= candidate match | match =] |second|.{{RTCIceCandidatePair/local}}, return <code>false</code>.
</p>
</li>
<li>
<p>
If |first|.{{RTCIceCandidatePair/remote}} does not [= candidate match | match =] |second|.{{RTCIceCandidatePair/remote}}, return <code>false</code>.
</p>
</li>
<li>
<p>
Return <code>true</code>.
</p>
</li>
</ol>
</section>
<section id="rtcrtpcontributingsource-extensions">
<h3>
Expand Down

0 comments on commit 4114dd0

Please sign in to comment.