Files
livekit/pkg/config
boks1971andClaude Fable 5.1 69eb03153a rtc: option to shrink inactive media sections in client offers
pion keeps substrings of every remote offer it parses for as long as the
transceivers created from it live. A client that adds a media section per
publish and leaves the old ones inactive makes the retained text grow with
the square of its publish count; one node held 6.2 GB of such offers.

Before pion sees an offer, strip codec, extension, msid and ssrc attributes
from inactive sections whose mid already maps to a transceiver, keeping one
payload type with its rtpmap. Off by default; gated on offer size and video
only unless audio is included:

  rtc:
    shrink_inactive_media_sections:
      enabled: true
      min_sdp_size: 20000
      include_audio: false

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-15 23:45:59 +05:30
..