Files
piik/docs/status.md
T
AAA 4bc0fd1e41 fix(app): stabilize sharing startup and align shared controls
## Problem and outcome / 问题与结果

Windows Auto selection could spend its remaining startup budget on a probe that could not finish, recreate hardware after a successful probe, and discard the prepared codec on first relay activation. Preserve the proven encoder through the existing capture owner and keep VP8 fallback unchanged. Correct custom-port STUN survey membership without changing the published Hosted base preference or introducing a second route/retry owner.

Reject queued minimize/resize frames that no longer match the current WGC target, replacing the one-shot restoration flag that could end an active H.264 share. Align shared controls, help and appearance across the product and website. macOS audio readiness follows successful platform startup rather than the arrival of non-silent samples. The optional editorial headline is shared with the website, with English-first bilingual release copy. Room voice and multiplayer input implementations remain outside this candidate.

Related reports: #437 and #486. Their affected devices still need retesting; this does not establish that all reported driver or macOS failures have been resolved.

## Release notes

**Play together. Your turn!**

**远程同乐,轮到你啦!**

### English

This maintenance update improves sharing startup and brings common controls and guidance into line. Existing 2.x App and Site compatibility is preserved.

- Windows Auto reuses the H.264 encoder that passed its frame-rate probe, preserves it on first relay activation, and skips probes that cannot fit the remaining startup budget. Discard stale minimize/resize frames before they can end an active share.
- Fix optional NAT survey selection with custom STUN ports while preserving existing Hosted selection. Include the upstream ICE candidate-priority correction.
- Make macOS audio readiness follow successful capture startup, so a silent source does not have to produce samples before becoming ready.
- Align shared buttons, selectors, keyboard labels and status colours, and refresh the README previews. Preserve explicit theme choices between the website and documentation.
- Find the Web version, troubleshooting and browser diagnostics in Help; closing a nested hint keeps the menu actions available.
- Put English first in update notes and simplify the website's release section around the same opening headline.

### 中文

这是一次分享启动与界面一致性的维护更新,保留现有 2.x App 和站点的兼容性。

- Windows 自动编码复用通过帧率探测的 H.264 编码器,在首次转发启用时保留该实例,并跳过剩余启动时间不足以完成的探测;丢弃最小化、恢复或缩放窗口时残留的旧尺寸帧,避免它们导致分享结束。
- 修复自定义 STUN 端口下的辅助打洞采样选择,保留已有自部署站点的选择行为,并同步上游 ICE 候选优先级修正。
- macOS 音频在平台确认启动成功后就绪,静默音源无需等待产生音频采样。
- 对齐共享按钮、选择控件、键盘说明与状态颜色,更新 README 界面预览;官网和文档中心之间保留用户明确选择的主题。
- 网页版本、问题排查和浏览器诊断统一收进「帮助」;内部提示关闭后,菜单操作仍然保留。
- 更新说明改为英文在前、中文在后;官网更新区以同一份开篇主题收敛呈现。

## Verification / 验证

- Local Web type-check, unit tests and production build: passed.
- Local Go tests, vet, Windows/Linux builds and Windows native compile/probe: passed.
- Website/documentation build, repository hygiene and diff checks: passed.
- Seven media-lifecycle cases passed: all Browser/App pairings, SFU-only, and Browser/Native fallback followed by direct recovery; restart, replacement and stale-signal retirement were included.
- The first candidate CI exposed an asynchronous allocation-test wait gap. Its correction waits for the committed deficit, retaining the capacity assertion; focused repetition passed locally.
- The native Host gate and benchmark now follow the current picture settings and stable codec name/value instead of removed UI structure or localized captions.
- Non-publishing CI passed on dd208e83, including Windows, both macOS architectures, both Linux architectures and Server packages. The later Windows frame-admission correction passed the focused native suite, physical Auto/H.264 and manual VP8 window gates, and the H.264 display gate. The window checks include minimized/resize/fullscreen recovery; the display check preserves the same media through profile and source changes.
- Final UI review covered narrow/desktop layouts, both themes, header/help, sharing controls, keyboard and interaction panels, packaged Local entry and website/docs preference handoff. The compact release entry passed 320/1280 px checks in both languages and themes, including metadata-request failure.
- Final candidate e88cb236: [all-platform packages and the full paired NAT/weak-network comparison](https://github.com/TNTcraftHIM/Piik/actions/runs/39284032227).

## Impact / 影响

No signaling, native-control, capture-envelope or storage version changes. Route authority, consent, capacity and retry lifetimes remain with their existing owners. The CI allocation correction changes the test only, not production media policy.

Physical macOS capture/permissions, the affected reporter GPUs and difficult external networks remain evidence limits. The owner authorized v2.2.2 after final acceptance; the non-publishing candidate checks must pass before the publishing squash merge. Room voice remains in its isolated experiment and is not a feature claim for this release.
2026-10-20 01:15:17 +08:00

10 KiB

Current Status

Last updated: 2026-10-20

This is the compact execution/deployment index. Product modules own behavior, verification status owns unresolved physical limits, and Git/PRs own completed history.

Accepted Release Contract

  • The 2.0 release boundary uses Browser/server v24, Native control v10 and capture v7. App and Site must upgrade together; 1.x cannot participate in a 2.0 session. SQLite schema 2 is unchanged. Versioning owns compatibility between published Web/App/Server versions.
  • Hosted Server defaults to SQLite schema 2. Room authority has no inactivity expiry by default; replacement/deletion or grant rotation/revocation ends the corresponding authority. Explicit memory mode and App Local end rooms at process exit. Site access retains its separate 24-hour idle lifetime within one service run; service restart requires site-password entry again.
  • Browser/App entry lifecycle and current-edge reconnect ownership repairs are implemented. Browser node-local pooling and detailed local Debug export remain part of the accepted media surface. Product modules own their behavior; configuration owns Debug activation, report contents and disclosure.
  • Shared feedback composition is implemented: generic loading uses the wink mascot, concrete media waits use their owning comic, and waiting captions are secondary to literal status. Website reduced-motion preference and player tooltip placement follow the same presentation owners.
  • Camera sharing and Host microphone commentary are accepted product features. Both Browser and native App audio use the existing media routes; device selection and sharing settings keep their current resource owners. The capture assessment owns platform behavior and the remaining physical evidence limits.

Website delivery includes a bilingual reader documentation center generated from the repository's guides alongside the homepage, with search and detailed troubleshooting separate from the homepage FAQ.

Accepted Interaction Phase

The accepted room-interaction design includes the verified media repairs. It adds authenticated text and reactions over existing signaling, with optional local chat overlay and a shared floating panel. Its opted-in room session can outlive a publication; capture, quality and route owners remain unchanged. Optional Windows screen-audio exclusion uses the existing source/mixer boundary. Hosted Server also accepts an optional SFU-only policy through the same route controller. Windows native capture and thumbnails now share automatic HDR-to-SDR conversion; synthetic GPU and Browser reception checks pass, with physical HDR display acceptance still pending in verification status. Room voice is outside this published phase; Host microphone commentary remains. These features are published; physical device limits remain open. Release artifacts and operator deployment records own delivery completion; TODO owns remaining work.

Current Work

The current 2.x release line retains attended keyboard/mouse control, Viewer playback settings and the interaction window, with the maintenance media and lifecycle repairs. The accepted maintenance phase preserves the published protocols and route owners; release artifacts and operator records establish publication and postflight completion. Current implementation work turns to room-owned routing and voice in the isolated prototype, while device/reporter follow-up remains in the TODO ledger. The promotional film remains an online-review draft; export follows owner acceptance. Separate local prototypes assess room voice and shared-keyboard/virtual-gamepad co-play. A room-owned tree experiment now reuses the existing route controller for bidirectional voice and video on shared Pion connections. Local media-owner experiments do not establish public App-hosted voice; neither prototype changes the published feature or protocol boundary. TODO owns upstream follow-up, device acceptance and deferred work; release artifacts and operator records own exact delivery results.

2.0 separates numeric media requests from presets and bounded runtime admission, retains successfully applied quality settings, and lets App serve an approved Site independently of Local/public room startup. It also adds detached chat on supporting desktop Browsers. Media, room authority and P2P-first routing keep their existing owners; product standards define the accepted behavior.

Optional coordinated Native UDP preparation augments the existing retry owner. The network laboratory covers all Browser/App pairings, recovery, SFU policies and successful two-App preparation through sequential kernel NAT. These results do not establish a public success rate. Magicsock remains excluded: its controlled comparison established no additional reachability worth its integration costs.

The media assessment owns bounded output and live-control evidence. Physical macOS/Linux capture, limited decoders and sustained game/4K use retain the limits in verification status. Additional codecs, room voice, surround delivery and end-to-end HDR remain outside this phase.

2.0 was published after final acceptance without a separate field beta. Immutable release artifacts and operator records own exact delivery and postflight; TODO owns remaining product work. Hosted room retention stays indefinite by default. Demo uses one hour without authenticated participants; the private deployment keeps the default.

Deployment

Source, package identity, GitHub repository and local worktree paths use Piik. Runtime code keeps only the Piik wire labels and stored keys. The immutable release descriptor, runtime REVISION and operator deployment record own exact identity and postflight results.

The existing deployment uses one Go process for Web, room authority/signaling, Binding-only STUN on UDP 3478/3479/3480 and optional SFU on UDP 7882. nginx owns HTTPS. Participants, routes and media remain process-only. This private service is not a public demonstration.

The separate US public demo is deployed with open site entry, persistent room authority and P2P-only media. Cloudflare fronts HTTP/WSS and caches static bundles; STUN uses a separate DNS-only hostname. Caddy owns origin HTTPS, and the standard systemd service runs the published Server package. Public DNS, HTTPS, runtime assets, all three STUN listeners and a bounded browser P2P sharing/stop check passed; the browser check used synthetic video on one network. The operator record owns exact identity and postflight evidence.

TODO owns remaining verification and follow-up work. The owner declared the first public release on 2026-09-12. Source is public, main protection is active, and piik.tv runs on GitHub Pages behind Cloudflare with HTTPS. The private service remains a separate deployment. Release descriptors and GitHub deployment records identify published artifacts and website revisions.

GitHub owns the original Server and registered App packages. Gitee copies them without rebuilding; mirror completion requires anonymous checksum verification. Mirror reads retry complete transfers; ambiguous uploads are reconciled by inventory before another attempt. Public-repository CI and native packaging passed. App entry, update links and bounded two-build interoperability have acceptance evidence. Accepted product changes publish automatically; standalone website and documentation changes validate and deploy the website without creating App/Server versions. GitHub/Gitee release comparison, mirror publishing and PR-sourced notes follow versioning. Verification status owns the remaining physical limits; shared lessons live in engineering.

Media Evidence And Limits

  • Compatible Native consumers share one complete stock WebRTC encoding and adaptation pipeline per local output. Different weak demands stay independent; suitable received media can be forwarded without decoding/re-encoding. Pion/LiveKit retain transport, estimation, pacing and forwarding ownership.
  • Windows H264/VP8 have bounded encoding/adaptation evidence. Actual Native relay checks cover compatible sharing, weak-budget separation and rejoining, source retirement and large encoded-frame delivery. These results do not establish a universal encoder count, CPU saving or Browser-equivalent quality.
  • Windows Host acceptance covers live and paused settings, quiet-source preparation/restore, source changes and subsequent sharing. The owner confirmed Windows 10 whole-display capture resolved. Specific new game/device failures should be reopened from new evidence.
  • Native Host publication through embedded SFU retains video/audio; Browser to App fanout and App-exit fallback have bounded physical checks. Two independent Native sessions have simultaneous media/retirement evidence.
  • The Linux runtime container has non-root/read-only, memory/SQLite, diagnostic export, STUN and listener-lifecycle evidence. This does not establish every operator's proxy/firewall or public-media configuration.
  • The independent Browser producer in ADR-0014 is integrated. Bounded H264/VP8 checks cover direct and received-track sharing, weak-child isolation/recovery, live/quiet settings, pause, source change and ordinary fallback. Its native allocation and complete-frame output replace the earlier payload-only Worker path. Fewer full encodes are established; total CPU gains depend on codec/hardware. Browser research owns these measurements and failed controls. The owner accepted this scoped Browser composition for release; actual deployment identity stays in the runtime descriptor.
  • Slow adaptation recovery, the extreme CPU-overload sampling limit and missing broad device/network/endurance results remain explicit in encoder research and verification status. macOS/Linux physical capture is deferred by the owner; Windows App and Browser are this phase's primary targets.