Screen share 16: fluxer-voice video over the Room trait; fake room video #163

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

Files:

  • Modify: crates/fluxer-voice/src/{room.rs,session.rs,fake.rs,lib.rs}, crates/fluxer-voice/{Cargo.toml,README.md} (depend on fluxer-video)
  • Test: crates/fluxer-voice/tests/session_video.rs

Interfaces:

  • Produces: Room gains publish_screen(ScreenPublish { codec, params, with_audio }) -> Result<ScreenSids, RoomError>, update_screen_encoding(params), unpublish_screen(), set_screen_audio_muted(bool), push_video(VideoFrame), push_screen_audio(Frame10ms), codec_capabilities() -> CodecCapabilities; RoomEvent::{Video { identity, sid, frame: VideoFrame }, LocalTrackPublished, LocalTrackUnpublished, EncoderStats}; VoiceHandle::{push_video(VideoFrame), push_screen_audio(&[i16]), remote_video() -> mpsc::Receiver<RemoteVideo { identity, sid, frame }>} (latest-wins, bounded 2 per sid); session executes the new VoiceCommands and reports the new VoiceEvents (VideoFrameInfo on first frame and size change only); RepublishScreenShare = unpublish + publish with the same params; FakeRoom publishes/receives video (scripted remote streamer with test pattern, screen audio tone).

  • Behaviour: video frames reach the room only while a screen publication is up; frames beyond the encoder's pace are dropped (latest wins); remote video passed on only for subscribed tracks.

  • Step 1: Write failing tests: publish_reports_local_track_published, video_frames_dropped_when_not_publishing, republish_swaps_codec_and_reports_new_sid, remote_video_only_while_subscribed, video_frame_info_on_first_frame_and_resize_only, screen_audio_muted_stops_frames, disconnect_unpublishes_everything.

  • Step 2–5: FAIL → implement → PASS → commit feat(voice): screen share over the room trait.

Depends on: Screen share 8 (#155), Screen share 1 (#148)

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:** - Modify: `crates/fluxer-voice/src/{room.rs,session.rs,fake.rs,lib.rs}`, `crates/fluxer-voice/{Cargo.toml,README.md}` (depend on `fluxer-video`) - Test: `crates/fluxer-voice/tests/session_video.rs` **Interfaces:** - Produces: `Room` gains `publish_screen(ScreenPublish { codec, params, with_audio }) -> Result<ScreenSids, RoomError>`, `update_screen_encoding(params)`, `unpublish_screen()`, `set_screen_audio_muted(bool)`, `push_video(VideoFrame)`, `push_screen_audio(Frame10ms)`, `codec_capabilities() -> CodecCapabilities`; `RoomEvent::{Video { identity, sid, frame: VideoFrame }, LocalTrackPublished, LocalTrackUnpublished, EncoderStats}`; `VoiceHandle::{push_video(VideoFrame), push_screen_audio(&[i16]), remote_video() -> mpsc::Receiver<RemoteVideo { identity, sid, frame }>}` (latest-wins, bounded 2 per sid); session executes the new `VoiceCommand`s and reports the new `VoiceEvent`s (`VideoFrameInfo` on first frame and size change only); `RepublishScreenShare` = unpublish + publish with the same `params`; `FakeRoom` publishes/receives video (scripted remote streamer with test pattern, screen audio tone). - Behaviour: video frames reach the room only while a screen publication is up; frames beyond the encoder's pace are dropped (latest wins); remote video passed on only for subscribed tracks. - [ ] **Step 1: Write failing tests**: `publish_reports_local_track_published`, `video_frames_dropped_when_not_publishing`, `republish_swaps_codec_and_reports_new_sid`, `remote_video_only_while_subscribed`, `video_frame_info_on_first_frame_and_resize_only`, `screen_audio_muted_stops_frames`, `disconnect_unpublishes_everything`. - [ ] **Step 2–5:** FAIL → implement → PASS → commit `feat(voice): screen share over the room trait`. Depends on: Screen share 8 (#155), Screen share 1 (#148) 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:57 +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#163
No description provided.