Piik can now let one invited Viewer control the Host's shared desktop or window, using the existing media route and explicit source-scoped consent. This phase also finishes Viewer playback settings, the combined interaction window, the shared control/theme/icon polish, and concrete forwarding-feedback recovery fixes. Remote input stays off by default, uses one controller and releases held input on revocation, retirement or loss. Existing 2.x sharing remains compatible; new capabilities are negotiated with supporting App/Site/relay peers. No virtual input driver, new media listener or route planner is added. Validation: full Web check (97 files / 1,677 tests), Windows Go/native checks; seven real Browser/App lifecycle scenarios covering P2P, SFU and fallback-to-direct continuity; existing cross-version and physical Windows routed-input evidence; native macOS/Linux packaging, Go race/security and container checks through the publishing pipeline. Physical macOS/Linux permissions, mobile devices, mixed DPI and commercial games retain their documented limits. README/wiki keep deployment under the optional self-hosted Server chapters. Refs #472, #477, #479, #480. Issue follow-up happens after publication; unmatched field reports remain open. ## Release notes ### 中文 这是一次功能更新:一起看屏幕时,可以把键鼠交给一位朋友操作,聊天和表情也整合进了同一个互动窗口。本次还整理了分享与播放设置,并修复部分连接恢复和中转画质停滞的问题。 #### 新功能与体验 - **可选键鼠远控**:房主可以让一位朋友操作当前分享的桌面或窗口,随时撤回授权;换源或停播后关闭远控。提供手机触控、缩放和小键盘。当前实机验证覆盖 Windows App。 - **观众播放设置**:新增完整显示、等比铺满、拉伸铺满,以及自动/仅 P2P/仅 SFU 线路选择;站点和房主的线路限制仍然生效。 - **互动窗口**:聊天、参与者和表情放在同一窗口;可以从聊天头像选择接收者,新增点赞、倒彩等表情。支持的浏览器可以独立置顶,继续查看聊天和互动。全屏保留弹幕开关。 - **分享与播放设置更清楚**:暂停与停止相邻,画面、声音、连接和远控各有对应入口。观众播控在移动鼠标时显现,远控时收进画面边缘的小抽屉;点击画面不再意外暂停。没有声音输入时播控给出明确反馈,恢复输入后保留观众的音量设置。 #### 修复 - **连接与播放修复**:修正部分中转路径的媒体时钟、往返时间与重复反馈统计,改善这些错误导致的画质恢复停滞;重新进入房间后,SFU 连接仍可继续尝试直连。同步底层握手恢复修复。 - **界面修复**:修复浮窗返回后遮挡全屏、无法操作,窄屏控件错位、菜单超出边界等问题。虚拟键盘长按不会选中文字,拖出、取消或失焦后释放按键。页面和选源面板统一中性底色;App 图标与 favicon 保留小电视轮廓,精修对比度与底板层次。 - **兼容性修复**:新表情按站点支持情况显示,避免旧站点拒收后断开连接。补齐旧浏览器的浮层支持;修正 macOS `.app` 对包外启动文件的依赖。macOS 的 Finder、权限和远控仍需实机验证。 #### 更新说明 沿用 2.x 兼容边界。使用远控需要更新房主 App 和所连接的站点;要获得完整的中转修复,请同时更新 App 与自部署 Server。 ### English This feature update lets a Host hand keyboard and mouse control to one friend while sharing a screen. Chat and reactions now share one interaction window. It also clarifies sharing and playback settings and fixes specific connection-recovery and server-forwarding quality stalls. #### Features and experience - **Optional keyboard and mouse control:** the Host can let one friend control the shared desktop or window and revoke access at any time. Changing sources or stopping sharing disables control. Touch controls, zoom and an on-screen keyboard are included. Physical validation currently covers the Windows App. - **Viewer playback settings:** choose fit, crop or stretch, and Auto, P2P-only or SFU-only routing. Site and Host restrictions still apply. - **One interaction window:** chat, participants and reactions stay together. Choose a recipient from their chat avatar and use new reactions, including thumbs up and down. Supported browsers can detach the window and keep chat and reactions visible on top. Fullscreen retains the chat-overlay toggle. - **Clearer sharing and playback controls:** pause and stop stay together, with separate picture, sound, connection and remote-control settings. Pointer movement reveals the playback bar during viewing; remote control uses a small drawer at the picture edge. Clicking the picture no longer pauses it accidentally. Sound controls reflect missing input and retain the Viewer's volume when it returns. #### Fixes - **Connection and playback fixes:** correct media clocks, round-trip-time updates and duplicate feedback accounting on affected forwarding paths, improving recovery from the quality stalls caused by those errors. Rejoining a room restores direct-connection attempts while SFU playback continues. Incorporate upstream handshake-recovery fixes. - **Interface fixes:** returning a detached tool during fullscreen no longer leaves an inaccessible panel over the picture. Fix compact-layout shifts and overflowing menus. Holding a virtual key no longer selects its label; release, cancellation and focus loss clear held keys. Pages and the source picker use shared neutral surfaces. Refine App icons and favicons while retaining the familiar television outline. - **Compatibility fixes:** show new reactions only when the site supports them, preventing disconnects on older sites. Support popovers on older browsers and remove the macOS `.app` launcher's dependency on files outside the bundle. Finder, permissions and remote input still need physical macOS validation. #### Updating The existing 2.x compatibility boundary is retained. Remote control needs an updated Host App and site; update both App and self-hosted Server for the complete forwarding fix.
Scoped Go Dependency Repairs
The root go.mod replaces these two modules with local source. They retain
their original module paths and Apache-2.0 licenses. The checked-in source,
upstream tests and focused regressions are built and tested by
npm run check:go.
| Module | Source baseline | Local changes |
|---|---|---|
go-nat |
netbirdio/go-nat at 6b2c8c5c74e8 | NAT-PMP honors contexts, assigned ports and deletion; optional PCPv6 finishes inside Piik's mapping budget so it cannot withhold successful IPv4; regressions retain both gateway paths |
go-nat-pmp |
jackpal/go-nat-pmp v1.0.2 | Context-aware request methods, deadline/cancellation through UDP I/O, adapted recorder/test caller, and a module manifest |
Upstream source and tests are retained, excluding examples and CI configuration. Modified upstream files carry a notice; formatting follows the project Go toolchain. The package notice collector reads the replacement modules' license files directly, so App archives retain their attribution.
These repairs preserve the existing gateway selector and PCPv6 composition. The NAT research owner describes the runtime limits. Do not add a second gateway client in Piik.
When maintained upstream revisions cover these fixes and the same regressions
pass, replace both local module directives with version pins, remove their source
directories and the extra dependency test patterns in scripts/check-go.mjs.
Until then, review updates against the named baselines; do not edit Go's shared
module cache or apply build-time patches.
LiveKit Send-Side Bandwidth Estimation
livekit/sendsidebwe retains only the eight source files from
LiveKit v1.13.6's package,
with its original LICENSE and NOTICE. It uses the existing pinned LiveKit
interfaces; the rest of LiveKit comes from the pinned Go dependency, including
the temporary allocator input described below. No build-time patch is applied.
Measurement corrections are marked in the modified files: probe finalization returns the current acknowledged capacity and rejects invalid/empty feedback; inconclusive probes use existing backoff from completion without growing the next probe or reporting measured congestion; probe timing begins with its first acknowledged packet, excluding pre-probe idle time; congestion statistics retain the packet that starts each new CTR group, including its received/lost accounting; overlapping TWCC feedback changes each packet's state once, retaining late ACKs without duplicating counts or moving the receive-time baseline. Only new observations advance congestion state. Group loss membership covers the packet tracker's history. Delay measurement advances in send order with a receive-time watermark, while older ACKs repair counts without rewinding it. Reset reseeds that delay baseline without discarding delivery history. Piik's shared forwarding package uses this copy for both individual transports and publications. Its regression checks use real TWCC feedback and retain the no-feedback and idle-before-probe controls. The media research owner records the runtime evidence and remaining limits.
The package notice collector still includes LiveKit's upstream license and notice through the other compiled LiveKit packages. When a maintained upstream version covers these corrections and the same regressions pass, remove this directory and restore the upstream imports. Review dependency bumps against the named baseline; do not evolve a separate congestion-control algorithm here.
The LiveKit dependency includes upstream #5013, which restores probe delivery after cached RTX packets expire. Its earlier padding correction also replaces Piik's former padding writer. Those repairs use the upstream dependency; no additional LiveKit package is copied here. The local send-side measurement corrections above remain necessary.
The dependency also includes upstream #5018 and #5019: dummy-start timestamp offsets stay within the RTP clock's wrap domain and are cleared on receiver restart. These correct layer/source-switch continuity in the existing DownTrack; Piik adds no timestamp repair alongside it.
The retained detector also includes upstream #4935 and its regression from v1.13.9, adapted to standard Go assertions. Reserved TWCC symbols carry no receive delta: skip their measurement rather than consuming the next packet's delta or indexing past the feedback array.
Local Encoder Probe Demand
Until upstream #5016 is available,
the root module replaces LiveKit with the immutable
c7f56b38 revision,
based on upstream cde3991916cf. Its only changes are an optional local encoder
demand input to StreamAllocator and regression tests. Native publication uses
that input; ordinary forwarding leaves it unset. The existing allocator still
owns probe timing, congestion response and allocation; encoder demand does not
change track-deficiency state. No allocator source is copied into Piik and no
build-time patch is applied.
The explicit TestPublicationConstrainedRecovery gate and the upstream tests
cover recovery and withdrawal without replacing measured source rates or
capacity. Once an upstream revision supports this input and passes those
checks, remove the replacement directive and its replacement checksums. The
separate local send-side estimator corrections retain their own removal gate.
Pion Repaired-Packet Identity
The shared RTP receive adapter uses the negotiated
primary codec for packets Pion identifies as repaired. In Pion v4.2.23,
receiveForRid
initializes the codec before the first primary read initializes PayloadType;
an earlier RTX packet can therefore be queued with payload type zero.
Ordinary packet validation remains unchanged. A real simulcast/NACK regression
fences that ordering without sleeps and fails when the correction is removed.
Remove the adapter when a maintained upstream version passes that same control
without it; no Pion source fork or second retransmission handler is retained.