Files
piik/docs/status.md
T
TNTcraft 9247e48171 feat: tune relay limits and improve sharing recovery (#524)
Room defaults and personal relay limits now use the existing route controller. Hosts can set the room default; viewers can follow it or select a lower or higher personal limit, including zero. Lowering a limit uses the existing handoff, and retired connection attempts no longer consume a later viewer's opportunity.

The candidate also preserves native sharing when its local preview fails, prefers a preview-compatible codec in Auto mode when the App supports it, and improves terminal shutdown, input failure feedback and attached-menu positioning.

Validation: Web type checks, 1,936 frontend tests and the production Web build pass. Server, routing, Native host and media-edge tests and vet pass. Real three-viewer browser checks cover default/override synchronization, receive-only, signaling reconnect, downscaling to a chain and automatic recovery after increasing an exhausted route's limit. Narrow-screen, theme and visual-mode control previews were inspected.

Current field investigations remain open: the niri-specific capture failure (#499), the Windows input-refusal trigger (#502), the UU title-only load report and the older capture/source-cadence reports. These are not claimed fixed by this release.

## 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

- Set a room-wide default relay limit. Viewers can follow it or set their own higher or lower limit; zero receives without forwarding. Limits still follow each device's capability, and route selection remains automatic.
- Improve connection recovery when viewers join during route preparation or a peer connection is rebuilt. Canceled connection attempts no longer prevent later retries, and rebuilt routes require fresh media before showing as ready.
- Keep native sharing active when the host's local preview cannot play. Automatic selection prefers a codec the browser can preview when the App supports it, and restoring a preview preserves its playback state.
- Improve App shutdown when its terminal closes and complete macOS permission descriptions.
- Retain useful remote-input failure feedback while pending key releases clear. Fix attached-menu scroll jumps, invisible tooltips intercepting clicks and volume guidance when source sound is unavailable.

This update preserves the existing 2.x compatibility baseline. The new relay settings require an updated site; older pages retain their previous relay behavior.

### 中文

- 房主可以设置房间默认转发上限。观众可跟随默认,也可自行调高或调低;设为 0 时只接收、不转发。实际额度仍受设备能力约束,线路继续自动安排。
- 改善观众在建立线路期间加入,以及连接重建后的恢复。取消连接尝试后,后续连接仍可正常重试;重建后的线路收到新画面才会显示就绪。
- 房主本地预览无法播放时,原生分享继续。App 支持时,自动选择优先采用浏览器可预览的编码,恢复预览时保留原有播放状态。
- 改善终端关闭时 App 的退出流程,补齐 macOS 权限用途说明。
- 释放待处理按键期间保留远控失败提示;修复附属菜单导致的滚动跳动、不可见提示拦截点击,以及没有分享声音时的音量说明。

本次更新保持现有 2.x 兼容约定。新的转发设置需要更新站点,旧页面保留原有转发行为。
2026-11-06 14:04:17 -04:00

114 lines
6.1 KiB
Markdown

# Current Status
Last updated: 2026-11-06
This is the compact execution/deployment index. Product modules own behavior,
[verification status](./verification-status.md) 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](./standards/versioning.md#public-compatibility-promise) 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](./research/camera-and-microphone.md) 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](./research/room-interactions.md) records the design;
[product standards](./standards/README.md) own current behavior.
Release artifacts and operator records own delivery completion.
## Current Work
Room and personal relay limits preserve published compatibility and the existing
routing owner;
the [capacity contract](./standards/routing-transport.md#endpoint-and-server-capacity)
defines the two setting scopes. Release artifacts and deployment records own
delivery status.
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](./todo.md) is the only unfinished-work ledger; Git and PRs own
completed fixes. [Verification status](./verification-status.md) 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](./verification-status.md#device-evidence-boundary) and
[remaining work](./todo.md) 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](./research/room-interactions.md#remote-co-play)
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](./operations/self-hosting.md)
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](./research/network-lab.md) 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](./research/nat-traversal.md#integration-cost-and-recovery-controls)
records the technical basis.
The [media assessment](./research/native-client-media.md#media-capability-extension-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](./operations/self-hosting.md) owns listeners and network
configuration.
The separate US [public demo](https://demo.piik.tv) 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; AtomGit 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](./standards/versioning.md) owns release identity, notes,
compatibility and mirror publication.