Files
piik/docs/verification-status.md
T
AAA e3ada873fd feat(app): improve sharing controls, recovery and troubleshooting
Sharing failures were often reduced to a generic message, and changing Windows audio exclusion required reopening source selection. This phase keeps actionable failure context at the TV status indicator, adds live source-audio controls, and integrates independent capture, codec and ICE-lifetime repairs against the published contract.

The audio controls reuse source replacement and the existing mixer; audio-only changes preserve video capture, encoded sources and connections. Source enumeration is bounded by the serialized control response. Codec preflight and H.264 decoder input enforce the existing native format. Gateway mappings are revalidated only for actual ICE gatherings. Website scripts and styles now share content-addressed build output.

Browser/server v23, Native control v9, capture v7 and the 1440p ceiling stay unchanged. The held 4K/capability candidate and Magicsock transport are excluded. Documentation changes belong to the existing guides, standards and evidence owners.

## Validation

- `npm run check`: type checking, 81 test files / 1,370 tests and the production Web build passed.
- `npm run check:go`: Go tests, formatting, vet, cross-builds and Windows native capture regressions passed. A first run hit Windows temporary-directory cleanup after an unchanged SQLite test; five focused repetitions and the full rerun passed.
- Native Host gates passed separately with H.264 and VP8: live/paused quality changes, minimized-window recovery, source replacement, Viewer decoding and complete process/port cleanup. The App Local entry/authentication/invitation gate passed.
- Website/documentation build, documentation links and repository hygiene passed. Browser review covered Chinese/English, dark/light controls, 320px/360px and desktop layouts, audio selection/off state, troubleshooting dialog/ESC focus return, matching GitHub/Gitee architecture links and the embedded film.
- macOS/Linux physical capture, Windows 10 exclusion and representative network/device coverage remain explicit evidence limits. CI must pass Linux race checks and native packaging before publication.

## Release notes

### 中文

这是一次分享体验与兼容性更新。Windows App 支持在开播后调整排除的应用声音;遇到分享失败时,也有更清楚的提示和排查入口。

#### 使用改进

- 在「分享设置 → 声音」中调整系统声音和排除的应用,无需停止分享。支持的 Windows 10 系统也会按实际能力显示排除选项。
- 分享失败提示保留具体原因。点击电视下方状态,可查看处理建议、诊断入口及对应的故障排查文档。
- 补全中英文常见问题说明,涵盖 App 连接、选源与编码、站点地址配置、严格网络和浏览器 HDR 限制。

#### 修复

- 修复窗口较多或名称较长时选源列表可能加载失败,以及部分独立窗口未列出的情况。
- 改善 Windows 窗口最小化、恢复后的采集衔接。
- 修复部分 Firefox 编码属性影响连接的问题,并使原生接收的格式预判与实际支持范围一致。
- 重连时刷新网关端口映射,避免沿用已失效的映射结果;加强原生 H.264 输入校验。
- 官网下载架构切换增加统一动效,脚本与样式使用带内容标识的地址,减少更新后的缓存混用。

更新 App 并刷新页面即可使用相应改进,无需迁移配置或房间数据。Windows 10 音频排除是否可用取决于系统能力。

### English

This update improves sharing controls and compatibility. Windows App users can change audio exclusion during a share, and sharing failures now provide clearer guidance and a direct troubleshooting entry.

#### Improvements

- Change system sound and the excluded application under **Sharing settings → Sound** without stopping the share. Supported Windows 10 installations can also expose exclusion after the capability check.
- Sharing failures retain their specific cause. Select the status below the TV for recovery suggestions, diagnostics and the relevant troubleshooting guide.
- Updated English and Chinese guides cover App connectivity, source selection and encoding, site-address configuration, restricted networks and Browser HDR limitations.

#### Fixes

- Fixed source lists failing with many windows or long titles, and certain independent application windows being omitted.
- Improved Windows capture transitions when a window is minimized and restored.
- Fixed stale Firefox codec attributes disrupting connections and aligned native receiver preflight with its supported formats.
- Refresh gateway port mappings for new ICE gatherings instead of reusing stale results, and validate H.264 input before native decoding.
- Added consistent motion to website architecture selection and content-hashed script/style URLs to prevent mixed cached versions.

Update the App and reload the page to use the relevant improvements. No configuration or room-data migration is required. Windows 10 audio exclusion depends on actual system capability.
2026-10-06 02:24:15 +08:00

157 lines
8.8 KiB
Markdown

# Verification Status
Last updated: 2026-10-03
This file owns physical evidence limits that change how the product may be
described. [Status](./status.md) 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.
## Device Evidence Boundary
Windows HDR-to-SDR 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](./research/media-fidelity.md#hdr-to-sdr) 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. Windows 10 exclusion
activation and tone isolation still need a physical device check. The
[audio assessment](./research/native-client-media.md#windows-audio-exclusion)
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](./status.md) owns current publication and activation state.
Intel macOS runners can lack a usable hardware H.264 encoder. In that case,
the VideoToolbox frame self-test is explicitly skipped; compilation and package
startup do not establish Intel hardware capture. Verify it on a physical Intel
Mac with macOS 13 or newer before claiming that device coverage.
Linux x64 and ARM64 use the same Portal/PipeWire/GStreamer capture path.
Package startup and headless native regressions do not establish physical
screen/audio capture or a working hardware H.264 encoder on an ARM64 desktop.
Verify those capabilities on the target device before claiming device coverage.
## 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](./research/webrtc-encoder-pool.md) 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](./research/browser-local-encoding-pool.md) 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.