104 lines
6.2 KiB
Markdown
104 lines
6.2 KiB
Markdown
# Current TODO Ledger
|
|
|
|
Last reviewed: 2026-08-26
|
|
|
|
Only **Now** is executable. A branch, old experiment, observation, or accepted
|
|
later topic is not implementation authority by itself.
|
|
|
|
## Now
|
|
|
|
1. **Restore bounded direct-parent selection.** Diagnose the `2244`/`7723`
|
|
production traces and replace the class-stage deadline that can let one
|
|
silent P2P candidate skip every remaining direct parent. Preserve exact
|
|
candidate failure, direct-before-SFU order, and bounded latency at 20
|
|
Viewers without linear exhaustive waiting or all-pairs probing.
|
|
2. **Converge Viewer route presentation.** Current decoded media must clear a
|
|
stale no-route/reconnecting overlay. Manual media reconnect must refresh the
|
|
current route facts and presentation state without requiring a page reload.
|
|
3. **Verify multi-room SFU admission.** Replace production's single-publication
|
|
limit with the fixed 9,000-room ingress and
|
|
`9000 * MAX_VIEWERS_PER_ROOM` subscription egress derived from product
|
|
admission, then verify two rooms can use independent SFU publications.
|
|
4. **Preferred room reacquisition.** While sharing, keep the last assigned code
|
|
as an unexpired local preference; normal stop starts the configured room
|
|
lease countdown. A new room may request that code, but the server uses it
|
|
only while free and always creates a new room incarnation and credentials.
|
|
5. **Browser VP8 hardware evidence.** Measure supported Chrome/Edge platforms
|
|
under real game load using actual codec, encoder implementation, encode time,
|
|
frame rate, and CPU/GPU attribution. Do not add another codec, custom encoder,
|
|
GPU selector, or Native helper without a new decision.
|
|
6. **Mobile Viewer lifecycle.** Run Android Chrome and iOS Safari matrices for
|
|
autoplay gesture, foreground/background audio, foreground video recovery,
|
|
lock/page reclamation, rotation, Wi-Fi/cellular migration, and assigned-relay
|
|
survival or controller recovery. Web does not promise background video or
|
|
relay execution after OS suspension.
|
|
7. **Finish real-network route and media acceptance.** Exercise direct peer,
|
|
Browser relay, SFU, relay-ingress recovery with subtree retention,
|
|
disconnect/capacity drain, Pause/Resume, source replacement, screen-audio
|
|
continuity, and real-game A/V sync across representative IPv4/IPv6,
|
|
Wi-Fi/cellular, and Host/Viewer TUN/VPN cases. Include an all-UDP-blocked case
|
|
and weak-network audio after SFU RED was disabled. Every exhausted path must
|
|
end in bounded wait/failure without TURN, TCP probing, NAT classification,
|
|
guessed candidates, or another watchdog.
|
|
|
|
## Accepted Later Roadmap
|
|
|
|
1. **Quality-based topology research.** After the real-network baseline, decide
|
|
whether measured user-visible quality justifies any active parent-selection
|
|
mechanism. A weak-Host production session showed a usable P2P Viewer with
|
|
worse playback than SFU Viewers, so reachability alone is not the eventual
|
|
optimization target. Current evidence still cannot compare an active route with an
|
|
unconnected alternative, so no quality score, all-pairs probing, periodic
|
|
rebalancing, relay abdication threshold, or active parent switch is accepted.
|
|
Prefer mature algorithms and one general model if this boundary is reopened.
|
|
2. **Platform output only when real.** Revisit AirPlay/Cast only when a target
|
|
browser and physical receiver prove the live `MediaStream` contract. System
|
|
mirroring remains external.
|
|
3. **Public-server one-click package.** After functional and real-network work,
|
|
package the exact application, STUN/SFU, reverse proxy, secrets, and health
|
|
checks for a user-owned public server. Do not call a partial installer ready.
|
|
4. **Fully local one-click package.** Package Windows/macOS/Linux Host capture,
|
|
application server, and local state without requiring source or Node. Report
|
|
public-origin, TLS, gateway, NAT, and firewall limits honestly.
|
|
5. **Native Host and shared encode, Windows first.** Productize only after real
|
|
capture, hardware-only encode, audio, identity, RTP/RTCP feedback, resource,
|
|
packaging, and licensing gates pass. Browser Host/relay keeps standard
|
|
per-`RTCPeerConnection` encoding.
|
|
6. **Whole-product UI and bilingual decision.** Once media and route behavior
|
|
stabilizes, review copy, responsive hierarchy, visual consistency, restrained
|
|
motion, bundle/rendering cost, and Chinese/English scope once as a whole.
|
|
Ordinary screen-specific edits do not create parallel documentation.
|
|
7. **Client-input security review.** Inventory HTTP and WebSocket inputs once as
|
|
a whole: strict schemas, authentication, authorization, rate and body bounds,
|
|
resource effects, error disclosure, logging, and secret handling. Begin
|
|
read-only and add no parallel security framework without a proven gap.
|
|
8. **Repository simplification audit.** After the Browser, route, room, and
|
|
physical-media checkpoints settle, inventory components, configuration,
|
|
migrations, timers, compatibility paths, tests, and truth duplication using
|
|
the [maintenance review](./maintenance.md#机制减负审查). Begin read-only and do
|
|
not turn it into a broad refactor.
|
|
|
|
## Product Decision Needed
|
|
|
|
| Item | Decision |
|
|
| --- | --- |
|
|
| Repository and distribution license | Decide before public release or package distribution. GPL/AGPL implementations remain research-only until then. |
|
|
| Cross-restart room identity and media continuity | Decide whether stable invitations and uninterrupted control justify durable or signed room lineage plus exact route/resource recovery. Preferred code/password replay alone remains a new room incarnation. |
|
|
|
|
## Evidence Boundaries
|
|
|
|
- Desktop Host background/minimized capture remains diagnostic until a current-
|
|
production real-game reproduction correlates capture, outbound, inbound,
|
|
decode, and CPU/GPU. Viewer resume correction is not a keepalive guarantee.
|
|
- Synthetic and loopback tests validate invariants, not target-network quality,
|
|
latency, capacity, mobile lifecycle, or endurance.
|
|
- Open Native and packaging branches are retained evidence/candidates, not
|
|
current releases.
|
|
|
|
## Candidate Handling
|
|
|
|
- Preserve dirty or unique worktrees and open stacks until reviewed. Never
|
|
import old truth wholesale.
|
|
- Sample worktree and branch state immediately before cleanup rather than
|
|
maintaining a permanent inventory here.
|