## Problem and outcome Connection recovery and packet repair could leave stale pictures, missing sound or unreliable remote input. This maintenance release repairs media/route ownership, H.264 negotiation, voice forwarding and Windows input recovery, and makes shared mobile controls and popovers easier to use. ## Release notes **Piik, now in your pocket.** Piik App supports Android screen sharing, with touch controls for a friend's computer. **手机,也能开播。** Piik App 支持 Android 屏幕分享,也能用手机控制朋友的电脑。 ### English Piik v2.5.1 improves sharing recovery, voice playback and remote control, with clearer mobile controls. It keeps the existing 2.x compatibility baseline. - Improve H.264 selection and picture recovery after reconnecting, changing sources or recovering lost packets; keep a working share when a replacement source fails. - Keep audio and room voice continuous, and prevent duplicate sound when switching playback windows. - Improve Windows input recovery and release remote-control permissions when their connection ends. - Keep mobile controls together and popovers usable after layout changes or in short viewports. - Open the appropriate Android update download, including the Gitee ZIP containing the APK. Self-hosted SFU servers refresh public addresses for new connections without a restart. - Add macOS source-thumbnail support. Update the App and self-hosted site together to receive all fixes. Browser settings and existing room data are retained. ### 中文 Piik v2.5.1 改善分享恢复、语音播放与远程控制的稳定性,让手机操作更顺手,沿用现有 2.x 兼容基线。 - 改善 H.264 编码选择,以及重连、切换分享源和丢包后的画面恢复;新分享源切换失败时保留正常分享。 - 保持声音与房间语音连续,避免切换播放窗口时出现双重声音。 - 改善 Windows 输入恢复,并在连接结束时释放远程控制授权。 - 手机控件保持成组,浮层在布局变化或可见高度较小时仍可操作。 - Android 更新打开对应下载入口,Gitee 提供内含 APK 的 ZIP;自部署 SFU 为新连接刷新公网地址,无需重启服务。 - 补齐 macOS 选源缩略图支持。 请一起更新 App 与自部署站点,以获得全部修复。浏览器设置与已有房间数据保留。 ## Validation - Full frontend typecheck, test and production-build acceptance; current Windows App/Server packaging, extracted-file checks and exact served JavaScript verified locally. - Existing Go, vulnerability, native media and controlled-network results retained at their tested revisions. The final production delta from the fully checked candidate is the shared short-viewport popover correction. - The diagnostic report supplied for #502 informed the Windows input fixes. #500 sharing is confirmed working; its missing source previews are implemented. Original-device follow-up remains separate from this release's verified local fixes. ## Compatibility and scope Preserves the published 2.x Browser/server, Native control, capture and SQLite contracts. No 3.0 or iOS implementation or external contributor patch is included. Related: #500, #502, #510, #512.
145 lines
8.2 KiB
Markdown
145 lines
8.2 KiB
Markdown
# 第一次用 Piik
|
||
|
||
[English](./getting-started.md) · 简体中文 · [回到 Piik](../../README.zh-CN.md)
|
||
|
||
Piik 支持一位房主分享屏幕,最多 20 位受邀观众观看。先选适合你的入口:
|
||
|
||
| 你想做什么 | 从这里开始 |
|
||
| --- | --- |
|
||
| 看朋友的画面 | [打开对方的邀请](#加入朋友的房间),不必安装。 |
|
||
| 分享给其他网络的朋友 | [Piik App → 公网邀请](#用-piik-app-分享),保持 App 运行。 |
|
||
| 免安装分享 | 在浏览器里[使用在线版](#使用在线版)。 |
|
||
| 使用你们自己的站点 | [打开已有站点](#使用已有站点分享),按需连接 App 采集。 |
|
||
|
||

|
||
|
||
## 加入朋友的房间
|
||
|
||
1. 用电脑或手机浏览器打开朋友发来的邀请链接。
|
||
2. 等待画面出现。如果浏览器没有自动播放,点击 **播放**。
|
||
3. 将鼠标移到画面上,或轻点画面,显示播放控制栏。
|
||
|
||
播放控制栏只改变你自己看到的画面和听到的声音。
|
||
全屏、画面显示与音量选项见[播放控制](./sharing.zh-CN.md#播放控制)。
|
||
|
||
只有四位房间号时,打开同一个 Piik 站点,选择 **加入房间**,按需输入站点口令或房间密码。
|
||
无法通过房间号加入,或旧链接失效时,请房主发送当前邀请。
|
||
|
||
各自用 App 创建的本地房间/公网邀请属于不同站点,不能在自己的 App 页面输入对方的房间号。
|
||
加入朋友时,直接打开对方的完整邀请链接即可,不必在自己的 App 中创建房间。
|
||
|
||
## 使用在线版
|
||
|
||
1. 在浏览器中打开 [demo.piik.tv](https://demo.piik.tv)。
|
||
2. 点击 **开始分享**,选择 **浏览器** 分享屏幕、窗口或标签页;也可在电脑或手机上选择
|
||
**摄像头**(需浏览器支持访问)。如需来源声音且选择器提供该选项,启用音频。
|
||
3. 确认预览后,点击 **复制邀请链接**,用另一台设备打开,或发送给朋友。
|
||
4. 分享结束后,点击 **停止分享**。
|
||
|
||
在线版由项目提供,画面仅通过设备间直连(P2P)传输。
|
||
在受限网络下,可能出现页面能打开、画面无法连接的情况。
|
||
|
||
## 用 Piik App 分享
|
||
|
||
1. 从 [GitHub Releases](https://github.com/TNTcraftHIM/Piik/releases) 或
|
||
[Gitee 镜像](https://gitee.com/TNTcraftHIM/Piik/releases)下载以 **`piik-app`** 开头、
|
||
对应平台的程序包。手机或平板安装 App;Gitee ZIP 需先解压,再安装其中的 APK。
|
||
桌面端完整解压并保留目录结构。
|
||
2. Windows 打开 `piik-app.exe`,macOS 打开 `Piik App.app`,Linux 运行 `./piik-app`。
|
||
手机或平板安装后打开 Piik。启动页会在系统浏览器里打开。
|
||
3. 邀请不在同一局域网的朋友时,选择 **公网邀请**,再点击 **进入 Piik**。
|
||
其他模式的用途见下方说明。
|
||
4. 点击 **开始分享**,按可用选项选择 **浏览器**、**摄像头**、**程序 / 窗口** 或 **屏幕**,
|
||
然后选定要分享的画面与声音。
|
||
5. 复制房间邀请发给朋友。分享期间保持 App 和分享标签页打开。
|
||
|
||

|
||

|
||
|
||
macOS 首次打开被拦截时,按 [Mac 打开说明](./troubleshooting.zh-CN.md#macos-提示已损坏或无法验证开发者)处理。
|
||
|
||
<details>
|
||
<summary>该下载哪个程序包?</summary>
|
||
|
||
| 文件名包含 | 适用平台 |
|
||
| --- | --- |
|
||
| `windows-amd64` | Windows x64 |
|
||
| `darwin-arm64` | Apple 芯片;原生采集需 macOS 13 及以上 |
|
||
| `darwin-amd64` | Intel Mac;原生采集需 macOS 13 及以上 |
|
||
| `linux-amd64` | Linux x64 |
|
||
| `linux-arm64` | Linux ARM64 |
|
||
| `android-universal` | Android 10 及以上;一个 APK 包含 ARM64 和 x64 |
|
||
|
||
Linux 原生采集还需要[系统组件](../../native/capture/linux/README.md)。
|
||
程序包与启动参数的细节见 [App 指南](../../cmd/piik-app/README.zh-CN.md)。
|
||
|
||
</details>
|
||
|
||
### 选择 App 模式
|
||
|
||

|
||

|
||
|
||
- **公网邀请:** 给异地朋友发一个临时网页链接。需要互联网连接,关闭 App 后链接失效。
|
||
- **本地房间:** 朋友在同一局域网或虚拟局域网,对方需要能连接到你的电脑。
|
||
多网卡时,可展开 **局域网邀请地址**,选择朋友所在的网络。
|
||
|
||
本地房间和公网邀请可展开 **站点口令** 设置可选的访问口令。
|
||
本地邀请使用 HTTPS;首次访问时,先与房主的 App 终端核对本地证书,再继续进入,
|
||
操作见[证书确认说明](./troubleshooting.zh-CN.md#本地-https-证书提示)。
|
||
|
||
<details>
|
||
<summary>回到启动页或更换模式</summary>
|
||
|
||
房间服务启动后,点击网页右上角已就绪的 **App**,可回到启动页管理授权或重新进入房间;
|
||
App 终端也保留 **App 启动页** 地址。更换本地房间/公网邀请模式时,关闭并重新打开 App 后选择。
|
||
这会结束原有房间,公网邀请地址也会重新生成。
|
||
|
||
</details>
|
||
|
||
### 通过已有站点使用 App
|
||
|
||
1. 保持 Piik App 运行,在浏览器打开 Piik 站点。如果站点要求口令,先输入口令;
|
||
项目提供的[在线版](https://demo.piik.tv)无需站点口令。App 启动页无需选择房间模式。
|
||
2. 点击站点顶部的 **App**。浏览器询问本地网络权限时,请允许访问。
|
||
找到 App 后,点击 **打开 App 页面**。
|
||
3. 在本机确认页核对站点网址,点击 **允许使用**。
|
||
4. 返回站点,点击 **开始分享**,选择 **程序 / 窗口** 或 **屏幕**,
|
||
选好来源后,将新房间的邀请链接发给朋友。
|
||
|
||
也可以在 **开始分享** 的选源窗口里点击 **连接 Piik App**,连接后列表会直接显示 App 来源。
|
||
连接失败时,App 按钮旁会提供 **重试** 和 **下载 App**;仍可继续使用浏览器分享和观看。
|
||
|
||
已授权站点与启动收藏可在[App 启动页管理](../../cmd/piik-app/README.zh-CN.md#已授权站点)。
|
||
画面连不上时,查看[网络排查指南](./network.zh-CN.md)。
|
||
|
||
### 版本升级
|
||
|
||
App 与站点需要使用同一大版本,**2.x 与 1.x 不能混用**。
|
||
替换 App 或更新已有站点时,按[升级步骤](../../cmd/piik-app/README.zh-CN.md#升级)操作。
|
||
|
||
## 使用已有站点分享
|
||
|
||
使用朋友或管理员提供的 HTTPS Piik 站点。自行搭建时,按[自部署指南](../operations/self-hosting.zh-CN.md)操作。
|
||
|
||
1. 打开 Piik 站点。如果站点设置了口令,先输入口令。
|
||
2. 点击 **开始分享**,选择 **浏览器** 后在浏览器弹窗里选择屏幕、窗口或标签页;
|
||
浏览器支持时,电脑和手机也可选择 **摄像头**。如需来源声音且选择器提供该选项,启用音频。
|
||
3. 确认预览画面后,点击 **复制邀请链接** 发给朋友。
|
||
4. 保持分享标签页打开。需要时使用 **暂停分享**、**切换来源** 或 **停止分享**。
|
||
|
||
浏览器屏幕采集需要 HTTPS 站点或 `localhost`。
|
||
弹窗里有哪些画面和声音可选,取决于浏览器与操作系统。
|
||
拿到邀请链接的人可以进入这个房间,请把它发给你想邀请的人。
|
||
|
||
想在同一站点使用 App 采集,可按[通过已有站点使用 App](#通过已有站点使用-app)的步骤操作。
|
||
站点负责房间与邀请,App 提供原生采集。
|
||
如果管理员已启用 SFU 转发,房主可在开始分享前关闭 **隐私模式**,允许使用这条兜底线路。
|
||
项目提供的在线版仅使用 P2P。
|
||
|
||
## 接下来可以做什么
|
||
|
||
- [分享与播放](./sharing.zh-CN.md):画面设置、摄像头与来源声音。
|
||
- [聊天、语音与远程控制](./room-tools.zh-CN.md):聊天互动,或让朋友接手操作。
|
||
- [问题排查](./troubleshooting.zh-CN.md):按遇到的现象寻找处理步骤。
|