Files
piik/docs/status.md
T
AAA 72ca6f2bc9 fix(media): improve sharing recovery and mobile picture controls
Windows capture-device errors could end an otherwise recoverable share, and reused Browser frames could arrive with the wrong orientation on receivers without the same orientation extension. Recover through the existing capture generation, start new encoded generations with an independent frame, and normalize orientation before shared encoding.

The maintenance scope also keeps compact headers aligned, cycles local rotation through four directions, accepts late coordinated UDP replies, requests Browser own-audio exclusion, and improves capture/input diagnostics. It preserves the published 2.x protocol and storage contracts.

Validation: 106 test files / 1878 tests, TypeScript, production Web/website builds, Windows Go core tests/vet and supported cross-builds passed. Candidate CI passed all 3 Server and 6 App targets, including native macOS builds, plus vulnerability and race checks. Controlled WGC/Pion recovery, retained-clock/first-frame checks, Browser orientation/SFU playback and responsive-header checks passed. The downloaded candidate set passed the existing publication dry-run: all 9 targets and 10 distribution packages share v2.5.2 and source 916baefa05, with matching checksums.

Original-device investigations remain open, including #502 and the reported low source frame rate. This PR does not claim those reports are resolved.

## Release notes

**Piik, now in your pocket.**

Piik App supports Android screen sharing, with touch controls for a friend's computer.

**手机,也能开播。**

Piik App 支持 Android 屏幕分享,也能用手机控制朋友的电脑。

### English

Piik v2.5.2 improves sharing recovery, picture orientation and mobile controls. It keeps the existing 2.x compatibility baseline.

- Improve Windows sharing recovery after graphics-device errors, and resume new encoder generations with a decodable picture.
- Preserve rotated and mirrored pictures when Browser encoding is shared across receivers, including SFU routes.
- Rotate the local picture in 90° steps; keep mobile header controls aligned and its connection indicator visible.
- Improve P2P establishment when coordinated UDP replies arrive late.
- Ask compatible browsers to exclude Piik's own playback from screen audio, and improve native capture and remote-input diagnostics.

Update the App and self-hosted site together to receive all fixes, then refresh open pages. Browser settings and existing room data are retained.

### 中文

Piik v2.5.2 改善分享恢复、画面方向与手机操作,沿用现有 2.x 兼容基线。

- 改善 Windows 图形设备异常后的分享恢复,新编码器接替时从可正常解码的画面开始。
- 修正浏览器共享编码时旋转或镜像画面的方向,覆盖 SFU 等接收线路。
- 本机画面每次旋转 90°;手机顶部工具栏保持对齐,连接状态清晰可见。
- 改善协同打洞时 UDP 回复较晚到达的 P2P 建连。
- 向支持的浏览器请求排除 Piik 页面自身播放的声音,并完善原生采集与远控输入的诊断信息。

请一起更新 App 与自部署站点,以获得全部修复,随后刷新已打开的页面。浏览器设置与已有房间数据保留。
2026-11-01 12:00:26 -04:00

5.9 KiB

Current Status

Last updated: 2026-10-27

This is the compact execution/deployment index. Product modules own behavior, verification status summarizes material evidence 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.
  • Camera sharing and room voice are accepted product features. Source audio follows the picture; room voice owns conversation microphones under the same route controller. Optional Host commentary belongs to the share's audio and has separate activation. Device selection and sharing settings keep their owners. The capture assessment owns platform behavior and platform limits.

Accepted Interaction Phase

Text chat, reactions, room voice and attended remote control are accepted product features. They use existing room authority and the shared route controller; picture, voice and input grants retain their separate lifetimes. The room-interaction design records the design; product standards own current behavior. Release artifacts and operator records own delivery completion.

Current Work

The maintenance candidate preserves published protocols, compatibility and route ownership. New release feedback has reopened Windows capture termination and Browser motion-sharing cadence investigations. Device-loss recovery now retains the active media session; the original termination triggers remain under investigation. Isolated 3.0 work proceeds from the accepted semantic model rather than a mechanical translation of the current implementation. TODO is the only unfinished-work ledger; Git and PRs own completed fixes. Verification status owns material acceptance and platform boundaries.

The Android system-browser App shares the desktop Web UI and Go core, including Local/public-link rooms, Site approval, native screen capture and room voice. Its universal APK covers ARM64 and x64 through the shared release pipeline; device evidence and remaining work retain their existing owners. iOS remains separate.

Room voice, shared keyboard/mouse and optional Windows virtual gamepads use the normal App/Web interfaces. App packages contain no optional input SDK or driver. Linux uinput has an isolated kernel check; desktop permission and game-recognition coverage is pending. macOS virtual HID needs an Apple entitlement and physical build/runtime checks. The input assessment owns platform details.

App Local invitations use HTTPS on the selected LAN address, with a loopback entry for the Host. Hosted Server supports direct HTTPS with temporary or operator-supplied certificates. The HTTPS runbook owns setup. Virtual LANs and frp use the existing room and UDP media paths. The website uses the selected bilingual film A, loaded on demand with shared product playback controls and a persistent final card.

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 integration is not planned; its controlled comparison records the technical basis.

The media assessment owns bounded output and live-control evidence. Additional codecs, surround delivery and end-to-end HDR remain outside the published phase.

Deployment

The immutable release descriptor, runtime REVISION and operator deployment record own exact identity and postflight results.

The private deployment uses one Go process for Web, room authority/signaling, STUN and optional SFU, with nginx for HTTPS. The self-hosting runbook owns listeners and network configuration.

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. Demo expires rooms after one hour without authenticated participants; the private deployment retains the default of no expiry. The operator record owns exact identity and postflight evidence. piik.tv runs on GitHub Pages behind Cloudflare; website delivery includes a bilingual documentation center built from repository guides.

GitHub owns original Server and App packages; Gitee mirrors them without rebuilding and verifies anonymous downloads against their checksums. Server packages cover Linux x64/ARM64 and Windows x64; Docker images are Linux-only. App packages cover Windows x64 and macOS/Linux x64/ARM64. Accepted product changes publish through the release workflow; standalone website/documentation changes deploy the site without creating App/Server versions. Versioning owns release identity, notes, compatibility and mirror publication.