Files
piik/docs/guide/getting-started.zh-CN.md
T
08a76209c2 feat(room): add remote co-play and refresh the room experience (#497)
## Problem and outcome

This phase adds consented remote co-play to normal App/Web rooms and integrates the accepted audio, playback, participant-state and multi-site improvements. It also rebuilds the bilingual README/documentation reading path, refreshes real-component illustrations, and publishes the selected website film.

The candidate preserves the established 2.x sharing/viewing contracts. Optional new behavior follows negotiated capabilities; Windows gamepads use an externally installed driver. The separate accompaniment experiment and unselected film studies are outside this phase.

## Release notes

**Play together. Your turn!**

Approved friends can now play together with shared keyboard and mouse controls or optional gamepads.

**远程同乐,轮到你啦!**

获准的朋友现在可以共用键鼠,或使用可选手柄,一起玩本地多人游戏。

### English

Piik 2.4 adds remote co-play, improves shared sound and room controls, and rewrites the bilingual getting-started and help guides around what you want to do.

#### Highlights

- Let approved friends control together. Each player's held keys and gamepad retire independently; everyone shares the Host's mouse pointer. On Windows x64, optional virtual gamepads use a Host-installed ViGEmBus driver. Piik does not bundle or install it.
- Control shared output volume from the Host's playback bar. The optional share microphone adds your voice to the picture, independently of room voice; stopping the share leaves room voice running. Room voice now defaults to 64 kbps and offers a Host bitrate control.
- See voice and remote-control participation directly on the couch. Connection details group picture and voice by receive/send direction. Playback actions, chat-overlay settings and dismissible operation feedback have clearer, consistent places.
- Approve several Piik sites in App and manage each separately, with one optional startup favorite.
- Follow rewritten English and Chinese README and documentation paths: watching, starting a share, room tools, remote control/co-play, and symptom-based help. Illustrated guides use current product components, theme-aware screenshots and shared diagrams. A dedicated network guide covers campus networks, media UDP, SFU sites and optional virtual LANs.
- The website has clearer App and co-play FAQs and the selected bilingual 64-second film, with shared playback controls and a held closing card.

#### Fixes

- Tolerate small macOS capture-crop rounding errors without accepting genuinely invalid geometry.
- Keep shared-audio and microphone volume changes independent, preserve commentary through source replacement, and retire each input at its owning lifecycle boundary.
- Improve narrow-player controls, touch-held volume menus, tooltip placement and feedback cleanup after reconnection.
- Repair the release recovery test on macOS and refresh the build and tunnel runtimes.

#### Updating and limits

Update the Host's App and the room site, then refresh open pages to use the new features. Established sharing and viewing remain compatible within 2.x; older peers retain the features they support. The wire versions and SQLite schema are unchanged. Restarting App or Server interrupts active sessions.

Before downgrading App, remove extra approved sites in the newer launcher so at most one remains. Use the [remote-control guide](https://piik.tv/docs/remote-control.html?lang=en) for the optional Windows driver. Linux gamepads remain experimental; macOS virtual gamepads are not currently available. Windows 10 window-sharing black screens ([#495](https://github.com/TNTcraftHIM/Piik/issues/495)) remain under investigation; use screen sharing if affected.

### 中文

Piik 2.4 新增多人远程同乐,改进分享声音与房间控制,并围绕实际任务重写双语上手教程和帮助文档。

#### 主要更新

- 允许获准的朋友同时控制。各人的按键持有和手柄独立释放,大家共用房主的鼠标指针。Windows x64 可使用房主自行安装的 ViGEmBus 驱动提供虚拟手柄;Piik 不捆绑或安装驱动。
- 房主可通过播控调整分享输出音量。可选的分享麦克风把说话声加入画面,与房间语音独立;停播后房间语音继续。房间语音默认提升至 64 kbps,并提供房主码率设置。
- 沙发人物直接呈现语音和远控参与状态;连接详情按画面/语音、接收/发送分组。播放操作、弹幕设置和可关闭的操作提示各有清楚、一致的位置。
- App 可授权多个 Piik 站点,逐个管理,并选择一个启动时打开的星标站点。
- 重写中英文 README 和文档中心:从观看、开始分享、房间工具、远控/同乐到按症状排障。图文教程使用当前正式组件、明暗主题截图与同源示意图;独立网络指南说明校园网、媒体 UDP、SFU 站点和可选虚拟局域网的用法。
- 官网改进 App 与多人同乐 FAQ,采用选定的双语 64 秒短片,复用产品播控并保留结尾品牌卡。

#### 修复

- 容忍 macOS 采集裁剪中的微小舍入误差,仍拒绝真正无效的画面边界。
- 分享总音量与麦克风音量分别更新;换源保留解说,各项输入按所属生命周期释放。
- 改进窄屏播控、触摸长按音量菜单、提示定位,以及重连后的提示清理。
- 修复 macOS 上发布恢复测试的可移植性,更新构建与公网隧道运行组件。

#### 更新与限制

将房主 App 和房间站点更新后,刷新已打开的页面,即可使用新功能。2.x 内保留已有分享与观看兼容性,旧端继续使用其支持的功能;协议版本和 SQLite schema 不变。重启 App 或 Server 会中断当前会话。

如需降级 App,先在新版启动页删除额外授权,最多保留一个站点。可选的 Windows 驱动安装方法见[远控指南](https://piik.tv/docs/zh/remote-control.html)。Linux 手柄仍属实验能力,macOS 当前暂不提供虚拟手柄。Windows 10 窗口分享黑屏而整屏正常的反馈([#495](https://github.com/TNTcraftHIM/Piik/issues/495))仍在调查,本版不声称已修复。

## Verification

- Integrated Web typecheck, 98 test files / 1,734 tests and production build passed. Later scoped UI repairs passed focused typecheck/tests and preview checks.
- Focused Go checks cover input grant/held-state ownership, delayed device retirement, native control/Host, config/launcher/loopback, voice negotiation and source-volume binding. Windows capture compilation/probe and the isolated Linux uinput kernel gate passed.
- Normal-page P2P (22 checks) and embedded-SFU (19 checks) gates passed. P2P explicitly exercised source commentary with room voice, independent shutdown, share retirement and the next share's default-off state; SFU also covers live voice bitrate and voice recovery.
- Documentation links (108 Markdown files), generated-diagram freshness, the complete bilingual/theme screenshot pipeline and website production build passed. Website/readers were checked at 320, 768 and 1440 px with both languages/themes.
- macOS crop logic retains geometric self-tests; this Windows environment did not repeat a macOS SDK/hardware run. Linux desktop/game recognition and macOS virtual-gamepad entitlement/runtime remain explicit limits.
- Windows native window-sharing acceptance passed: Host/Viewer decoding, live and paused quality changes, resize/minimize/restore, source replacement, stop and restart. Capturing the Host Chrome window also passed with Auto/H.264 and VP8, including decoded-frame and pixel checks. The Windows 10 case in #495 was not reproduced and remains separate.
- Current Go serializers passed the published v2.0.0/v2.3.0 TypeScript readers; existing native input opt-in checks passed. This checks payload compatibility, not an end-to-end run of old published clients.

## Impact

Compatible 2.x feature release; Browser/server v24, Native control v10, capture v7 and SQLite schema 2 remain unchanged. New co-play, presence, voice settings and native volume behavior are capability-negotiated. Multi-site App settings retain the older single-site reader path; arbitrary binary downgrade is not promised. No independent room/router, new NAT policy, driver installer or separate accompaniment channel is introduced.

## Related work

Includes the macOS crop correction reported in #492 and the macOS deployment-test portability contribution from #496. Supersedes the incomplete phase PR #494. #495 remains open.

## Attribution

Co-authored-by: Yuqing Huang <670081066@qq.com>
Co-authored-by: luol75569-collab <297886760+luol75569-collab@users.noreply.github.com>
2026-10-23 16:29:31 -04:00

7.8 KiB
Raw Blame History

第一次用 Piik

English · 简体中文 · 回到 Piik

Piik 支持一位房主分享屏幕,最多 20 位受邀观众观看。先选适合你的入口:

你想做什么 从这里开始
看朋友的画面 打开对方的邀请,不必安装。
分享给其他网络的朋友 Piik App → 公网邀请,保持 App 运行。
免安装分享 在浏览器里使用在线版。
使用你们自己的站点 打开已有站点,按需连接 App 采集。

三个步骤:选择窗口、复制房间邀请、和朋友一起坐上沙发。

加入朋友的房间

  1. 用电脑或手机浏览器打开朋友发来的邀请链接。
  2. 等待画面出现。如果浏览器没有自动播放,点击 播放。
  3. 将鼠标移到画面上,或轻点画面,显示播放控制栏。

播放控制栏只改变你自己看到的画面和听到的声音。 全屏、画面显示与音量选项见播放控制。

只有四位房间号时,打开同一个 Piik 站点,选择 加入房间,按需输入站点口令或房间密码。 无法通过房间号加入,或旧链接失效时,请房主发送当前邀请。

使用在线版

  1. 在浏览器中打开 demo.piik.tv。
  2. 点击 开始分享,选择 浏览器 分享屏幕、窗口或标签页;也可在电脑或手机上选择 摄像头(需浏览器支持访问)。如需来源声音且选择器提供该选项,启用音频。
  3. 确认预览后,点击 复制邀请链接,用另一台设备打开,或发送给朋友。
  4. 分享结束后,点击 停止分享。

在线版由项目提供,画面仅通过设备间直连(P2P)传输。 在受限网络下,可能出现页面能打开、画面无法连接的情况。

用 Piik App 分享

  1. 从 GitHub Releases 或 Gitee 镜像下载以 piik-app 开头、 对应平台的压缩包,完整解压并保留目录结构。
  2. Windows 打开 piik-app.exe,macOS 打开 Piik App.app,Linux 运行 ./piik-app。 启动页会在系统浏览器里打开。
  3. 邀请不在同一局域网的朋友时,选择 公网邀请,再点击 进入 Piik。 其他模式的用途见下方说明。
  4. 点击 开始分享,按可用选项选择 浏览器、摄像头、程序 / 窗口 或 屏幕, 然后选定要分享的画面与声音。
  5. 复制房间邀请发给朋友。分享期间保持 App 和分享标签页打开。

App 选源界面:浏览器、摄像头、程序 / 窗口和屏幕四种来源,下方为窗口预览与来源声音开关。 App 选源界面:浏览器、摄像头、程序 / 窗口和屏幕四种来源,下方为窗口预览与来源声音开关。

macOS 首次打开被拦截时,按 Mac 打开说明处理。

该下载哪个程序包?
文件名包含 适用平台
windows-amd64 Windows x64
darwin-arm64 Apple 芯片;原生采集需 macOS 13 及以上
darwin-amd64 Intel Mac;原生采集需 macOS 13 及以上
linux-amd64 Linux x64
linux-arm64 Linux ARM64

Linux 原生采集还需要系统组件。 程序包与启动参数的细节见 App 指南。

选择 App 模式

App 模式选择:已选中公网邀请,也可以选择本地房间。 App 模式选择:已选中公网邀请,也可以选择本地房间。

  • 公网邀请: 给异地朋友发一个临时网页链接。需要互联网连接,关闭 App 后链接失效。
  • 本地房间: 朋友在同一局域网或虚拟局域网,对方需要能连接到你的电脑。 多网卡时,可展开 局域网邀请地址,选择朋友所在的网络。

本地房间和公网邀请可展开 站点口令 设置可选的访问口令。 本地邀请使用 HTTPS;首次访问时,先与房主的 App 终端核对本地证书,再继续进入, 操作见证书确认说明。

回到启动页或更换模式

房间服务启动后,点击网页右上角已就绪的 App,可回到启动页管理授权或重新进入房间; App 终端也保留 App 启动页 地址。更换本地房间/公网邀请模式时,关闭并重新打开 App 后选择。 这会结束原有房间,公网邀请地址也会重新生成。

通过已有站点使用 App

  1. 保持 Piik App 运行,在浏览器打开 Piik 站点。如果站点要求口令,先输入口令; 项目提供的在线版无需站点口令。App 启动页无需选择房间模式。
  2. 点击站点顶部的 App。浏览器询问本地网络权限时,请允许访问。 找到 App 后,点击 打开 App 页面。
  3. 在本机确认页核对站点网址,点击 允许使用。
  4. 返回站点,点击 开始分享,选择 程序 / 窗口 或 屏幕, 选好来源后,将新房间的邀请链接发给朋友。

也可以在 开始分享 的选源窗口里点击 连接 Piik App,连接后列表会直接显示 App 来源。 连接失败时,App 按钮旁会提供 重试 和 下载 App;仍可继续使用浏览器分享和观看。

已授权站点与启动收藏可在App 启动页管理。 画面连不上时,查看网络排查指南。

版本升级

App 与站点需要使用同一大版本,2.x 与 1.x 不能混用。 替换 App 或更新已有站点时,按升级步骤操作。

使用已有站点分享

使用朋友或管理员提供的 HTTPS Piik 站点。自行搭建时,按自部署指南操作。

  1. 打开 Piik 站点。如果站点设置了口令,先输入口令。
  2. 点击 开始分享,选择 浏览器 后在浏览器弹窗里选择屏幕、窗口或标签页; 浏览器支持时,电脑和手机也可选择 摄像头。如需来源声音且选择器提供该选项,启用音频。
  3. 确认预览画面后,点击 复制邀请链接 发给朋友。
  4. 保持分享标签页打开。需要时使用 暂停分享、切换来源 或 停止分享。

浏览器屏幕采集需要 HTTPS 站点或 localhost。 弹窗里有哪些画面和声音可选,取决于浏览器与操作系统。 拿到邀请链接的人可以进入这个房间,请把它发给你想邀请的人。

想在同一站点使用 App 采集,可按通过已有站点使用 App的步骤操作。 站点负责房间与邀请,App 提供原生采集。 如果管理员已启用 SFU 转发,房主可在开始分享前关闭 隐私模式,允许使用这条兜底线路。 项目提供的在线版仅使用 P2P。

接下来可以做什么