WPT
wpt / webrtc / RTCRtpTransceiver-setCodecPreferences.html?rest
Spec: WebRTC ↗
Runs: Chrome 155.0.8039.0 (wpt@6ec9fd59f, 2026-09-03) | Firefox 157.0a1 (wpt@6ec9fd59f, 2026-09-03) | Safari 251 preview (wpt@5ce815a83, 2026-08-27) | Ladybird 1.0-795e1 (wpt@7e3d005d7, 2026-09-03) | Servo Servo 0.6 (wpt@09159dcb3, 2026-09-02) | Blitz 188486089 (wpt@a95401e4e, 2026-09-02)
View on the Blitz WPT dashboard | Open test on wpt.live | wpt.fyi
| Chrome | Firefox | Safari | Ladybird | Servo | Blitz | |
|---|---|---|---|---|---|---|
| Total | 17/17 | 17/17 | 17/17 | 0/17 | 0/17 | NOT RUN |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz |
|---|---|---|---|---|---|---|
| setCodecPreferences() on audio transceiver with codecs returned from RTCRtpReceiver.getCapabilities('audio') should succeed | PASS | PASS | PASS | FAIL | FAIL | — |
| setCodecPreferences() on video transceiver with codecs returned from RTCRtpReceiver.getCapabilities('video') should succeed | PASS | PASS | PASS | FAIL | FAIL | — |
| setCodecPreferences([]) should succeed | PASS | PASS | PASS | FAIL | FAIL | — |
| setCodecPreferences() with reordered codecs should succeed | PASS | PASS | PASS | FAIL | FAIL | — |
| setCodecPreferences() with only VP8 should succeed | PASS | PASS | PASS | FAIL | FAIL | — |
| setCodecPreferences() should allow setting VP8 as first codec | PASS | PASS | PASS | FAIL | FAIL | — |
| setCodecPreferences() on audio transceiver with codecs returned from getCapabilities('video') should throw InvalidModificationError | PASS | PASS | PASS | FAIL | FAIL | — |
| setCodecPreferences() with user defined codec with invalid mimeType should throw InvalidModificationError | PASS | PASS | PASS | FAIL | FAIL | — |
| setCodecPreferences() with user defined codec should throw InvalidModificationError | PASS | PASS | PASS | FAIL | FAIL | — |
| setCodecPreferences() with user defined codec together with codecs returned from getCapabilities() should throw InvalidModificationError | PASS | PASS | PASS | FAIL | FAIL | — |
| setCodecPreferences() with modified codec clock rate should throw InvalidModificationError | PASS | PASS | PASS | FAIL | FAIL | — |
| setCodecPreferences() with modified codec channel count should throw InvalidModificationError | PASS | PASS | PASS | FAIL | FAIL | — |
| setCodecPreferences() with modified codec parameters should throw InvalidModificationError | PASS | PASS | PASS | FAIL | FAIL | — |
| setCodecPreferences() with modified codecs returned from getCapabilities() should throw InvalidModificationError | PASS | PASS | PASS | FAIL | FAIL | — |
| setCodecPreferences() modifies the order of audio codecs in createOffer | PASS | PASS | PASS | FAIL | FAIL | — |
| setCodecPreferences() can remove red | PASS | PASS | PASS | FAIL | FAIL | — |
| setCodecPreferences() can remove ulpfec | PASS | PASS | PASS | FAIL | FAIL | — |