Re: [webrtc-pc] Comparison rules for RTCRtpCodec needs clarification on how mimeType is compared (#2971)

> It would be interesting to clarify which method should be used in JS. Can the mimeType also contain UTF-8 characters?

This is a good question. Since we take DOMString as an input, we need to lower-case JS input in order to compare it. While we could UTF-8 encode it to bytes and use [byte-lowercasing](https://infra.spec.whatwg.org/#byte-lowercase), we can probably just use [ascii-lowercase](https://infra.spec.whatwg.org/#ascii-lowercase).



-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2971#issuecomment-2125572752 using your GitHub account


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

Received on Wednesday, 22 May 2024 19:14:14 UTC