Files
piik/docs/standards/presentation-lifecycle.md
TNTcraft 81b4f27eff feat: add configurable touch controls and improve sharing recovery
## Summary / 概要

This maintenance phase updates the 2.x release line from v2.7.0 to v2.8.0. It brings configurable touch controls, clearer capture and audio choices, and bilingual troubleshooting into the sharing and viewing flows. App can also build invitations from an operator-configured HTTPS origin.

此维护阶段将 2.x 发布线从 v2.7.0 更新到 v2.8.0。改动覆盖可配置的触屏控制、更清楚的采集与声音选项,以及共享和观看流程内的双语故障排查入口。App 还可用部署者配置的固定 HTTPS 地址生成邀请。

## Implementation and impact / 实现与影响

- Reuse the existing remote-input session for touch gamepad and mouse controls and interrupt held input when control stops. Confirm media source and audio availability before sharing and reuse viewer recovery when video ends.
- 使用现有远控会话承载触屏手柄和鼠标控制,控制中断时释放按住的输入。分享前确认来源和声音可用性,观看端视频结束后沿用原有恢复流程。
- Preserve browser-assigned encoding identifiers and announce the layers actually sent to the embedded SFU. Retire stalled HTTP connections at shutdown, improve web startup failure handling and room-asset caching, and update ICE/DTLS dependencies.
- 保留浏览器分配的编码标识,将实际发送的视频层告知内置 SFU。关闭服务时回收滞留的 HTTP 连接,完善网页启动失败反馈和房间资源缓存,并更新 ICE/DTLS 依赖。
- Keep Linux window capture available when the portal offers only windows, and hide remote control where monitor capture is unavailable. The KDE retry belongs to [#550](https://github.com/TNTcraftHIM/Piik/pull/550): if the portal rejects the persistence request, App retries with a temporary session. Update website FAQ navigation and bilingual guides.
- Linux 门户只提供窗口时,仍可采集窗口。无法采集显示器时,隐藏远控入口。KDE 重试由 [#550](https://github.com/TNTcraftHIM/Piik/pull/550) 单独交付,门户拒绝持久化请求时,App 会改用临时会话重试。更新官网常见问题入口和双语指南。

## Verification and remaining field checks / 验证与待确认场景

- Candidate `62efbcdc` passed 2,033 frontend tests across 113 files. Local handoff evidence records 12 successful page responses, zero broken links in its link audit, and SHA-256 verification for Windows x64 App, Linux x64 Server, and the Android development APK.
- 候选版本 `62efbcdc` 的 113 个前端测试文件全部通过,共 2,033 项。交接证据记录了 12 个页面正常响应、链接审查未发现失效链接,以及 Windows x64 App、Linux x64 Server、Android 开发版 APK 的 SHA-256 校验。
- Issue-specific outcomes still depend on reporter environments, including Linux desktop portal availability and mobile control interruptions. The local Android artifact is a development build. Publication uses packages generated by CI from the merged revision.
- Linux 桌面门户可用性和移动端远控中断等场景仍需在报告者的环境确认。本地 Android 候选包是开发版。发布包由 CI 从合并后的提交构建。

## Merge and truth checkpoints / 合并与事实检查点

- The final candidate `cb27609994dfc5747cdce63710293c0f80b6b95f` has the same source tree as the validated `bb54da43` candidate. The integration base `4ae3619f` already contains the separately attributed #550 fix. The public release notes include that contribution once.
- 最终候选提交 `cb27609994dfc5747cdce63710293c0f80b6b95f` 与已验收的 `bb54da43` 源码树完全一致。集成基点 `4ae3619f` 已包含单独署名的 #550 修复,发布说明只收录一次。
- The final frontend check passed all 2,037 tests across 113 files. Windows and Alpine Linux Go checks passed. The Linux Go race check passed. The separate Windows race invocation requires a CGO-enabled toolchain.
- 最终前端检查通过全部 113 个文件的 2,037 项测试。Windows 与 Alpine Linux 的 Go 检查均通过,Linux 的 Go 竞态检查通过。Windows 的单独竞态检查需要启用 CGO 的工具链。
- The headless Linux portal tests cover window-only and monitor-capable sources, plus one temporary-session retry after a rejection of persistence. Android CI and local build instructions use Gradle 8.14.8.
- Linux 无桌面门户测试覆盖仅窗口和支持显示器的采集来源,以及持久化被拒后仅重试一次临时会话。Android CI 和本地构建说明使用 Gradle 8.14.8.

## Release notes

**Turn your phone into a twin-stick controller**

By default, the left stick sends WASD and the right stick moves the mouse. If the host supports a virtual gamepad, you can switch to dual analog sticks.

**手机也能当双摇杆手柄了**

默认左摇杆对应 WASD,右摇杆移动鼠标。主机支持虚拟手柄时,可以切换为双模拟摇杆。

### English

Piik 2.8.0 adds configurable touch joysticks for remote control, clearer sound settings when sharing, and help you can open from a failed share or playback screen.

- **Control from a phone or tablet.** In keyboard and mouse mode, the left stick sends WASD and the right stick moves the mouse. When the Host supports a virtual gamepad, switch to dual analog sticks. Use the main switch to turn both sticks on or off, and expand or reposition each side independently. Piik releases held input if the control session is interrupted.
- **Share the sound you want.** The source confirmation explains which sound is available and where to enable it. Browser tab audio and supported App system audio are easier to find, with guidance for keeping room voices out of the share. On Windows, capture keeps usable system audio samples even when their timestamps are uncertain.
- **Recover a missing picture or sound.** Ended viewer video enters the existing recovery flow. Browser video forwarded through the Server uses the layers the browser actually sends. The searchable bilingual Help Center walks through joining, sharing, restoring playback, and collecting diagnostics. [English Help Center](https://piik.tv/docs/)
- **Share windows on Linux.** If the desktop portal offers only windows, the App can still share a window and hides remote control when the portal cannot support it.
- **Use a fixed HTTPS address for invitations.** App operators with an existing public HTTPS endpoint, such as one provided through frp, can configure App to generate invitations with that address. [Fixed invitations with frp](https://piik.tv/docs/frp.html)

![Touch joystick controls](https://raw.githubusercontent.com/TNTcraftHIM/Piik/v2.8.0/docs/assets/guide/touch-joystick.en.png)

Update the App or self-hosted Server with the matching package outside an active share. Reopen the room page after the update.

### 中文

Piik 2.8.0 为远程控制新增可调整的触屏摇杆,分享前更容易确认声音来源,共享或播放失败时也能直接打开对应的帮助。

- **用手机或平板远程控制。** 在键鼠模式下,左摇杆对应 WASD,右摇杆控制鼠标。主机支持虚拟手柄时,可切换到双模拟摇杆。总开关可开启或关闭两个摇杆,每侧可独立展开、调整位置。控制会话中断时,Piik 会释放仍按住的输入。
- **分享想让朋友听到的声音。** 确认分享来源时,可以看到有哪些声音可用、在哪里开启。浏览器标签页音频和 App 支持的系统声音更容易找到,帮助还说明了如何避免把房间语音收进共享声音。Windows 系统音频采集会保留时间戳不确定但仍可用的音频采样。
- **画面或声音消失时恢复播放。** 观看端的视频轨道结束后会进入现有恢复流程。经服务器转发的浏览器视频会使用浏览器实际发送的分层。可搜索的双语帮助中心介绍了如何加入房间、分享、恢复播放和收集诊断信息。[中文帮助中心](https://piik.tv/docs/zh/)
- **在 Linux 上分享窗口。** 桌面门户只提供窗口时,App 仍可采集窗口,并隐藏门户无法支持的远程控制入口。
- **用固定 HTTPS 地址生成邀请。** 已经有公网 HTTPS 入口的 App 部署者(例如通过 frp 配置的入口)可以让 App 用该地址生成邀请链接。[使用 frp 配置固定邀请](https://piik.tv/docs/zh/frp.html)

![触屏摇杆控制](https://raw.githubusercontent.com/TNTcraftHIM/Piik/v2.8.0/docs/assets/guide/touch-joystick.zh-CN.png)

请在共享结束后使用对应的软件包更新 App 或自托管服务器,更新完成后重新打开房间页面。
2026-11-21 03:44:44 -04:00

29 KiB
Raw Permalink Blame History

Presentation And Lifecycle

This file owns user-visible workflow, presentation authority, presence, and Browser lifecycle promises. Component structure, CSS, exact copy, and routine UI tests belong in source code.

Product Surface

The first screen is the working tool, not a marketing page. Once site access is available, starting a share and joining a room are equally discoverable actions; joining expands the four-digit room form in place, while /join remains a direct entry route. Users never choose a media topology.

Host entry requires both site access and a validated capability description. Initial entry, retry and password recovery load the same prerequisites; failed authentication cannot leave a later successful entry using absent capability state. A capability-load failure remains retryable and does not imply that a service is available or disabled. Viewer/Join entry does not need this Host-only description.

The Host workspace centers the capture preview, room code, invitation and common share controls. The Viewer workspace centers one persistent 16:9 video stage, room identity, current state, roster, and one manual media-reconnect action. Controls and text must remain usable without overlap or horizontal overflow on desktop and mobile viewports.

Personal room-tool presentation and incoming-route preferences are remembered within the same Browser origin across rooms and reloads. Their existing domain owners still apply capability and room-policy constraints. Remote-control shortcut choices follow this same boundary; App applies them only in memory. Restoring preferences never restores room admission, control grants, actual held input, passwords or message drafts, and never starts capture or remote control.

A capable, opted-in authenticated room session outlives its current publication. Stopping capture retires media, not chat; restoring an existing room joins it without starting capture. Entering the page alone does not create a room. Room close, lost authority and page teardown still retire the session, including its App control connection and pending discovery. That retirement cannot wait for the denied page to unmount. Connected Viewers may keep interacting while the Host page is absent, provided the room service and their admitted sessions remain available. Rooms and access owns interaction authority and retention; status owns release readiness.

The Host can explicitly Create room before sharing. Chat and voice use tabs in the existing interaction window, including its detached presentation. Closing or changing that window does not leave voice or stop capture. Microphone, admission and connection states stay literal; an enabled microphone is not proof that someone is speaking. The room voice contract owns channel activation and membership, independently of the window and picture publication. The visible voice roster follows connected room members immediately; the server's reconnect grace does not keep a departed person on screen.

On capable desktop browsers, the interaction window can move to a Document Picture-in-Picture window. It retains the admitted room session's messages, reactions and draft. Read visibility and guidance follow its current document. Closing the window returns it to the page; room retirement or opener teardown closes it, including a late asynchronous open. Browser window support does not promise game-overlay transparency, click-through or exclusive-fullscreen coverage.

Desktop Piik App opens this same application in the system Browser. Its startup surface offers Local and temporary public invitation; the running App is already available to its approved Sites before either mode starts. Browser pages share one App entry across platforms; discovery and authorized health determine its connection state. Android adds an explicit wake action. Browser and camera actions retain their own capability checks. A Site's explicit App action discovers the local approval page, where the user confirms its exact origin. The launcher lists approvals and revokes each independently. Starring an external Site makes an ordinary App launch open its fixed address without starting a room. Starring the current App-owned Site records its launch selection instead: the next App run starts that mode and enters its fresh ready address. The current runtime's exact origins determine ownership; a temporary invitation hostname alone does not. Without a startup choice, the launcher opens. This preference grants no access or capture permission. Its launcher checkbox can clear an App-owned choice; revoking its current origin also clears it. Other approvals leave the choice intact. Older saved temporary URLs have no ownership information: start the Site from the launcher and select the startup checkbox again on its current entry. Explicit CLI entry keeps precedence. The ready App button and terminal launcher address return to its management page in every mode. A pending or healthy Local/public room keeps its startup selection; reopening the launcher does not stop or replace that room. After a failed attempt has fully retired, the launcher can retry or select the other mode in the same App run. Changing a healthy room's mode requires restarting App. An App-launched tab selects that process's control endpoint and retains the selection through reloads in its Browser session. If that endpoint becomes unavailable, discovery stays with it; a new explicit launch selects another App. Endpoint selection does not grant Site access or capture permission. Activating a page supplies native capability without restarting its room or healthy media session. The shared App entry stays in the header while selecting a source; a successful connection refreshes the open selector's list. An already approved exact origin needs no repeat confirmation, but the page still verifies authorized App health. Closing the selector does not cancel the separate site approval. Existing Browser shares stay unchanged when App connects; explicit source replacement uses the current share's source transaction. App-created Local/public-invite Host pages open at their automatically approved loopback origin. The shared App button reflects verified authorized health, including activation through another entry and return to an activated page; a remembered activation alone cannot show readiness. Idle verification holds no media session or polling loop. Viewer links opened at that activated origin may use the same running App without changing the Viewer UI. Starting a share offers the Browser picker and any exact App-owned native windows. It never chooses a window automatically. A reproduced Browser-window, capture, or background failure is required before introducing an embedded Web runtime on desktop. The Android App uses that same system-browser workflow. Recording consent and foreground services remain platform-owned. Its startup page and site management reuse the shared launcher. Waking App or navigating to a site never grants native permission. A pending system permission stays with its current native request while the user enters App and returns to the browser. App returns after the requested capture preparation completes, including source audio; video readiness alone does not complete that operation.

Opening the system Browser is an asynchronous convenience action. One pending OS handoff is allowed; a slow or failed handler cannot block readiness or App exit. The console retains the entry address and reports the underlying error. The App does not terminate the user's browser to enforce a handoff deadline.

Server and App share one control layout and vocabulary. Deployment capabilities may fix a control on or off, but do not remove its place in the interface; disabled controls explain their reason in text and pure-visual modes. Real workflow differences remain explicit: site authorization, opt-in diagnostics and the capture/audio capabilities of the connected device are not alternate versions of the product UI.

A remembered App activation permits discovery when choosing a source or receiving media; it does not make App a prerequisite for sharing. Idle Host pages hold no App control session. The shared source selector orders Browser, Camera, Window and Screen, defaulting to Window after App detection. An App that provides only a system picker gets one combined choice in place of Window and Screen. Browser and Camera choices require their respective Browser APIs; temporary restrictions keep a supported choice disabled. Without an App, the selector defaults to the first supported Browser or Camera choice. Discovery never blocks Browser selection or overrides an explicitly chosen tab. Refresh remains reachable after failed App discovery; pending attempts are shared, completed failures do not suppress later discovery. Cancelling the selector or ending a share releases its unused control session; an obsolete operation cannot install or retire another operation's media. Cancellation covers discovery and the opening handshake, not just a connection returned later. Camera thumbnails own only temporary preview inputs; leaving their tab or picker retires them. An active shared camera is borrowed, never reopened or stopped by preview. Optional native ingress uses an already available connection without another scan. If it is not ready at Browser startup, that share keeps Browser senders.

Native Host startup acquires its required Browser media connection before starting capture. Cancellation owns that connection immediately, while native share ownership and required audio tracks come from the accepted App response. Browser initialization failure remains distinct from capture permission failure.

A reachable Piik App with an incompatible control protocol is distinct from an absent App. Without an explicitly selected endpoint, discovery continues looking for a compatible process before reporting the mismatch. The source selector retains Browser operation and offers update/refresh guidance. Discovery metadata may grow, while known identity and capability types remain validated. Missing optional capabilities are unavailable; control commands and responses retain their strict protocol contract. An empty source list means enumeration succeeded for the selected category. Connection, capture-capability and enumeration failures keep their own feedback. Discovery has one bounded deadline that allows time for browser local-network consent; a failed fetch alone cannot establish that consent was denied. Optional Viewer reception uses Browser media immediately when the browser reports that local App access still needs consent or is denied. It rechecks permission on a later connection attempt; a later grant does not replace healthy Browser media. App Local needs no cross-address-space consent. Browsers without a permission query retain bounded discovery.

Visual Language

Chinese, English, and pure-visual modes are three expressions of the same typed state and command catalog. On first use, the App and Server UI match the Browser's primary system language against registered locales, using English when none matches. Simplified Chinese and English catalogs are complete; Traditional Chinese, Japanese and Korean UI catalogs provide partial translations with English fallback. System-language matching distinguishes Chinese scripts, including zh-TW, zh-HK and zh-Hant for Traditional Chinese. The website retains its separate bilingual presentation. Additional UI languages use the existing dropdown alongside pure-visual mode. Chinese and English remain direct controls; the third control retains the last extra language or visual choice for the current page. Selecting an inactive choice switches to it; selecting it again or using its adjacent arrow opens the menu. Language and visual mode keep their independent stored preferences. Pure-visual mode remains an explicit choice. An explicit later choice is persisted and takes precedence over that default, including App launch handoff. Explicit launcher choices apply only to the presentation domains the user chose. Older launchers cannot distinguish defaults from explicit choices; updated Sites preserve their saved preferences when receiving those unmarked hints. The App console uses its own supported presentation languages and falls back to English for additional UI languages. Text modes use concise copy.

The visual language is the single owner of illustrative roles and objects, semantic colour, panel grammar, motion, accessible input and responsive hierarchy.

Playback Ownership

One <video> element owns Viewer playback and frame proof. The shared playback bar reflects that element and provides local play/pause, mute, volume, theater, picture-in-picture, fullscreen and the existing reconnect action. It stays reachable while waiting or disconnected. Theater and fullscreen are separate modes. Page-element fullscreen includes the playback bar; Safari's video-only fullscreen uses system controls and native video events to reflect playback and exit. Identity, connection details and topology stay in the deck. Room tools outside the fullscreen player close when it enters fullscreen. Returning a detached tool during fullscreen keeps it closed in the page; leaving fullscreen allows reopening it with its session and draft intact. The fullscreen bar retains the danmaku toggle, not an interaction-window entry.

Viewer playback settings reuse shared controls in an anchored popover; placement follows the visual language without resizing video. Local picture fit defaults to contain; cover preserves proportions and may crop edges, while stretch fills the player by changing proportions. These choices do not change capture or encoding. Each rotation action advances the local picture 90° clockwise, returning to its original direction after four turns. This preference does not depend on device auto-rotation and applies to page playback, including theater and DOM fullscreen. System video presentations retain their browser-owned behavior. Remote input and magnification use the same rendered picture geometry. Incoming-route choice follows the routing contract; its selected value is server-acknowledged intent, not evidence of the currently playing route.

Replacement video bindings do not consult Viewer-local pause: when the Host is playing, they attempt playback subject to browser autoplay permission. There is no separate remembered playback intent for source changes or reconnects. A new binding received while the Host is paused waits for the Host to resume; it does not inherit the previous binding's Viewer-local pause. Adding, replacing or removing audio on the same video binding updates only its audio consumer; it preserves current-frame proof and Viewer-local playback. A pending play() canceled by pause or rebinding is not a media failure; cancellation alone must not invalidate frame proof or disable local playback.

The bar floats at the picture's lower edge. Separate playback and sound, remote input, viewing options, and window actions; on-screen chat belongs with viewing options. Keep PiP, theater and fullscreen together at the trailing edge. Frequent viewing actions stay directly reachable; on-screen chat appearance and connection preferences stay in playback settings, while chat settings own records. Picture fit uses one cycling control. Narrow players keep volume, PiP, theater and fullscreen directly available. Keep one translucent capsule at the lower edge. Narrow players shorten the volume slider, hide its percentage and move picture fit/rotation into the attached settings, reusing those controls. Playback, sound, remote input and window actions stay on one row under the same visibility owner. Playing video hides the bar after two idle seconds, following Media Chrome's default. Pause or unavailable playback keeps it visible. Control hover, keyboard focus, dragging and an open tooltip hold it open. Mouse movement reveals it; a touch tap on the picture toggles only visibility. Remote input owns picture clicks and movement, so use the bezel pull during control; pointer-locked input also never reveals the toolbar through mouse movement. One presentation hook owns visibility for the current player, using one idle timer; it never changes playback or route state. Controls follow the shared motion grammar.

On touch devices, the two on-screen sticks are available while the current picture is playing and its authorized remote-control channel is ready. The viewer can turn both sticks on or off in Remote keyboard's Local controls. The sticks start closed. Tap L/R to toggle that pad or drag its handle to place it within the picture. Each side remembers its relative position on this browser. Only the handles tuck against their respective edges when idle. Each open pad keeps its position and input area. In Show on touch mode, the pad briefly shows its outline when opened and shows the thumb while pressed. Closing that side restores ordinary picture input there. Remote keyboard owns the mapping for both sticks. Keyboard and mouse mode sends WASD and relative mouse movement. When a virtual gamepad is available, the viewer can select its left and right axes. A connected physical gamepad leaves the touch sticks available for keyboard and mouse input. Collapsing a stick releases its input. Focus loss or a control disconnect neutralizes both sticks.

A picture click does not pause playback; the playback button and focused-video keyboard shortcut own that action. Desktop double-click toggles the available fullscreen action. Remote-control input consumes its own clicks and key presses; controls and overlays keep their own immediate behavior.

Host source-audio feedback describes the selected source independently of room voice. Viewer picture-sound controls require a received audio track and, when the Host supplies input availability, an available source or microphone input, including explicitly enabled source commentary. With no input, sound controls are disabled with the no-audio explanation; the Viewer's volume and mute preferences remain intact for audio returning. Older Hosts without this fact retain received-track feedback. These controls do not infer input presence from silence or change capture, transport or relay audio.

Viewer volume starts on native audio output. An explicit setting away from 100% activates a local Web Audio stream source and gain, from silence to 200% amplitude. This also avoids iPhone's system-owned video.volume. This output exclusively owns sound while running, follows video pause and user mute, and rebinds when the audio track changes. It never modifies the received track or the stream relayed downstream. Unmount closes the graph. Browsers without gain support retain 0–100%; video-only system fullscreen also hands audio back to the native controls at at most 100%, rather than running two outputs.

This uses the standard Web Audio stream-source and gain nodes. The gain is amplitude scaling, so loud source peaks can clip above 100%.

The Host reuses this bar, but its sound controls own outgoing source volume, 0–200%, initially 100%. Preview sound remains muted. Browser capture applies gain before its outgoing track; Native capture applies it before the shared Opus encoder. Source replacement retains volume, a new share resets it, and room voice is independent. Older Apps without source-volume capability retain sharing but disable this control with an update hint.

Picture-in-picture uses the browser's native video window, including Safari's presentation-mode API. Native enter/leave events own its displayed state; closing the window or replacing the received stream does not create another playback owner. Successful entry exits this video's other fullscreen mode, and unmount closes only this video's window. Unavailable capabilities remain disabled with an explanation. The native window contains video and system controls, not page overlays or the custom bar. See the PiP specification and Safari integration.

Viewer-local playback actions never change Host capture or another Viewer. Reconnect retains the existing route-operation owner. The Host preview reuses the picture controls and starts muted. Local pause, fit, rotation, theater and fullscreen affect only that preview; the separately labelled sharing controls own authoritative pause and stop. Its speaker control adjusts the shared output for Viewers, as defined by source audio; it does not enable local monitoring. By default, a hidden or unfocused Host page suspends local preview, except while its video is in Picture-in-Picture. The Host can disable this in playback settings to keep watching on another monitor; the choice is remembered at the same Browser origin. Returning to the page or changing this preference preserves an explicit local pause.

Autoplay rejection exposes the play action. A connection, track object, or playing event alone is not proof that the current route is visible. The Viewer removes its blocking presentation only after a current-generation frame is composited, using requestVideoFrameCallback() where available and a decoded- progress fallback otherwise.

State And Recovery

Access, Host presence and pause, route prepare/active, P2P/SFU connection, media binding, frame proof, autoplay, and terminal failure are typed facts interpreted by one presentation reducer. Older route or media generations cannot overwrite the current result, and raw server errors are never rendered directly.

The room route revision orders control messages; it is not a Viewer media identity. Reauthentication replaces the route snapshot authoritatively, even if a replacement controller restarted revision numbering; ordinary updates remain monotonic within that authority. A Viewer frame belongs to its local media generation and remains current across unrelated graph revisions until that exact binding is replaced, invalidated, or terminally failed. Pending candidates never own the primary badge, status line, or overlay while committed media remains proved. A shared visual projection maps those facts to title, media status, notices and overlays. None of these views owns state for another. Connection availability, actual playback and quality limitation remain separate; raw transport snapshots do not prove playback or quality. The status preview records the visual vocabulary and the evidence needed for participant lamps.

Excluding time spent in the Browser's capture/play authorization UI, a Viewer request targets a first visible frame within three seconds. Until then, the page must continuously show a truthful accessible connection stage rather than a black screen, ICE-connected state, or unproved playing event.

  • A proved current frame remains visible behind non-terminal recovery state.
  • The status projection owns the television, Header, notices, participant lamps and title. These consumers cannot turn an unproved frame into playback or ordinary quality into failure.
  • The Host's couch and Viewer overview share the participant projection. The Host's own pawn has no additional lamp. Committed mediaReady owns picture readiness; transport diagnostics and quality samples cannot override it in either direction. Room presence and a committed voice route remain valid without a picture.
  • Viewers do not infer another Viewer's quality or diagnose missing readiness as terminal failure; roster readiness and quality evidence remain distinct.
  • An overlay explains the absence of a usable picture, authoritative Host pause, or a required user action. Ordinary quality warnings never cover playback.
  • Host pause retains the current frame and waits for resume.
  • Host signaling loss alone does not invalidate media that is still healthy.
  • Exact media failure or terminal route failure invalidates current-frame proof before showing a retained frozen background and recovery or failure state.
  • Room not found is distinct from current-room access denial and does not prompt for a password.
  • Manual reconnect recovers the same route. It does not select a new parent.
  • An actionable overlay may appear while fullscreen remains active; application state never forces the user out of fullscreen.

Decoded-frame silence is not a route-failure signal. A live source can stop repainting; media-framework failures, not an application silence timer, own recovery. First-frame admission and candidate-relative proof still require decoded progress. Visibility, page freeze, and pagehide invalidate quality observations, not already-proved playback. Returning to the page re-arms frame observation; an existing recovery state still requires a fresh current frame to clear. SFU media is retained independently of transient room-signaling loss, but Browser or OS suspension and page reclamation remain outside Web guarantees.

The local Native media bridge owns bounded ICE recovery on its existing connection and stream. Its offer identity fences each answer; retirement cancels pending negotiation and cannot recreate a source or receiver. Connection recovery does not assert fresh media, and an intentionally paused source is not a failure. First-frame and playback owners retain their existing evidence requirements.

Terminal failure of the local Native media bridge disables Native reception for the current Viewer session before route recovery runs. Future peers in that session use Browser reception; existing healthy peers are not torn down by this choice. Parent-network failure alone is not evidence that the local Native capability is unavailable.

The Native Host's local bridge remains required by its Browser share owner: the stream supplies preview and Browser quality candidates and participates in source and quality changes. A terminal failure retires that share through the existing Host lifecycle; it is not merely a missing preview. An individual downstream network failure instead recovers that edge and does not retire the bridge or capture. Browser capture's optional Native fanout can fall back to Browser senders because the Browser still owns its source.

Presence And Diagnostics

Host and Viewer pages show the authoritative online Viewer count and roster, independent of the media graph. A display name is Browser-local, NFC-normalized, at most 24 Unicode code points, and rejects unsafe control or bidirectional characters. It is a label, not an account, authorization identity, or routing input. Duplicate names are allowed and receive a room-scoped peer suffix only when disambiguation is needed. Chat applies the same labeling rule to recorded sender names; repeated messages from one peer do not create another identity. Media readiness never owns identity.

Connection details are progressive and use one card shape for P2P, peer relay, and SFU Viewers. Summary fields prioritize actual resolution, FPS, bitrate, and loss; deeper fields appear only when meaningful. Topology is a separate view. Native bandwidth or CPU limitation warnings describe the exact outbound sender that reported adaptation; they do not by themselves locate the physical bottleneck or describe the Viewer's receive path. The Host's participant freeze warning requires fresh receive evidence matching the current upstream and a positive freeze count or duration for that window. Window *Delta fields never inherit older values; other fields may retain their existing details-display cache. The existing evidence expiry removes stale warnings. No additional participant state, broadcast, timer or quality score is introduced. Detailed per-edge observations remain available without a global warning selected from the first limited child. Locally exposed selected-candidate addresses may be shown only on the Browser that owns that PeerConnection and are never uploaded, persisted, or used for identity or route selection. Explicit Debug mode can export a bounded diagnostic report through the separate diagnostic owner; ordinary connection details do not collect or expose that report.

Current scope includes Web Host, Web Viewer, Browser relay, and optional Native Host/Viewer media beneath those same pages. Desktop and mobile Browsers are Viewer targets. Android screen capture is implemented in the system-browser App candidate; public delivery awaits its platform acceptance. Reliable background relay, App-owned SFU and physical non-Windows native acceptance remain later work.

Primary References