Skip to content

Commit bc6b12e

Browse files
feat: add DegradationPreference enum (without deprecated Disabled)
Add a wrapper DegradationPreference enum that matches the Rust API: - BALANCED: Balance between framerate and resolution degradation - MAINTAIN_FRAMERATE: Degrade framerate to maintain resolution - MAINTAIN_RESOLUTION: Degrade resolution to maintain framerate - MAINTAIN_FRAMERATE_AND_RESOLUTION: Maintain both, drop frames before encoding The deprecated 'Disabled' value is intentionally excluded since it has been removed from WebRTC M144 and replaced with MaintainFramerateAndResolution. Also regenerates proto files from livekit-ffi v0.12.68. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent d77f66f commit bc6b12e

3 files changed

Lines changed: 42 additions & 15 deletions

File tree

livekit-rtc/livekit/rtc/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
)
5959
from .participant import (
6060
ConnectionQuality,
61+
DegradationPreference,
6162
LocalParticipant,
6263
Participant,
6364
RemoteParticipant,
@@ -138,6 +139,7 @@
138139
"ConnectionQuality",
139140
"ConnectionState",
140141
"DataPacketKind",
142+
"DegradationPreference",
141143
"TrackPublishOptions",
142144
"IceTransportType",
143145
"ContinualGatheringPolicy",

0 commit comments

Comments
 (0)