Skip to content

feat: LocalTrackSubscribedQualityUpdatedEvent - #1309

Open
S-Sebb wants to merge 4 commits into
livekit:mainfrom
S-Sebb:04-public-subscribed-quality-event
Open

S-Sebb wants to merge 4 commits into
livekit:mainfrom
S-Sebb:04-public-subscribed-quality-event

Conversation

@S-Sebb

@S-Sebb S-Sebb commented Nov 22, 2026 •

Copy link
Copy Markdown

Fixes #1308

Adds a public LocalTrackSubscribedQualityUpdatedEvent (RoomEvent, ParticipantEvent): the server updated the requested layers and codecs of a local track.

  • Fields in SDK types: participant, publication, and qualities (Map<String, Map<VideoQuality, bool>>, per codec; from subscribedCodecs, or from subscribedQualities under the track's own codec when the codec list is empty).
  • Emitted on the room's and the local participant's events, only while connected, after setPublishingCodecs / setPublishingLayers have run, so an app reacting to it doesn't race them. The layer map is taken before they run: for SVC codecs setPublishingLayersForSender marks every listed layer enabled in place, and the event reports what the server asked for. With dynacast off it is emitted without applying anything.
  • Updates for unknown track sids are skipped, as the handler already did.

Tests

test/core/room_e2e_test.dart: a SubscribedQualityUpdate for a local publication emits the event with the codec's layer map (dynacast off); with dynacast on and a VP9 sender, the event keeps the requested HIGH: false while the sender keeps both layers active (this one fails if the map is taken after the layers are applied); and an update for an unknown sid emits nothing.

devin-ai-integration[bot]

This comment was marked as resolved.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature] A public event for the server's subscribed-quality update (dynacast)

1 participant