Screen share 13: fluxer-core previews #160

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

Files:

  • Create: crates/fluxer-core/src/voice/stream/previews.rs
  • Modify: effect.rs (ApiRequest::{UploadStreamPreview { key, channel_id }, FetchStreamPreview { key }}), event.rs (ApiResult::{StreamPreviewUploaded, StreamPreview { key, found }}), voice/settings.rs (privacy switch)
  • Test: crates/fluxer-core/tests/stream_previews.rs

Interfaces:

  • Produces: spec §6.3 "Previews (sharer)" and "(viewer)"; UserAction::RequestStreamPreview(StreamKey); preview_state(&App, key) -> PreviewState { version: u64, missing: bool } for views (the pixels are in the FrameBus); deterministic jitter jitter(key, n) -> Duration in ±60 s.

  • Step 1: Write failing tests: bootstrap_10_attempts_1s_apart, then_every_4min_with_bounded_jitter_only_with_viewers, no_viewers_polls_every_5s, privacy_switch_stops_uploads_at_once, stopping_share_stops_uploads, viewer_fetch_every_60s_for_channel_streams, 404_retries_every_1s_for_10_attempts, hover_request_fetches_once_then_refreshes.

  • Step 2–5: FAIL → implement → PASS → commit feat(core): stream previews.

Depends on: Screen share 12 (#159)

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/previews.rs` - Modify: `effect.rs` (`ApiRequest::{UploadStreamPreview { key, channel_id }, FetchStreamPreview { key }}`), `event.rs` (`ApiResult::{StreamPreviewUploaded, StreamPreview { key, found }}`), `voice/settings.rs` (privacy switch) - Test: `crates/fluxer-core/tests/stream_previews.rs` **Interfaces:** - Produces: spec §6.3 "Previews (sharer)" and "(viewer)"; `UserAction::RequestStreamPreview(StreamKey)`; `preview_state(&App, key) -> PreviewState { version: u64, missing: bool }` for views (the pixels are in the `FrameBus`); deterministic jitter `jitter(key, n) -> Duration` in ±60 s. - [ ] **Step 1: Write failing tests**: `bootstrap_10_attempts_1s_apart`, `then_every_4min_with_bounded_jitter_only_with_viewers`, `no_viewers_polls_every_5s`, `privacy_switch_stops_uploads_at_once`, `stopping_share_stops_uploads`, `viewer_fetch_every_60s_for_channel_streams`, `404_retries_every_1s_for_10_attempts`, `hover_request_fetches_once_then_refreshes`. - [ ] **Step 2–5:** FAIL → implement → PASS → commit `feat(core): stream previews`. Depends on: Screen share 12 (#159) 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:56 +00:00
charles referenced this issue from a commit 2026-11-12 09:06:07 +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#160
No description provided.