Screen share 21: apps/fluxer screen-share runtime wiring #168

Closed
opened 2026-11-12 02:06:59 +00:00 by charles · 0 comments
Owner

Files:

  • Create: apps/fluxer/src/{capture_rt.rs,preview_rt.rs}
  • Modify: apps/fluxer/src/{runtime.rs,voice_rt.rs,audio_rt.rs,config.rs,record.rs,main.rs,debug_info.rs}, apps/fluxer/Cargo.toml, crates/fluxer-audio/src/{chime.rs,mixer.rs} + assets/sounds/stream-{start,stop}.mp3 (copied from fluxer_app/src/media/sounds/) — serialised with this task
  • Test: apps/fluxer/tests/screenshare_runtime.rs

Interfaces:

  • Consumes: fluxer-capture backends, VoiceHandle video methods, FrameBus, the preview ApiClient methods.

  • Produces: execution of Effect::Capture (conversion between the core's and the capture crate's port types); capture frames → push_video and FrameBus[LocalCapture] (at most the encode rate); stream audio → push_screen_audio; remote_video() → FrameBus[Remote { sid }]; remote screen audio → mixer Stream(identity); UploadStreamPreview → preview_jpeg of the latest local frame → cached upload URL (renewed 60 s before expiry) → PUT; FetchStreamPreview → FrameBus[Preview]; ListSources thumbnails → FrameBus[Source { id }]; CaptureEvent/new VoiceEvents → CoreEvent; --capture-fake flag and --devserver screenshare use the fake backends; fluxer --debug-info lists capture backends and codec capabilities.

  • Step 1: Write failing tests (devserver + fakes): go_live_publishes_and_sends_op4_sequence, local_frames_reach_room_and_bus, watching_fake_streamer_puts_frames_on_bus, stream_audio_reaches_mixer_with_stream_gain, preview_uploaded_after_go_live, record_mode_never_contains_upload_url_or_token, capture_end_stops_share, debug_info_lists_capture_and_codecs.

  • Step 2–5: FAIL → implement → PASS → commit feat(app): screen share runtime.

Depends on: Screen share 4 (#151), Screen share 5 (#152), Screen share 13 (#160), Screen share 14 (#161), Screen share 15 (#162), Screen share 17 (#164), Screen share 20 (#167)

Plan: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/plans/2026-11-11-screenshare.md
Spec: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/specs/2026-11-11-fluxer-native-screenshare-design.md

**Files:** - Create: `apps/fluxer/src/{capture_rt.rs,preview_rt.rs}` - Modify: `apps/fluxer/src/{runtime.rs,voice_rt.rs,audio_rt.rs,config.rs,record.rs,main.rs,debug_info.rs}`, `apps/fluxer/Cargo.toml`, `crates/fluxer-audio/src/{chime.rs,mixer.rs}` + `assets/sounds/stream-{start,stop}.mp3` (copied from `fluxer_app/src/media/sounds/`) — serialised with this task - Test: `apps/fluxer/tests/screenshare_runtime.rs` **Interfaces:** - Consumes: `fluxer-capture` backends, `VoiceHandle` video methods, `FrameBus`, the preview `ApiClient` methods. - Produces: execution of `Effect::Capture` (conversion between the core's and the capture crate's port types); capture frames → `push_video` and `FrameBus[LocalCapture]` (at most the encode rate); stream audio → `push_screen_audio`; `remote_video()` → `FrameBus[Remote { sid }]`; remote screen audio → mixer `Stream(identity)`; `UploadStreamPreview` → `preview_jpeg` of the latest local frame → cached upload URL (renewed 60 s before expiry) → `PUT`; `FetchStreamPreview` → `FrameBus[Preview]`; `ListSources` thumbnails → `FrameBus[Source { id }]`; `CaptureEvent`/new `VoiceEvent`s → `CoreEvent`; `--capture-fake` flag and `--devserver screenshare` use the fake backends; `fluxer --debug-info` lists capture backends and codec capabilities. - [ ] **Step 1: Write failing tests** (devserver + fakes): `go_live_publishes_and_sends_op4_sequence`, `local_frames_reach_room_and_bus`, `watching_fake_streamer_puts_frames_on_bus`, `stream_audio_reaches_mixer_with_stream_gain`, `preview_uploaded_after_go_live`, `record_mode_never_contains_upload_url_or_token`, `capture_end_stops_share`, `debug_info_lists_capture_and_codecs`. - [ ] **Step 2–5:** FAIL → implement → PASS → commit `feat(app): screen share runtime`. Depends on: Screen share 4 (#151), Screen share 5 (#152), Screen share 13 (#160), Screen share 14 (#161), Screen share 15 (#162), Screen share 17 (#164), Screen share 20 (#167) Plan: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/plans/2026-11-11-screenshare.md Spec: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/specs/2026-11-11-fluxer-native-screenshare-design.md
charles added this to the Screen share milestone 2026-11-12 02:06:59 +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#168
No description provided.