Screen share 10: fluxer-core go-live machine #157

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

Files:

  • Create: crates/fluxer-core/src/voice/stream/golive.rs
  • Modify: voice/stream/mod.rs, voice/connection.rs (disconnect/move reset), voice/local.rs (self_stream in op 4)
  • Test: crates/fluxer-core/tests/stream_golive.rs

Interfaces:

  • Produces: GoLive (spec §6.1); UserAction::{OpenScreenSharePicker { switch: bool }, CloseScreenSharePicker, StartScreenShare(SourceChoice), ChangeScreenShareSource(SourceChoice), StopScreenShare, SetMuteStreamAudio(bool)}; can_stream(&App) -> Result<(), CannotStream::{NotConnected, NoPermission}> (STREAM 1 << 9 or ADMINISTRATOR in the connected channel); opening the picker emits CaptureCommand::ListSources { thumbnails: true } when the backend has an in-app picker, otherwise Start { source: SystemPicker, .. } directly.

  • Behaviour: spec §6.3 "Go live", "Stop", "Change stream", "Sharer audio mute"; 30 s start timeout; the move/disconnect/permission-loss/room-loss triggers; at most one share.

  • Step 1: Write failing tests: start_order_capture_publish_op4_ownkey_chime, self_stream_never_true_before_publication, stop_order_op4_before_unpublish, capture_ended_stops_share, portal_cancel_returns_idle_without_op4, start_timeout_30s, permission_loss_stops_share, disconnect_and_move_reset_stream, change_source_keeps_publication, no_permission_blocks_start_with_reason, proptest any_event_order_keeps_golive_consistent.

  • Step 2–5: FAIL → implement → PASS → commit feat(core): go-live state machine.

Depends on: Screen share 9 (#156)

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: `crates/fluxer-core/src/voice/stream/golive.rs` - Modify: `voice/stream/mod.rs`, `voice/connection.rs` (disconnect/move reset), `voice/local.rs` (`self_stream` in op 4) - Test: `crates/fluxer-core/tests/stream_golive.rs` **Interfaces:** - Produces: `GoLive` (spec §6.1); `UserAction::{OpenScreenSharePicker { switch: bool }, CloseScreenSharePicker, StartScreenShare(SourceChoice), ChangeScreenShareSource(SourceChoice), StopScreenShare, SetMuteStreamAudio(bool)}`; `can_stream(&App) -> Result<(), CannotStream::{NotConnected, NoPermission}>` (STREAM `1 << 9` or ADMINISTRATOR in the connected channel); opening the picker emits `CaptureCommand::ListSources { thumbnails: true }` when the backend has an in-app picker, otherwise `Start { source: SystemPicker, .. }` directly. - Behaviour: spec §6.3 "Go live", "Stop", "Change stream", "Sharer audio mute"; 30 s start timeout; the move/disconnect/permission-loss/room-loss triggers; at most one share. - [ ] **Step 1: Write failing tests**: `start_order_capture_publish_op4_ownkey_chime`, `self_stream_never_true_before_publication`, `stop_order_op4_before_unpublish`, `capture_ended_stops_share`, `portal_cancel_returns_idle_without_op4`, `start_timeout_30s`, `permission_loss_stops_share`, `disconnect_and_move_reset_stream`, `change_source_keeps_publication`, `no_permission_blocks_start_with_reason`, proptest `any_event_order_keeps_golive_consistent`. - [ ] **Step 2–5:** FAIL → implement → PASS → commit `feat(core): go-live state machine`. Depends on: Screen share 9 (#156) 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:55 +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#157
No description provided.