Re: [webrtc-pc] Confusion over duplicates in setCodecPreferences? Why allow them? (#2955)

I think it is trying to say that duplicates are removed from the end of the list, not the beginning. So removing duplicates from `[A, B, C, A₁, B₁]` results in `[A, B, C]` not `[C, A₁, B₁]`.  But the index of first occurrennce doesn't always remain the same. Removing duplicates from  `[A, B, B₁, A₁, C]` results in `[A, B, C]`, which changes the index of the first occurrence of C.

Removing the duplicates seems preferable to throwing.

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


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

Received on Tuesday, 16 April 2024 22:53:35 UTC