Skip to content

Commit

Permalink
Merge pull request #193 from sam-vi/samvi-187-pair-match
Browse files Browse the repository at this point in the history
Define a candidate pair match algorithm.
  • Loading branch information
henbos authored Jan 12, 2024
2 parents a1c3d1c + 155805c commit 4c29534
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 @@ -1240,6 +1240,26 @@ <h4>Dictionary <dfn>RTCIceCandidatePairEventInit</dfn> Members</h4>
</p>
</li>
</ol>
<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 4c29534

Please sign in to comment.