Camera: a quality change while live keeps the old bitrate and layers until the next publish #997

Open
opened 2026-11-20 05:42:49 +00:00 by charles · 0 comments
Owner

Choosing another "Camera quality" while the camera is live restarts the capture at the new size and sends UpdateCameraEncoding (Camera 7). In fluxer-voice (Camera 9) a new frame rate applies at once and frames of the new size go through, but a new maximum bitrate or new layers are only logged and apply from the next publish, because the pinned SDK does not expose the RTP sender. So 720p -> 480p keeps 1.7 Mbit/s and the 720p layer set until the camera is turned off and on. The original unpublishes and republishes (Camera spec §3 row 15, VoiceSettingsCommands.ts:19,75).

Fix: republish on a change of preset (as the original), or set the sender's parameters once the SDK exposes them.

Found while writing docs/parity/camera.md (Camera 20, #971), on camera at 21e9c4264.

Choosing another "Camera quality" while the camera is live restarts the capture at the new size and sends `UpdateCameraEncoding` (Camera 7). In `fluxer-voice` (Camera 9) a new frame rate applies at once and frames of the new size go through, but a new maximum bitrate or new layers are only logged and apply from the next publish, because the pinned SDK does not expose the RTP sender. So 720p -> 480p keeps 1.7 Mbit/s and the 720p layer set until the camera is turned off and on. The original unpublishes and republishes (Camera spec §3 row 15, `VoiceSettingsCommands.ts:19,75`). Fix: republish on a change of preset (as the original), or set the sender's parameters once the SDK exposes them. Found while writing `docs/parity/camera.md` (Camera 20, #971), on `camera` at 21e9c4264.
charles added this to the Camera milestone 2026-11-20 05:42:49 +00:00
charles referenced this issue from a commit 2026-11-20 06:30:04 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#997
No description provided.