Re: [webrtc-extensions] Define an RTCIceCandidate match algorithm. (#192)

This algorithm is referenced by the candidate-pair match algorithm (#193), which will be used in validation steps for various RTCIceTransport algorithms (#188, PR pending).

This algorithm is a more lenient approach to candidate matching as compared to object equality, as suggested by w3c/webrtc-pc#2906. If various RTCIceCandidate values are indeed made object-comparable, this PR is unnecessary and the candidate-pair match algorithm can simply test object equality instead.

The wording of the algorithm is based on the [codec match algorithm](https://w3c.github.io/webrtc-pc/#dfn-codec-match).

Separate steps are needed in the algo for checking `null` values of [sdpMid](https://www.w3.org/TR/webrtc/#dom-rtcicecandidate-sdpmid), [sdpMLineIndex](https://www.w3.org/TR/webrtc/#dom-rtcicecandidate-sdpmlineindex), and [usernameFragment](https://www.w3.org/TR/webrtc/#dom-rtcicecandidate-usernamefragment) because `null` is not a value of type [DOMString](https://webidl.spec.whatwg.org/#idl-DOMString) or of integer types.

-- 
GitHub Notification of comment by sam-vi
Please view or discuss this issue at https://github.com/w3c/webrtc-extensions/pull/192#issuecomment-1884546851 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 10 January 2024 10:08:17 UTC