Files
livekit/pkg
Raja SubramanianandClaude Opus 5.5 2e002d5d00 rtc: keep the preferred codec's RTX when trimming the answer (#5276)
* rtc: keep the preferred codec's RTX when trimming the answer

Trimming the answer to the preferred video codec kept the codec and
flexfec but dropped its RTX, so clients that get a trimmed answer could
not negotiate RTX. Keep each RTX whose apt is a kept codec.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* rtc: test that the trimmed answer keeps the offered RTX

Drive a real offer through HandleRemoteDescription with client payload
types that differ from the server's, trim to VP8 from the remote
description hook, and check the answer from createAndSendAnswer keeps
VP8's RTX at the offered payload type and drops H264 and its RTX.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* rtc: check the trimmed answer's video payload list

Assert the video m-line lists only VP8 and its RTX, so a dropped codec
cannot stay listed without its attributes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 22:40:30 +05:30
..
2025-11-28 21:51:53 +05:30