Screen share: show or log the encoder statistics (acceptance item 9) #288

Open
opened 2026-11-12 11:33:28 +00:00 by charles · 0 comments
Owner

Found while writing the screen-share acceptance checklist (Screen share 31, #178).

fluxer-voice reports VoiceEvent::EncoderStats { codec, implementation, hardware, fps, bitrate } about once a second while a share is published (crates/fluxer-voice/src/rtc.rs, report_encoder), but fluxer-core drops the event and nothing logs it. So spec §2 item 9 ("no sustained frame drops in the encoder statistics; with a hardware encoder available on Linux it is used") cannot be read on the native side during the live checklist: only the viewer's numbers (Electron "Copy stats JSON") are available.

Smallest useful fix: keep the latest stats in the store (or log them at debug in the runtime, rate-limited) so FLUXER_LOG=fluxer=debug shows codec, implementation, hardware, fps and bitrate. A later "stats for nerds" view (parity row "Copy stats JSON", later (7)) can read the same field.

Seen on: screenshare-31-acceptance based on 7fc45fd.

Found while writing the screen-share acceptance checklist (Screen share 31, #178). `fluxer-voice` reports `VoiceEvent::EncoderStats { codec, implementation, hardware, fps, bitrate }` about once a second while a share is published (`crates/fluxer-voice/src/rtc.rs`, `report_encoder`), but `fluxer-core` drops the event and nothing logs it. So spec §2 item 9 ("no sustained frame drops in the encoder statistics; with a hardware encoder available on Linux it is used") cannot be read on the native side during the live checklist: only the viewer's numbers (Electron "Copy stats JSON") are available. Smallest useful fix: keep the latest stats in the store (or log them at debug in the runtime, rate-limited) so `FLUXER_LOG=fluxer=debug` shows codec, implementation, hardware, fps and bitrate. A later "stats for nerds" view (parity row "Copy stats JSON", later (7)) can read the same field. Seen on: `screenshare-31-acceptance` based on `7fc45fd`.
charles added this to the Screen share milestone 2026-11-12 11:33:28 +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#288
No description provided.