## Problem and outcome / 问题与结果 This phase adds lightweight room interaction without making media depend on chat, and adds Windows source-audio exclusion and optional SFU-only hosting at their existing owners. It also corrects confirmed encoder/capture ownership and native color-conversion defects. Host microphone commentary remains on the shared media path; room voice and 4K are outside this phase. ## Release notes ### 中文 这是一次功能更新:Piik 加入了文字聊天与表情互动,并完善了 Windows 声音采集、画面颜色和自部署选项。 #### 新功能 - **边看边聊。** 在可移动、可缩放的聊天窗口中发送消息,或开启弹幕。停止分享后,房间中的朋友仍可继续聊天。 - **表情互动。** 点击沙发上的人物,给自己发表情,或把番茄等表情送给朋友;各端按同一事件显示动画。 - **排除应用声音。** Windows App 分享整个屏幕时,可排除一个应用及其子进程的声音,适合同时使用语音软件。所选应用退出后,来源声音停止,避免恢复为未过滤的系统声音。 - **可选的纯 SFU 模式。** 自部署管理员可让共享画面和声音统一通过媒体服务器转发。默认仍为优先 P2P;App 公网邀请保持纯 P2P。 - **Windows HDR 转 SDR。** 原生采集与缩略图自动将 HDR 来源转换为 SDR,沿用现有观看链路。 #### 修复与改进 - 修复原生颜色转换的范围与矩阵处理,避免已复现的暗部丢失、高光裁切和颜色偏差。 - 修复共享编码器切换时使用过期需求或过期帧信息的问题,保护正在观看的画面;修复换源后旧采集事件可能影响新来源的问题。 - 统一新控件、浮窗与来源选择文案,补充中英文使用说明。 #### 使用与升级 聊天与表情需要新版站点页面和 Server;声音排除需要新版页面与支持此能力的 Windows App。聊天只保留本页最近收到的消息,刷新后清空,不补发历史,且不提供端到端加密。 HDR 转换输出为 SDR,不代表端到端 HDR 或多声道支持。既有房主麦克风与立体声能力保留。 ### English This feature update brings text chat and reactions to Piik, alongside improvements to Windows audio capture, picture colors and self-hosting options. #### New features - **Chat while watching.** Send messages in a movable, resizable window, or enable on-screen chat. Friends can keep chatting after the host stops sharing. - **Reactions.** Select a person on the sofa to react above yourself or send a tomato and other reactions to a friend. Participants animate the same shared event. - **Exclude application audio.** When sharing a whole screen with Windows App, exclude one application and its child processes, useful when using a separate voice app. Source audio stops if the selected app exits, preventing a return to unfiltered system sound. - **Optional SFU-only hosting.** Site operators can require shared video and audio to pass through the media server. P2P-first remains the default; App Public invite remains P2P-only. - **Windows HDR-to-SDR conversion.** Native capture and source thumbnails automatically convert HDR sources to SDR for the existing viewing path. #### Fixes and improvements - Correct native color-conversion ranges and matrices, addressing reproduced crushed shadows, clipped highlights and color shifts. - Correct stale demand and frame evidence during shared-encoder handoffs to protect the current picture. Prevent events from a replaced capture from affecting its successor. - Align new controls, floating panels and source-picker copy, with updated Chinese and English guides. #### Using this update Chat and reactions require updated site pages and Server. Audio exclusion requires updated pages and a Windows App that supports the capability. Chat retains only recent messages received by the current page, clears on refresh and does not replay history. It is not end-to-end encrypted. HDR conversion produces SDR; it does not add end-to-end HDR or surround sound. Existing host microphone commentary and stereo support remain available. ## Verification / 验证 - Web type checks, 78 test files / 1275 tests and production build: PASS. - Go core tests, formatting/vet and target builds: PASS; Darwin cgo remains platform-limited on this Windows runner. - Native build/check/color probes and synthetic HDR-to-SDR H.264/VP8 browser reception: PASS. - Access/privacy gate, Native H.264 SFU-only media gate and local Auto/H.264 Host gate: PASS. - Three real production pages: chat/reactions, stop/resume, idle-room join, host departure/return, offline draft recovery and invitation revocation: PASS. - Synthetic parent/child process-audio exclusion and target lifetime: PASS; no raw audio retained. - Windows candidate archive extraction and packaged Local startup/shutdown: PASS. - Documentation and website build: PASS. - [Candidate CI](https://github.com/TNTcraftHIM/Piik/actions/runs/36873766646) at `f26cd208d03bc0dcbe353f8cac217f993216b0a3`: Go core and race checks, Web tests, Server/container checks and Windows/macOS/Linux App packaging all PASS. Publication was skipped as intended. The owner accepted the UI/model and bounded local walkthrough for phase closure. Physical HDR/mixed displays, mobile keyboard, real voice applications across output devices and macOS/Linux capture remain unverified. Existing field reports without matched evidence are not claimed resolved. The owner authorized v1.7.0 publication on 2026-10-02. The final documentation-only commit records that authorization; product code matches the verified candidate above. ## Impact / 影响 Authorized version: **v1.7.0**, matching the local release planner. Current wire contracts remain Browser/server 23, Native control 9 and capture 7. Optional capabilities gate new functionality; existing room/media authority remains owned by the existing services. No new ports, message persistence, room voice or automatic room creation on page visit. Updated README, guides, standards, research evidence and TODO stay with the candidate phase.
8.2 KiB
Verification Status
Last updated: 2026-10-01
This file owns physical evidence limits that change how the product may be described. Status owns the execution/deployment index. Product modules own behavior; research owns measurements; Git owns completed implementation and obsolete package history.
Current Evidence
Windows App and Browser are the owner's primary acceptance targets. Current Go packages embed their Web assets and do not run a Node backend. The current contract is Browser/server v23, Native control v9 and capture v7.
Bounded current checks cover:
- Native H264/VP8 output, compatible encoding reuse, different weak-budget grouping, keyframe-safe retarget and independent retirement;
- Windows live/paused/quiet-source settings, source replacement and subsequent sharing, including media-object continuity where required;
- Native H264 SFU video and decoded Opus through a profile change and closure;
- Browser-to-App fanout and App-exit fallback;
- concurrent Native sessions with independent media and retirement;
- complete large encoded access-unit transport and bounded queue/cache behavior;
- Linux container startup as non-root with a read-only filesystem, memory/SQLite restart semantics, diagnostics export, STUN and listener lifecycle; and
- public embedded-SFU H264/VP8, audio, live profile changes and closure after the coordinated production cutover.
The owner confirmed Windows 10 whole-display capture resolved. Chromium WebRTC/IP-handling policy explains the verified local-media failure; it is a Browser policy limitation, not a Vivaldi-specific transport workaround.
The Windows capture-border control and borderless previews have physical Windows 11 evidence. Unsupported Windows and actual border-permission denial remain device checks. The optional Windows 10 Windhawk procedure is documented from its author and has not been tested with Piik on Windows 10.
NAT traversal and Auto codec selection are implemented features, not unfinished functionality. On 2026-09-09 the owner confirmed that the new NAT traversal is useful in actual use. That field confirmation is accepted; it does not claim a population success percentage or identify which candidate won without a trace. Neither a statistical NAT campaign nor exhaustive Auto hardware benchmarking is required to close this phase. Investigate further only from a new failure or a measured improvement worth its implementation and maintenance cost.
Candidate Evidence Boundary
The Windows HDR-to-SDR candidate has synthetic FP16 conversion and decoded H.264/VP8 Browser reception evidence. Local displays were in SDR mode; real HDR content, SDR white on HDR displays, mixed-display movement, display-mode changes and sustained GPU contention still require physical acceptance. The fidelity assessment owns measurements. These checks do not establish Browser-capture HDR behavior or end-to-end HDR.
Windows source-audio exclusion has bounded parent/child tone-isolation and target-exit evidence. It does not establish coverage of arbitrary process trees or real voice applications across playback devices. The audio assessment owns that distinction.
Room interactions have multi-page Browser evidence for stop/resume, idle-room join, Host departure/return, reconnect, invitation revocation and event timing. Responsive Browser checks cover narrow portrait and landscape layouts, but not real phone keyboards, Safari behavior or every touch/device combination. The owner accepted this bounded UI/model walkthrough for phase closure; these physical limits remain open and are not release authorization.
The 2026-09-11 functional test acceptance used two genuine Windows App packages and matching Server source/Web builds under the same private contract. Both App/Site version directions delivered decoded 1080p H264 from an isolated native test window. Replacing the Server process preserved SQLite Host authority, private code-entry policy, Viewer grant/password authorization and App configuration. Already-open Host/Viewer pages reauthenticated without reloading and completed subsequent sharing. Exact measured identity belongs to the package descriptors and local structured acceptance result; Git retains the preparation history.
This is bounded single-machine Windows evidence. The local Server executables were built for Windows from the matching source; this run did not execute the Linux release archives. Process replacement used a forced stop on Windows and does not promise uninterrupted media. It does not cover game/audio endurance, storage faults or the wider device/network matrix.
The first public release passed real Server/three-platform App packaging and GitHub/Gitee publication, including anonymous mirror checksum verification. These packaging checks do not establish physical macOS/Linux capture or expand the device/network evidence below. Status owns current publication and activation state.
Remaining Device And Network Acceptance
The following are broader coverage and endurance tasks, not automatically new implementation mechanisms:
- heterogeneous public-network P2P and multi-hop Browser/Native/SFU-fed relays;
- Native IPv6 direct connections across separate networks with usable IPv6; local dual-stack checks establish socket and candidate behavior only;
- Host/Viewer TUN/VPN combinations, migration and all-UDP-blocked bounded failure;
- two-room public SFU load, real-game audio/video synchronization and sustained packet loss/recovery;
- weaker Hosts at 720p30, 1080p30 and 1080p60, CPU/GPU contention, thermals, long-running resources and the 20-Viewer bound; and
- physical mobile autoplay, background/lock, page reclamation, rotation, Wi-Fi/cellular migration and relay survival.
A short 20-Viewer topology run from an earlier revision proves only its tested invariants; it is not current-contract endurance or a public-network quality guarantee. A direct postflight with both endpoints on one machine proves public signaling and local media, not restricted-NAT traversal.
macOS/Linux physical capture/audio/recovery remains explicitly deferred by the owner. Linux producer compilation and older Mac SDK/package evidence do not prove the current Windows multi-output adaptation contract on those platforms.
Adaptation Boundaries
The encoder-pool research retains both successful and unsuccessful observations:
- A prolonged shaped-network run recovered original output about 1.5 seconds after release and stayed near 30 fps; an earlier twelve-second observation missed recovery. The cause of that difference is not established.
- H264's stock QP adaptation can take tens of seconds to restore full size.
- Extreme single-core VP8 overload produced multi-second encode gaps that reset the stock CPU detector's samples. That result does not establish normal-device or Browser parity and does not authorize custom CPU thresholds.
- Equal effective demands can share; incompatible demands may need more encoders. Extra fallback outputs, buffers and recovery keyframes have real costs.
- The 360-to-187 encode-call result compares a bounded prototype with independent encoders. It is not an old-versus-new Native product CPU benchmark.
The earlier borrowed-child Browser experiment failed independent quality and accounting. The independent producer in ADR-0014 now has bounded H264/VP8 direct/relay, weak-path, lifecycle and A/V evidence on the acceptance candidate; its research owns results and limits. The owner authorized its release on 2026-09-09. Browser relay shares local outputs among its direct children; it still re-encodes received media. Native/SFU healthy forwarding remains encoded.
Interpretation
Configuration/unit/loopback checks prove their named invariants. Physical results belong to the tested revision, device and workload. Missing counters remain unknown. A new diagnostic collector must be checked in a real exported report, including retention and failed-collector information; logging a method call alone does not establish useful evidence. Browser/OS suspension remains a physical limit rather than a keepalive guarantee.