Compare commits
No files matched your search
@@ -5,4 +5,3 @@ project_doc_max_bytes = 32768
|
||||
|
||||
[agents]
|
||||
enabled = true
|
||||
max_concurrent_threads_per_session = 3
|
||||
@@ -20,4 +20,8 @@ about: Report a reproducible problem / 反馈可复现的问题
|
||||
|
||||
## Optional evidence / 可选证据
|
||||
|
||||
<!-- Screenshots or a local Debug export may help. Review artifacts before attaching; remove credentials and private content. 可附截图或本地 Debug 导出;分享前移除凭据与隐私内容。 -->
|
||||
For App capture or remote-control failures, enable [App diagnostics](https://github.com/TNTcraftHIM/Piik/blob/main/cmd/piik-app/README.md#diagnostics) before reproducing and attach the exported ZIP.
|
||||
|
||||
App 选源或远控异常,请先开启 [App 诊断](https://github.com/TNTcraftHIM/Piik/blob/main/cmd/piik-app/README.zh-CN.md#诊断),复现后附上导出的 ZIP。
|
||||
|
||||
<!-- Screenshots may help. Review artifacts before attaching; remove credentials and private content. 可附截图;分享前移除凭据与隐私内容。 -->
|
||||
@@ -1,6 +1,8 @@
|
||||
name: AtomGit mirror
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '17 */3 * * *'
|
||||
workflow_run:
|
||||
workflows: [CI]
|
||||
types: [completed]
|
||||
@@ -8,8 +10,8 @@ on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
run_id:
|
||||
description: Original CI run that published the current GitHub release
|
||||
required: true
|
||||
description: Original CI run (optional; otherwise find the current published source)
|
||||
required: false
|
||||
type: string
|
||||
|
||||
permissions:
|
||||
@@ -25,10 +27,9 @@ jobs:
|
||||
mirror:
|
||||
if: >-
|
||||
github.repository == 'TNTcraftHIM/Piik' && github.ref == 'refs/heads/main' &&
|
||||
(github.event_name == 'workflow_dispatch' ||
|
||||
(github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' ||
|
||||
(github.event.workflow_run.event == 'push' &&
|
||||
github.event.workflow_run.head_branch == 'main' &&
|
||||
github.event.workflow_run.conclusion == 'success'))
|
||||
github.event.workflow_run.head_branch == 'main'))
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
@@ -36,17 +37,31 @@ jobs:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
persist-credentials: false
|
||||
sparse-checkout-cone-mode: false
|
||||
sparse-checkout: |
|
||||
/scripts/
|
||||
/package.json
|
||||
/package-lock.json
|
||||
/.node-version
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: .node-version
|
||||
cache: npm
|
||||
- name: Prepare mirror before downloading original artifacts
|
||||
id: readiness
|
||||
run: node scripts/release-mirror-prepare.mjs
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
ATOMGIT_TOKEN: ${{ secrets.ATOMGIT_TOKEN }}
|
||||
- run: npm ci --ignore-scripts
|
||||
if: steps.readiness.outputs.status == 'ready'
|
||||
- name: Resolve the published source
|
||||
id: source
|
||||
if: steps.readiness.outputs.status == 'ready'
|
||||
run: node scripts/release-mirror-source.mjs "$PIIK_SOURCE_RUN_ID"
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
PIIK_SOURCE_RUN_ID: ${{ inputs.run_id || github.event.workflow_run.id }}
|
||||
PIIK_SOURCE_RUN_ID: ${{ inputs.run_id }}
|
||||
- name: Download original Server artifacts
|
||||
if: steps.source.outputs.mirror == 'true'
|
||||
uses: actions/download-artifact@v8
|
||||
@@ -78,6 +93,6 @@ jobs:
|
||||
- name: Explain recovery
|
||||
if: failure() && steps.source.outputs.mirror == 'true'
|
||||
run: |
|
||||
printf 'Mirror failed; GitHub publication and Website are independent. Retry this workflow with original CI run %s. If artifacts expired, recover the retained original build output; do not rebuild this version. See docs/operations/github.md.\n' "$PIIK_SOURCE_RUN_ID" >> "$GITHUB_STEP_SUMMARY"
|
||||
printf 'Release mirror remains incomplete. Resume from original CI run %s; do not wait for source synchronization. If artifacts expired, recover retained original build output without rebuilding this version. See docs/operations/github.md.\n' "$PIIK_SOURCE_RUN_ID" >> "$GITHUB_STEP_SUMMARY"
|
||||
env:
|
||||
PIIK_SOURCE_RUN_ID: ${{ steps.source.outputs.run_id }}
|
||||
@@ -87,6 +87,8 @@ jobs:
|
||||
PIIK_BASE_SHA: ${{ github.event.pull_request.base.sha || github.event.before }}
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
- name: Check npm dependency advisories
|
||||
run: npm audit --audit-level=high
|
||||
- name: Determine release identity
|
||||
id: release
|
||||
env:
|
||||
@@ -112,10 +114,10 @@ jobs:
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache-dependency-path: go.sum
|
||||
- name: Check Go core
|
||||
run: npm run check:go-core
|
||||
- name: Check reachable Go vulnerabilities
|
||||
run: npm run check:go-vuln
|
||||
- name: Check Go core
|
||||
run: npm run check:go-core
|
||||
- name: Check concurrent resource ownership with the race detector
|
||||
run: npm run check:go-race
|
||||
- name: Type-check and test
|
||||
@@ -339,7 +341,7 @@ jobs:
|
||||
if: matrix.target == 'android-universal'
|
||||
uses: gradle/actions/setup-gradle@v6
|
||||
with:
|
||||
gradle-version: '8.11.1'
|
||||
gradle-version: '8.14.8'
|
||||
cache-provider: basic
|
||||
- name: Install pinned Android build tools
|
||||
if: matrix.target == 'android-universal'
|
||||
|
||||
@@ -1 +1 @@
|
||||
24.22.1
|
||||
24.22.3
|
||||
@@ -72,7 +72,7 @@ one complete, reviewed change; a contribution merge does not authorize publicati
|
||||
|
||||
1. Create one short-lived branch/worktree from exact canonical `main`, following the [branch naming convention](#commit-pr-and-branch-names).
|
||||
2. Update only the single durable owner for changed semantics and any materially changed current snapshot. If semantics remain disputed, record a hold and stop dependent work.
|
||||
3. Implement and run repository hygiene, `npm run check`, the relevant browser/network gates, and review in proportion to the whole acceptance boundary.
|
||||
3. Before release approval, review official security and patch releases for direct runtime/build dependencies and whether upstream now covers retained patches. Update for concrete fixes and verify the affected consumers; a newer version alone is not a release blocker. Run repository hygiene, dependency advisory checks, `npm run check`, and the relevant browser/network gates in proportion to the whole acceptance boundary. CI checks advisories before the full Go build and package matrix.
|
||||
4. Keep accepted truth checkpoints and dependent candidates on branches until the phase is complete. Rebase or rebuild a retained candidate from exact `main` only when starting a new phase, preserving main's owning truth on conflicts and transplanting only approved scoped code, tests, and new facts.
|
||||
5. Open one pull request for the complete phase, resolve required review/checks, meet the [release approval boundary](./docs/standards/versioning.md#automatic-publication) before a publishing merge, squash-merge it once, deploy that merged revision when authorized, perform scoped postflight, then audit references and reparse safety before cleanup.
|
||||
|
||||
@@ -108,6 +108,11 @@ index; do not substitute a move for the rejected deletion.
|
||||
The [engineering reference](./docs/standards/engineering.md) owns module and
|
||||
interface discipline, including the post-change ablation pass.
|
||||
|
||||
External citations in repository files must use publicly published, verifiable
|
||||
sources, such as documentation, open-source repositories, articles and websites.
|
||||
Interoperability guides and compatibility notes may name the relevant tools;
|
||||
retain required attribution and licenses.
|
||||
|
||||
Follow the [naming convention](./docs/standards/naming.md) for product copy,
|
||||
commands, packages and code ownership. Keep display names separate from stable
|
||||
protocol identifiers; use normal language-specific identifier conventions.
|
||||
@@ -160,12 +165,21 @@ Every retained test must be collected by a documented verification entry point.
|
||||
Confirm runner inclusion when adding or moving a test; a file's presence alone
|
||||
does not establish coverage.
|
||||
|
||||
Use local incremental builds and scoped checks during iteration. Batch GitHub
|
||||
Actions at review and acceptance boundaries; reuse passing results for unchanged
|
||||
code instead of repeatedly running the full platform matrix for one candidate.
|
||||
|
||||
- `npm run check` owns deterministic Web type-check, unit, and build acceptance.
|
||||
- `npm audit --audit-level=high` checks the locked Web/build dependencies for known high or critical advisories. It complements upstream release review; a clean database scan does not establish that no unpublished or newly disclosed fix exists.
|
||||
- `npm run check:go` owns Go formatting, unit tests, vet, Windows/Linux
|
||||
builds, Darwin builds on macOS, and the current platform's capture compile/probe.
|
||||
The server core is Go, so its acceptance runs here. It builds the Web UI first when
|
||||
that output is missing, because both binaries embed it. CI invokes these same
|
||||
package commands rather than rebuilding their steps in YAML.
|
||||
- `npm run check:go-core` runs the Go formatting, tests, vet and build stages
|
||||
without platform capture/probing. Windows desktop input and global hotkey
|
||||
acceptance are opt-in: set `PIIK_INPUT_GATE=1` when running
|
||||
`go test ./internal/app/remoteinput` in an isolated desktop session.
|
||||
- `npm run check:go-race` checks port mapping, media forwarding, media-edge and native-control
|
||||
ownership, loopback delivery, service storage shutdown and scoped NAT dependencies with Go's race detector. It
|
||||
requires a supported cgo toolchain; CI runs it on Linux.
|
||||
@@ -251,6 +265,14 @@ Do not add a changelog file or release-note archive.
|
||||
Standalone website, documentation and maintenance phases do not need product
|
||||
release notes; their public description stays in the PR.
|
||||
|
||||
For internal candidate review, name the previous release and the exact revisions
|
||||
of the packages and guides being tried. Group changes by the task a person can
|
||||
try. Give each distinct user-visible change an action, its expected result and
|
||||
the evidence available at that entry. A screenshot can show a new control. A
|
||||
short recording can show its motion. For a backend fix, give the triggering
|
||||
condition and observed outcome, including the platform or simulation used.
|
||||
Mark field checks that remain open. Keep this checklist with the candidate.
|
||||
|
||||
Durable semantic or current-snapshot changes must update their single owner in the same integration boundary. Ordinary implementation and bug fixes may be complete with code plus focused evidence.
|
||||
|
||||
## Local Hooks
|
||||
|
||||
@@ -50,22 +50,14 @@ on your own server.
|
||||
|
||||
## Get started
|
||||
|
||||
**To watch:** open the invitation your friend sends you. Select **Play** if the
|
||||
picture does not start automatically.
|
||||
**Got an invitation?** Open the full link in a browser on your computer or phone. If the picture does not start automatically, select **Play**.
|
||||
|
||||
**To share:** download **Piik App** to get started. To share without installing,
|
||||
you can also create a room in the online version.
|
||||
|
||||
| Start here | What you need to do |
|
||||
| --- | --- |
|
||||
| [Use Piik online](https://demo.piik.tv) | Share from a desktop browser, or choose Camera on a phone with browser camera support. |
|
||||
| [Download Piik App](https://piik.tv/#download) | Extract the desktop package or install the mobile app, open Piik, choose **Public invite**, then **Open Piik**. |
|
||||
1. **Choose how to share.** On a computer, open [Piik online](https://demo.piik.tv) to share a screen, window or browser tab. A phone browser with camera access can share its camera. To share with Piik App, [download the App](https://piik.tv/#download), then extract and open it on desktop or install and open it on mobile. To invite friends on another network, choose **Public invite**, then **Open Piik**.
|
||||
2. Select **Start sharing** and choose what your friend will see. If you want to share sound, enable audio when the source picker offers it.
|
||||
3. Once you see the preview, select **Copy invite link** and send the full link to your friend. Keep the sharing tab open. If you use the App, keep it running too.
|
||||
|
||||
<p align="center"><img src="./docs/assets/quickstart.svg" width="640" alt="Choose a screen, send an invitation, watch together."></p>
|
||||
|
||||
1. Select **Start sharing**, then choose the picture and audio to share.
|
||||
2. Select **Copy invite link** and send it to your friends. Keep the sharing tab open.
|
||||
|
||||
Open **Interact → Voice** to talk together, with or without picture sharing.
|
||||
The Host opens voice; everyone joins to listen and chooses when to turn on their microphone.
|
||||
|
||||
|
||||
@@ -48,20 +48,14 @@ Piik 是一个免费开源的私密屏幕共享工具,适合游戏直播、一
|
||||
|
||||
## 开始使用
|
||||
|
||||
**观看分享:** 打开朋友发来的邀请链接。画面没有自动播放时,点击**播放**即可。
|
||||
**收到邀请?** 在电脑或手机浏览器打开朋友发来的完整链接即可观看。画面没有自动播放时,点 **播放**。
|
||||
|
||||
**分享画面:** 推荐下载 **Piik App**。想免安装,也可以打开在线版直接创建房间。
|
||||
|
||||
| 从这里开始 | 需要做什么 |
|
||||
| --- | --- |
|
||||
| [使用在线版](https://demo.piik.tv) | 用电脑浏览器分享画面;手机浏览器支持摄像头访问时,也可选择摄像头分享。 |
|
||||
| [下载 Piik App](https://piik.tv/?lang=zh-CN#download) | 电脑上解压程序包,手机或平板安装 App。打开 Piik,选择**公网邀请**,点击**进入 Piik**。 |
|
||||
1. **选择分享方式。** 在电脑上分享屏幕、窗口或浏览器标签页,可以直接打开[在线版](https://demo.piik.tv)。手机浏览器支持摄像头时,也能分享摄像头画面。要用 Piik App 分享,请[下载 App](https://piik.tv/?lang=zh-CN#download),电脑上解压后打开,手机上安装后打开。邀请异地朋友时,选 **公网邀请**,再点 **进入 Piik**。
|
||||
2. 点 **开始分享**,选要给朋友看的画面。如果选源窗口提供声音选项,需要分享声音时将它打开。
|
||||
3. 看到预览后,点 **复制邀请链接**,把完整链接发给朋友。分享期间保持这个标签页打开;使用 App 时也要保持 App 运行。
|
||||
|
||||
<p align="center"><img src="./docs/assets/quickstart.svg" width="640" alt="选择画面,发送邀请,一起观看。"></p>
|
||||
|
||||
1. 点击**开始分享**,选择要分享的画面和声音。
|
||||
2. 点击**复制邀请链接**,发给朋友。分享期间保持标签页打开。
|
||||
|
||||
打开 **互动 → 语音** 即可一起聊天,开播前后都能使用。
|
||||
房主开启语音后,大家自行加入收听,想说话时再打开自己的麦克风。
|
||||
|
||||
|
||||
@@ -48,16 +48,18 @@ App selects a sole active address or sole private IPv4 automatically. When
|
||||
several are available, choose **Local invitation address** in the launcher.
|
||||
For a [virtual LAN](../../docs/guide/network.md#optional-a-virtual-lan), choose its virtual IPv4.
|
||||
|
||||
Friends use the HTTPS invitation on that address; the Host uses the local
|
||||
loopback page. On first access, friends must [confirm the certificate](../../docs/guide/troubleshooting.md#local-https-certificate-warning)
|
||||
against the App terminal. Repeat confirmation after App restarts.
|
||||
Use the local loopback page on the computer running App. Send friends the HTTPS
|
||||
invitation for the selected LAN address. On their first visit, compare the
|
||||
fingerprint shown on their device with the one in your App terminal before they
|
||||
[confirm the certificate](../../docs/guide/troubleshooting.md#local-https-certificate-warning).
|
||||
Repeat confirmation after App restarts.
|
||||
|
||||
### Public Invite
|
||||
|
||||
Choose **Public invite**, create a room in the opened browser, and send its invitation.
|
||||
The packaged Cloudflare Tunnel helper supplies a temporary `trycloudflare.com`
|
||||
HTTPS address. It expires when App closes; a later run gets a new address.
|
||||
For a permanent address, use a configured Piik site.
|
||||
For a fixed address, use an existing Piik site or follow the [frp guide for your App version](../../docs/guide/frp.md#desktop-app).
|
||||
|
||||
Local and Public invite use P2P picture and sound, outside the web tunnel.
|
||||
They need a usable UDP media path and provide no server media forwarding (SFU)
|
||||
|
||||
@@ -41,14 +41,15 @@ App 会记住上次确认的房间模式。首次使用默认选中 **公网邀
|
||||
App 自动选择唯一的活动地址或私有 IPv4;有多个地址时,在启动页的 **局域网邀请地址** 中选择。
|
||||
使用[虚拟局域网](../../docs/guide/network.zh-CN.md#可选虚拟局域网)时,选择对应的虚拟 IPv4。
|
||||
|
||||
朋友使用该地址下的 HTTPS 邀请,房主使用本机页面。朋友首次访问时,需与 App 终端核对
|
||||
[证书指纹](../../docs/guide/troubleshooting.zh-CN.md#本地-https-证书提示);App 重启后重新确认。
|
||||
在运行 App 的电脑上打开本机页面,把所选局域网地址对应的 HTTPS 邀请发给朋友。
|
||||
朋友首次打开邀请时,请一起核对朋友设备上显示的证书指纹和你电脑上 App 终端里的指纹,
|
||||
一致后再[确认证书](../../docs/guide/troubleshooting.zh-CN.md#本地-https-证书提示)。App 重启后需重新确认。
|
||||
|
||||
### 公网邀请
|
||||
|
||||
选择 **公网邀请**,在打开的浏览器中创建房间,再发送邀请链接。
|
||||
程序包中的 Cloudflare Tunnel 提供临时 `trycloudflare.com` HTTPS 地址,App 关闭后失效,
|
||||
下次启动会生成新地址。需要固定地址时,请使用配置好的 Piik 站点。
|
||||
下次启动会生成新地址。需要固定地址时,可以使用已有 Piik 站点,也可以按 [frp 指南](../../docs/guide/frp.zh-CN.md#桌面-app)查看当前 App 版本的设置方式。
|
||||
|
||||
本地房间和公网邀请的画面、声音通过 P2P 传输,不经过网页隧道;需要可用的 UDP 媒体路径,
|
||||
没有服务器媒体转发(SFU)或 TURN 中继。隧道或媒体连接失败时,查看
|
||||
|
||||
@@ -10,10 +10,9 @@ import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"os"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
|
||||
"github.com/TNTcraftHIM/Piik/internal/app"
|
||||
"github.com/TNTcraftHIM/Piik/internal/processsignal"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@@ -37,6 +36,7 @@ func run(args []string) int {
|
||||
flags.BoolVar(&options.Debug, "debug", false, "save opt-in App diagnostics to rotated files")
|
||||
flags.StringVar(&options.LogDir, "log-dir", "", "diagnostic directory (overrides PIIK_LOG_DIR)")
|
||||
flags.StringVar(&options.CaptureProcess, "capture-process", "", "path to the platform native capture process")
|
||||
flags.StringVar(&options.PublicOrigin, "public-origin", "", "fixed HTTPS origin for an externally forwarded --link")
|
||||
flags.StringVar(&options.TunnelProcess, "tunnel-process", "", "path to the packaged public tunnel process")
|
||||
flags.StringVar(&options.ConfigPath, "config", "", "path to the App configuration file")
|
||||
flags.StringVar(&options.LANAddress, "lan-address", "", "LAN IPv4 address used in Local invitations")
|
||||
@@ -49,7 +49,7 @@ func run(args []string) int {
|
||||
}
|
||||
options.DisableBrowser = os.Getenv("PIIK_CLIENT_GATE_NO_BROWSER") == "true"
|
||||
|
||||
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
|
||||
ctx, stop := processsignal.NotifyContext(context.Background())
|
||||
defer stop()
|
||||
if options.DisableBrowser {
|
||||
go func() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Command piik-server is the Hosted Piik entry point: it loads the
|
||||
// environment, serves the embedded Browser UI together with the signaling and
|
||||
// room API, and stops on SIGINT or SIGTERM.
|
||||
// room API, and performs ordered process shutdown.
|
||||
//
|
||||
// Two maintenance modes exit without serving: --check-config validates the
|
||||
// environment (the release wrapper runs it as the service user before cutover)
|
||||
@@ -17,13 +17,12 @@ import (
|
||||
"log"
|
||||
"log/slog"
|
||||
"os"
|
||||
"os/signal"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/TNTcraftHIM/Piik/internal/diagnostics"
|
||||
"github.com/TNTcraftHIM/Piik/internal/processsignal"
|
||||
"github.com/TNTcraftHIM/Piik/internal/server/app"
|
||||
"github.com/TNTcraftHIM/Piik/internal/server/config"
|
||||
"github.com/TNTcraftHIM/Piik/internal/server/webassets"
|
||||
@@ -143,7 +142,7 @@ func serve(debug bool) (returnedErr error) {
|
||||
logger.Info("HTTPS certificate", "sha256", tlsconfig.Fingerprint(configuration.TLS))
|
||||
}
|
||||
|
||||
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
|
||||
ctx, stop := processsignal.NotifyContext(context.Background())
|
||||
// One bounded background lookup never delays serving. Join it before closing
|
||||
// diagnostic outputs so shutdown cannot leave a late writer behind.
|
||||
releaseChecked := make(chan struct{})
|
||||
|
||||
@@ -19,7 +19,7 @@ import (
|
||||
|
||||
// The Browser notice and operator checker read the same published release.
|
||||
const defaultReleaseAPIURL = "https://api.github.com/repos/TNTcraftHIM/Piik/releases/latest"
|
||||
const mirrorReleaseAPIURL = "https://gitee.com/api/v5/repos/TNTcraftHIM/Piik/releases"
|
||||
const mirrorReleaseAPIURL = "https://api.atomgit.com/api/v5/repos/TNTcraftHIM/Piik/releases"
|
||||
|
||||
// deploy/check-release.sh forwards these codes without installing anything.
|
||||
const (
|
||||
@@ -29,7 +29,7 @@ const (
|
||||
releaseTimeout = 5 * time.Second
|
||||
releaseURLPrefix = "https://github.com/TNTcraftHIM/Piik/releases/tag/"
|
||||
releaseAPIHost = "api.github.com"
|
||||
mirrorReleasePrefix = "https://gitee.com/TNTcraftHIM/Piik/releases/tag/"
|
||||
mirrorReleaseURL = "https://atomgit.com/TNTcraftHIM/Piik/releases"
|
||||
)
|
||||
|
||||
var fullRevisionPattern = regexp.MustCompile(`^[0-9a-f]{40}$`)
|
||||
@@ -288,5 +288,5 @@ func parseMirrorReleaseMetadata(payload []byte) (version, revision, releaseURL s
|
||||
if !ok {
|
||||
return "", "", "", false
|
||||
}
|
||||
return version, revision, mirrorReleasePrefix + version, true
|
||||
return version, revision, mirrorReleaseURL, true
|
||||
}
|
||||
@@ -309,7 +309,7 @@ func TestMirrorFallbackUsesOriginalSourceAndCompleteStablePagination(t *testing.
|
||||
}))
|
||||
defer mirror.Close()
|
||||
result := checkRelease(t.Context(), deployedVersion, deployedRevision, primary.URL, "operator-secret", mirror.URL)
|
||||
assertResult(t, result, statusUpdateAvailable, deployedVersion, latestVersion, deployedRevision, latestRevision, mirrorReleasePrefix+latestVersion)
|
||||
assertResult(t, result, statusUpdateAvailable, deployedVersion, latestVersion, deployedRevision, latestRevision, mirrorReleaseURL)
|
||||
if mirrorCalls != 2 {
|
||||
t.Fatalf("mirror calls = %d", mirrorCalls)
|
||||
}
|
||||
|
||||
@@ -39,30 +39,27 @@ behavior are unchanged.
|
||||
### One Capacity Rule
|
||||
|
||||
Every non-server endpoint uses one server-authoritative steady outbound media-
|
||||
copy cap `C`: default `2`, configurable only as `1`, `2`, or `3`.
|
||||
copy cap. The site's initial default is `2`, configurable as `1`, `2`, or `3`.
|
||||
Room defaults, personal choices and published-client behavior follow the
|
||||
[endpoint capacity contract](../standards/routing-transport.md#endpoint-and-server-capacity).
|
||||
|
||||
- one ordinary peer child consumes one copy;
|
||||
- the Host's single SFU publication consumes one copy;
|
||||
- upstream receive consumes none;
|
||||
- role, Browser, UA, device, visibility, codec, and room Viewer limit do not
|
||||
create another tier;
|
||||
- a client may advertise only `0..C` currently available copies, producing the
|
||||
controller's effective capacity.
|
||||
- endpoint capability bounds the controller's applied policy.
|
||||
|
||||
That advertised capacity belongs to the connected endpoint, not one sharing
|
||||
generation. Replacing the room graph retains it; Viewer departure or room
|
||||
deletion clears it.
|
||||
|
||||
One transition-overlap reservation may temporarily raise a producer to
|
||||
`min(C + 1, 3)`. Commit or abort releases it. A fourth endpoint copy is never
|
||||
authorized. SFU ingress and subscription egress are independent server resources
|
||||
and are not inferred from endpoint child counts.
|
||||
|
||||
Room voice adds an explicit, session-scoped relay volunteer
|
||||
override under the [endpoint capacity contract](../standards/routing-transport.md#endpoint-and-server-capacity).
|
||||
It retains ordinary caps and one serial overlap reservation, but a capable
|
||||
volunteer's admitted fanout may reach 20, with one extra transition slot.
|
||||
This exception does not turn an ordinary Viewer into a separate SFU worker.
|
||||
One admitted transition-overlap reservation may temporarily add a copy within
|
||||
the endpoint's physical capability. Commit or abort releases it; a backend
|
||||
reporting at most three copies never receives a fourth. SFU ingress and
|
||||
subscription egress are independent server resources and are not inferred from
|
||||
endpoint child counts. Increasing an endpoint's limit retains ordinary Peer
|
||||
forwarding rather than creating a separate SFU worker.
|
||||
|
||||
### One Graph And Reconcile Loop
|
||||
|
||||
|
||||
@@ -78,10 +78,13 @@ connection acquisition reuses the route controller's existing opportunity ledger
|
||||
PeerConnection. It reuses the current peer/session/connection authorization
|
||||
and the same share policy; Browser peers decline immediately. Each Engine
|
||||
permits one preparation: an ordered three-destination observation, then
|
||||
checks against one bounded peer endpoint. Three equal observations retain
|
||||
checks against a bounded peer endpoint. Three equal observations retain
|
||||
that exact socket; a positive sequential observation closes it before opening
|
||||
at most eight temporary sockets. These cases can pair in either direction;
|
||||
neither observation establishes a permanent NAT classification. The bound
|
||||
neither observation establishes a permanent NAT classification. A retained
|
||||
stable socket may alternate two predicted sequential peer endpoints within
|
||||
the existing rounds, locking one tuple upon its first authenticated request
|
||||
or matching transaction response. Other tuples are then ignored. The bound
|
||||
remains 64 requests and 64 authenticated replies. Survey readers, writers
|
||||
and cancellation callbacks retire before socket reuse or transfer. The page
|
||||
waits at most 3.5 seconds; the App
|
||||
|
||||
|
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 9.8 KiB |
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 11 KiB |
@@ -86,4 +86,4 @@
|
||||
.source .glyph { color: var(--control-selected-ink); }
|
||||
.source text { fill: var(--control-selected-ink); }
|
||||
.path { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
|
||||
</style><g transform="translate(0 0)"><g class="source"><rect class="node input" x="12" y="4" width="220" height="146" rx="22"></rect><g class="glyph" transform="translate(95 21)"><svg width="54" height="54" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="2" y="4" width="20" height="16" rx="2"></rect><path pathLength="1" d="M2 9h20M6 6.5h.01M9 6.5h.01"></path></svg></g><text x="122" y="118">Source audio</text></g><rect class="node" x="368" y="4" width="220" height="146" rx="22"></rect><g class="glyph" transform="translate(451 21)"><svg width="54" height="54" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><path pathLength="1" d="M4 9v6h4l5 4V5L8 9H4Z"></path><path pathLength="1" d="M16 9a4.2 4.2 0 0 1 0 6M18.5 6.5a8 8 0 0 1 0 11"></path></svg></g><path class="path" d="M250 77h96m-9-9 9 9-9 9"></path><text x="478" y="118">Playback volume</text></g><g transform="translate(0 170)"><g class="source"><rect class="node input" x="12" y="4" width="220" height="146" rx="22"></rect><g class="glyph" transform="translate(95 21)"><svg width="54" height="54" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="9" y="2" width="6" height="13" rx="3"></rect><path pathLength="1" d="M5 10v2a7 7 0 0 0 14 0v-2M12 19v3m-4 0h8"></path></svg></g><text x="122" y="118">Share microphone</text></g><rect class="node" x="368" y="4" width="220" height="146" rx="22"></rect><g class="glyph" transform="translate(451 21)"><svg width="54" height="54" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><path pathLength="1" d="M4 9v6h4l5 4V5L8 9H4Z"></path><path pathLength="1" d="M16 9a4.2 4.2 0 0 1 0 6M18.5 6.5a8 8 0 0 1 0 11"></path></svg></g><path class="path" d="M250 77h96m-9-9 9 9-9 9"></path><text x="478" y="118">Playback volume</text></g><g transform="translate(0 340)"><g class="source"><rect class="node input" x="12" y="4" width="220" height="146" rx="22"></rect><g class="glyph" transform="translate(95 21)"><svg width="54" height="54" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="9" y="2" width="6" height="13" rx="3"></rect><path pathLength="1" d="M5 10v2a7 7 0 0 0 14 0v-2M12 19v3m-4 0h8"></path></svg></g><text x="122" y="118">Room voice</text></g><rect class="node" x="368" y="4" width="220" height="146" rx="22"></rect><g class="glyph" transform="translate(451 21)"><svg width="54" height="54" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><path pathLength="1" d="M3 14v-2a9 9 0 0 1 18 0v2"></path><rect pathLength="1" x="3" y="12" width="5" height="9" rx="2"></rect><rect pathLength="1" x="16" y="12" width="5" height="9" rx="2"></rect></svg></g><path class="path" d="M250 77h96m-9-9 9 9-9 9"></path><text x="478" y="118">Voice volume</text></g></svg>
|
||||
</style><g transform="translate(0 0)"><g class="source"><rect class="node input" x="12" y="4" width="220" height="146" rx="22"></rect><g class="glyph" transform="translate(95 21)"><svg width="54" height="54" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="2" y="4" width="20" height="16" rx="2"></rect><path pathLength="1" d="M2 9h20M6 6.5h.01M9 6.5h.01"></path></svg></g><text x="122" y="118">Source audio</text></g><rect class="node" x="348" y="4" width="240" height="146" rx="22"></rect><g class="glyph" transform="translate(441 21)"><svg width="54" height="54" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><path pathLength="1" d="M4 9v6h4l5 4V5L8 9H4Z"></path><path pathLength="1" d="M16 9a4.2 4.2 0 0 1 0 6M18.5 6.5a8 8 0 0 1 0 11"></path></svg></g><path class="path" d="M250 77h78m-9-9 9 9-9 9"></path><text x="468" y="118">Playback volume</text></g><g transform="translate(0 170)"><g class="source"><rect class="node input" x="12" y="4" width="220" height="146" rx="22"></rect><g class="glyph" transform="translate(95 21)"><svg width="54" height="54" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="9" y="2" width="6" height="13" rx="3"></rect><path pathLength="1" d="M5 10v2a7 7 0 0 0 14 0v-2M12 19v3m-4 0h8"></path></svg></g><text x="122" y="118">Shared mic</text></g><rect class="node" x="348" y="4" width="240" height="146" rx="22"></rect><g class="glyph" transform="translate(441 21)"><svg width="54" height="54" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><path pathLength="1" d="M4 9v6h4l5 4V5L8 9H4Z"></path><path pathLength="1" d="M16 9a4.2 4.2 0 0 1 0 6M18.5 6.5a8 8 0 0 1 0 11"></path></svg></g><path class="path" d="M250 77h78m-9-9 9 9-9 9"></path><text x="468" y="118">Playback volume</text></g><g transform="translate(0 340)"><g class="source"><rect class="node input" x="12" y="4" width="220" height="146" rx="22"></rect><g class="glyph" transform="translate(95 21)"><svg width="54" height="54" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="9" y="2" width="6" height="13" rx="3"></rect><path pathLength="1" d="M5 10v2a7 7 0 0 0 14 0v-2M12 19v3m-4 0h8"></path></svg></g><text x="122" y="118">Room voice</text></g><rect class="node" x="348" y="4" width="240" height="146" rx="22"></rect><g class="glyph" transform="translate(441 21)"><svg width="54" height="54" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><path pathLength="1" d="M3 14v-2a9 9 0 0 1 18 0v2"></path><rect pathLength="1" x="3" y="12" width="5" height="9" rx="2"></rect><rect pathLength="1" x="16" y="12" width="5" height="9" rx="2"></rect></svg></g><path class="path" d="M250 77h78m-9-9 9 9-9 9"></path><text x="468" y="118">Voice volume</text></g></svg>
|
||||
|
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 7.5 KiB |
@@ -86,4 +86,4 @@
|
||||
.source .glyph { color: var(--control-selected-ink); }
|
||||
.source text { fill: var(--control-selected-ink); }
|
||||
.path { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
|
||||
</style><g transform="translate(0 0)"><g class="source"><rect class="node input" x="12" y="4" width="220" height="146" rx="22"></rect><g class="glyph" transform="translate(95 21)"><svg width="54" height="54" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="2" y="4" width="20" height="16" rx="2"></rect><path pathLength="1" d="M2 9h20M6 6.5h.01M9 6.5h.01"></path></svg></g><text x="122" y="118">来源声音</text></g><rect class="node" x="368" y="4" width="220" height="146" rx="22"></rect><g class="glyph" transform="translate(451 21)"><svg width="54" height="54" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><path pathLength="1" d="M4 9v6h4l5 4V5L8 9H4Z"></path><path pathLength="1" d="M16 9a4.2 4.2 0 0 1 0 6M18.5 6.5a8 8 0 0 1 0 11"></path></svg></g><path class="path" d="M250 77h96m-9-9 9 9-9 9"></path><text x="478" y="118">播放音量</text></g><g transform="translate(0 170)"><g class="source"><rect class="node input" x="12" y="4" width="220" height="146" rx="22"></rect><g class="glyph" transform="translate(95 21)"><svg width="54" height="54" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="9" y="2" width="6" height="13" rx="3"></rect><path pathLength="1" d="M5 10v2a7 7 0 0 0 14 0v-2M12 19v3m-4 0h8"></path></svg></g><text x="122" y="118">分享麦克风</text></g><rect class="node" x="368" y="4" width="220" height="146" rx="22"></rect><g class="glyph" transform="translate(451 21)"><svg width="54" height="54" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><path pathLength="1" d="M4 9v6h4l5 4V5L8 9H4Z"></path><path pathLength="1" d="M16 9a4.2 4.2 0 0 1 0 6M18.5 6.5a8 8 0 0 1 0 11"></path></svg></g><path class="path" d="M250 77h96m-9-9 9 9-9 9"></path><text x="478" y="118">播放音量</text></g><g transform="translate(0 340)"><g class="source"><rect class="node input" x="12" y="4" width="220" height="146" rx="22"></rect><g class="glyph" transform="translate(95 21)"><svg width="54" height="54" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="9" y="2" width="6" height="13" rx="3"></rect><path pathLength="1" d="M5 10v2a7 7 0 0 0 14 0v-2M12 19v3m-4 0h8"></path></svg></g><text x="122" y="118">房间语音</text></g><rect class="node" x="368" y="4" width="220" height="146" rx="22"></rect><g class="glyph" transform="translate(451 21)"><svg width="54" height="54" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><path pathLength="1" d="M3 14v-2a9 9 0 0 1 18 0v2"></path><rect pathLength="1" x="3" y="12" width="5" height="9" rx="2"></rect><rect pathLength="1" x="16" y="12" width="5" height="9" rx="2"></rect></svg></g><path class="path" d="M250 77h96m-9-9 9 9-9 9"></path><text x="478" y="118">语音收听</text></g></svg>
|
||||
</style><g transform="translate(0 0)"><g class="source"><rect class="node input" x="12" y="4" width="220" height="146" rx="22"></rect><g class="glyph" transform="translate(95 21)"><svg width="54" height="54" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="2" y="4" width="20" height="16" rx="2"></rect><path pathLength="1" d="M2 9h20M6 6.5h.01M9 6.5h.01"></path></svg></g><text x="122" y="118">来源声音</text></g><rect class="node" x="348" y="4" width="240" height="146" rx="22"></rect><g class="glyph" transform="translate(441 21)"><svg width="54" height="54" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><path pathLength="1" d="M4 9v6h4l5 4V5L8 9H4Z"></path><path pathLength="1" d="M16 9a4.2 4.2 0 0 1 0 6M18.5 6.5a8 8 0 0 1 0 11"></path></svg></g><path class="path" d="M250 77h78m-9-9 9 9-9 9"></path><text x="468" y="118">播放音量</text></g><g transform="translate(0 170)"><g class="source"><rect class="node input" x="12" y="4" width="220" height="146" rx="22"></rect><g class="glyph" transform="translate(95 21)"><svg width="54" height="54" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="9" y="2" width="6" height="13" rx="3"></rect><path pathLength="1" d="M5 10v2a7 7 0 0 0 14 0v-2M12 19v3m-4 0h8"></path></svg></g><text x="122" y="118">分享麦克风</text></g><rect class="node" x="348" y="4" width="240" height="146" rx="22"></rect><g class="glyph" transform="translate(441 21)"><svg width="54" height="54" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><path pathLength="1" d="M4 9v6h4l5 4V5L8 9H4Z"></path><path pathLength="1" d="M16 9a4.2 4.2 0 0 1 0 6M18.5 6.5a8 8 0 0 1 0 11"></path></svg></g><path class="path" d="M250 77h78m-9-9 9 9-9 9"></path><text x="468" y="118">播放音量</text></g><g transform="translate(0 340)"><g class="source"><rect class="node input" x="12" y="4" width="220" height="146" rx="22"></rect><g class="glyph" transform="translate(95 21)"><svg width="54" height="54" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="9" y="2" width="6" height="13" rx="3"></rect><path pathLength="1" d="M5 10v2a7 7 0 0 0 14 0v-2M12 19v3m-4 0h8"></path></svg></g><text x="122" y="118">房间语音</text></g><rect class="node" x="348" y="4" width="240" height="146" rx="22"></rect><g class="glyph" transform="translate(441 21)"><svg width="54" height="54" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><path pathLength="1" d="M3 14v-2a9 9 0 0 1 18 0v2"></path><rect pathLength="1" x="3" y="12" width="5" height="9" rx="2"></rect><rect pathLength="1" x="16" y="12" width="5" height="9" rx="2"></rect></svg></g><path class="path" d="M250 77h78m-9-9 9 9-9 9"></path><text x="468" y="118">语音收听</text></g></svg>
|
||||
|
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 7.5 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 9.7 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
@@ -86,4 +86,4 @@
|
||||
.source .glyph { color: var(--control-selected-ink); }
|
||||
.source text { fill: var(--control-selected-ink); }
|
||||
.path { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
|
||||
</style><path class="path" d="M164 174h28V64h32m152 0h28v110h28"></path><rect class="node" x="224" y="8" width="152" height="112" rx="20"></rect><g class="glyph" transform="translate(274 18)"><svg width="52" height="52" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="3" y="4" width="18" height="7" rx="2"></rect><rect pathLength="1" x="3" y="13" width="18" height="7" rx="2"></rect><path pathLength="1" d="M7 7.5h.01M7 16.5h.01"></path></svg></g><text x="300" y="101">Piik site</text><g><rect class="node" x="12" y="136" width="152" height="160" rx="20"></rect><g class="glyph" transform="translate(58 164)"><svg width="60" height="60" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="2" y="4" width="20" height="16" rx="2"></rect><path pathLength="1" d="M2 9h20M6 6.5h.01M9 6.5h.01"></path></svg></g><text x="88" y="268">Host</text></g><g><rect class="node" x="436" y="136" width="152" height="160" rx="20"></rect><g class="glyph" transform="translate(482 164)"><svg width="60" height="60" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="2" y="4" width="20" height="16" rx="2"></rect><path pathLength="1" d="M2 9h20M6 6.5h.01M9 6.5h.01"></path></svg></g><text x="512" y="268">Friend</text></g><text x="300" y="173" style="font-size:24px">Web & chat</text><text x="300" y="232" style="font-size:24px">Picture & sound</text><path class="path" d="M164 252h272m-262-8-10 8 10 8m252-16 10 8-10 8"></path><text x="300" y="326" style="font-size:22px;fill:var(--muted)">Direct or forwarded media connection</text></svg>
|
||||
</style><rect width="600" height="340" rx="20" fill="var(--wall)"></rect><path class="path" d="M164 174h28V64h32m152 0h28v110h32"></path><rect class="node" x="224" y="8" width="152" height="112" rx="20"></rect><g class="glyph" transform="translate(274 18)"><svg width="52" height="52" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="3" y="4" width="18" height="7" rx="2"></rect><rect pathLength="1" x="3" y="13" width="18" height="7" rx="2"></rect><path pathLength="1" d="M7 7.5h.01M7 16.5h.01"></path></svg></g><text x="300" y="101">Piik site</text><g><rect class="node" x="12" y="136" width="152" height="160" rx="20"></rect><g class="glyph" transform="translate(58 164)"><svg width="60" height="60" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="2" y="4" width="20" height="16" rx="2"></rect><path pathLength="1" d="M2 9h20M6 6.5h.01M9 6.5h.01"></path></svg></g><text x="88" y="268">Host</text></g><g><rect class="node" x="436" y="136" width="152" height="160" rx="20"></rect><g class="glyph" transform="translate(482 164)"><svg width="60" height="60" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="2" y="4" width="20" height="16" rx="2"></rect><path pathLength="1" d="M2 9h20M6 6.5h.01M9 6.5h.01"></path></svg></g><text x="512" y="268">Friend</text></g><text x="300" y="173" style="font-size:26px">Web & chat</text><text x="300" y="232" style="font-size:26px">Picture & sound</text><path class="path" d="M164 252h272m-262-8-10 8 10 8m252-16 10 8-10 8"></path><text x="300" y="326" style="font-size:26px;fill:var(--muted)">Direct or forwarded</text></svg>
|
||||
|
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.1 KiB |
@@ -86,4 +86,4 @@
|
||||
.source .glyph { color: var(--control-selected-ink); }
|
||||
.source text { fill: var(--control-selected-ink); }
|
||||
.path { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
|
||||
</style><path class="path" d="M164 174h28V64h32m152 0h28v110h28"></path><rect class="node" x="224" y="8" width="152" height="112" rx="20"></rect><g class="glyph" transform="translate(274 18)"><svg width="52" height="52" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="3" y="4" width="18" height="7" rx="2"></rect><rect pathLength="1" x="3" y="13" width="18" height="7" rx="2"></rect><path pathLength="1" d="M7 7.5h.01M7 16.5h.01"></path></svg></g><text x="300" y="101">Piik 站点</text><g><rect class="node" x="12" y="136" width="152" height="160" rx="20"></rect><g class="glyph" transform="translate(58 164)"><svg width="60" height="60" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="2" y="4" width="20" height="16" rx="2"></rect><path pathLength="1" d="M2 9h20M6 6.5h.01M9 6.5h.01"></path></svg></g><text x="88" y="268">房主</text></g><g><rect class="node" x="436" y="136" width="152" height="160" rx="20"></rect><g class="glyph" transform="translate(482 164)"><svg width="60" height="60" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="2" y="4" width="20" height="16" rx="2"></rect><path pathLength="1" d="M2 9h20M6 6.5h.01M9 6.5h.01"></path></svg></g><text x="512" y="268">朋友</text></g><text x="300" y="173" style="font-size:24px">网页与聊天</text><text x="300" y="232" style="font-size:24px">画面与声音</text><path class="path" d="M164 252h272m-262-8-10 8 10 8m252-16 10 8-10 8"></path><text x="300" y="326" style="font-size:22px;fill:var(--muted)">独立的媒体连接:直连或服务器转发</text></svg>
|
||||
</style><rect width="600" height="340" rx="20" fill="var(--wall)"></rect><path class="path" d="M164 174h28V64h32m152 0h28v110h32"></path><rect class="node" x="224" y="8" width="152" height="112" rx="20"></rect><g class="glyph" transform="translate(274 18)"><svg width="52" height="52" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="3" y="4" width="18" height="7" rx="2"></rect><rect pathLength="1" x="3" y="13" width="18" height="7" rx="2"></rect><path pathLength="1" d="M7 7.5h.01M7 16.5h.01"></path></svg></g><text x="300" y="101">Piik 站点</text><g><rect class="node" x="12" y="136" width="152" height="160" rx="20"></rect><g class="glyph" transform="translate(58 164)"><svg width="60" height="60" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="2" y="4" width="20" height="16" rx="2"></rect><path pathLength="1" d="M2 9h20M6 6.5h.01M9 6.5h.01"></path></svg></g><text x="88" y="268">房主</text></g><g><rect class="node" x="436" y="136" width="152" height="160" rx="20"></rect><g class="glyph" transform="translate(482 164)"><svg width="60" height="60" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="2" y="4" width="20" height="16" rx="2"></rect><path pathLength="1" d="M2 9h20M6 6.5h.01M9 6.5h.01"></path></svg></g><text x="512" y="268">朋友</text></g><text x="300" y="173" style="font-size:26px">网页与聊天</text><text x="300" y="232" style="font-size:26px">画面与声音</text><path class="path" d="M164 252h272m-262-8-10 8 10 8m252-16 10 8-10 8"></path><text x="300" y="326" style="font-size:26px;fill:var(--muted)">独立的媒体连接:直连或服务器转发</text></svg>
|
||||
|
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 45 KiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 39 KiB |
|
After Width: | Height: | Size: 39 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 39 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 7.9 KiB |
|
After Width: | Height: | Size: 8.1 KiB |
|
After Width: | Height: | Size: 8.0 KiB |
|
After Width: | Height: | Size: 8.1 KiB |
@@ -1,4 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="600" height="380" viewBox="0 0 600 380" role="img" aria-labelledby="title desc"><title id="title">Use Piik over a virtual LAN</title><desc id="desc">Join the same virtual LAN: Keep the tool running on both sides.. Choose the virtual address: Local room → select the virtual IP. Send the complete invitation: Confirm the certificate and join.</desc><style>/* Shared theme for the App, website and documentation. Status and selection
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="600" height="380" viewBox="0 0 600 380" role="img" aria-labelledby="title desc"><title id="title">Use Piik over a virtual LAN</title><desc id="desc">Join the same virtual LAN: Keep the tool running.. Choose the virtual IP: Local room → address. Send the full invitation: Check the certificate.</desc><style>/* Shared theme for the App, website and documentation. Status and selection
|
||||
have separate roles; illustrations keep their own colours. */
|
||||
:root {
|
||||
--person-ink: #263b43;
|
||||
@@ -86,4 +86,4 @@
|
||||
.source .glyph { color: var(--control-selected-ink); }
|
||||
.source text { fill: var(--control-selected-ink); }
|
||||
.path { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
|
||||
</style><g transform="translate(0 0)"><rect class="node" x="8" y="4" width="584" height="116" rx="20"></rect><text x="35" y="70" style="font-size:20px;fill:var(--muted)">01</text><g class="glyph" transform="translate(68 34)"><svg width="52" height="52" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="9" y="2" width="6" height="6" rx="1.5"></rect><rect pathLength="1" x="2" y="16" width="6" height="6" rx="1.5"></rect><rect pathLength="1" x="16" y="16" width="6" height="6" rx="1.5"></rect><path pathLength="1" d="M12 8v3.5M12 11.5 5.5 16M12 11.5l6.5 4.5"></path></svg></g><text x="144" y="51" style="font-size:28px;text-anchor:start">Join the same virtual LAN</text><text x="144" y="88" style="font-size:23px;text-anchor:start;fill:var(--muted)">Keep the tool running on both sides.</text></g><g transform="translate(0 128)"><rect class="node" x="8" y="4" width="584" height="116" rx="20"></rect><text x="35" y="70" style="font-size:20px;fill:var(--muted)">02</text><g class="glyph" transform="translate(68 34)"><svg width="52" height="52" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="2" y="4" width="20" height="16" rx="2"></rect><path pathLength="1" d="M2 9h20M6 6.5h.01M9 6.5h.01"></path></svg></g><text x="144" y="51" style="font-size:28px;text-anchor:start">Choose the virtual address</text><text x="144" y="88" style="font-size:23px;text-anchor:start;fill:var(--muted)">Local room → select the virtual IP</text></g><g transform="translate(0 256)"><rect class="node" x="8" y="4" width="584" height="116" rx="20"></rect><text x="35" y="70" style="font-size:20px;fill:var(--muted)">03</text><g class="glyph" transform="translate(68 34)"><svg width="52" height="52" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><path pathLength="1" d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path pathLength="1" d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg></g><text x="144" y="51" style="font-size:28px;text-anchor:start">Send the complete invitation</text><text x="144" y="88" style="font-size:23px;text-anchor:start;fill:var(--muted)">Confirm the certificate and join.</text></g></svg>
|
||||
</style><g transform="translate(0 0)"><rect class="node" x="8" y="4" width="584" height="116" rx="20"></rect><text x="35" y="70" style="font-size:20px;fill:var(--muted)">01</text><g class="glyph" transform="translate(68 34)"><svg width="52" height="52" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="9" y="2" width="6" height="6" rx="1.5"></rect><rect pathLength="1" x="2" y="16" width="6" height="6" rx="1.5"></rect><rect pathLength="1" x="16" y="16" width="6" height="6" rx="1.5"></rect><path pathLength="1" d="M12 8v3.5M12 11.5 5.5 16M12 11.5l6.5 4.5"></path></svg></g><text x="144" y="51" style="font-size:28px;text-anchor:start">Join the same virtual LAN</text><text x="144" y="88" style="font-size:26px;text-anchor:start;fill:var(--muted)">Keep the tool running.</text></g><g transform="translate(0 128)"><rect class="node" x="8" y="4" width="584" height="116" rx="20"></rect><text x="35" y="70" style="font-size:20px;fill:var(--muted)">02</text><g class="glyph" transform="translate(68 34)"><svg width="52" height="52" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="2" y="4" width="20" height="16" rx="2"></rect><path pathLength="1" d="M2 9h20M6 6.5h.01M9 6.5h.01"></path></svg></g><text x="144" y="51" style="font-size:28px;text-anchor:start">Choose the virtual IP</text><text x="144" y="88" style="font-size:26px;text-anchor:start;fill:var(--muted)">Local room → address</text></g><g transform="translate(0 256)"><rect class="node" x="8" y="4" width="584" height="116" rx="20"></rect><text x="35" y="70" style="font-size:20px;fill:var(--muted)">03</text><g class="glyph" transform="translate(68 34)"><svg width="52" height="52" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><path pathLength="1" d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path pathLength="1" d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg></g><text x="144" y="51" style="font-size:28px;text-anchor:start">Send the full invitation</text><text x="144" y="88" style="font-size:26px;text-anchor:start;fill:var(--muted)">Check the certificate.</text></g></svg>
|
||||
|
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.6 KiB |
@@ -86,4 +86,4 @@
|
||||
.source .glyph { color: var(--control-selected-ink); }
|
||||
.source text { fill: var(--control-selected-ink); }
|
||||
.path { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
|
||||
</style><g transform="translate(0 0)"><rect class="node" x="8" y="4" width="584" height="116" rx="20"></rect><text x="35" y="70" style="font-size:20px;fill:var(--muted)">01</text><g class="glyph" transform="translate(68 34)"><svg width="52" height="52" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="9" y="2" width="6" height="6" rx="1.5"></rect><rect pathLength="1" x="2" y="16" width="6" height="6" rx="1.5"></rect><rect pathLength="1" x="16" y="16" width="6" height="6" rx="1.5"></rect><path pathLength="1" d="M12 8v3.5M12 11.5 5.5 16M12 11.5l6.5 4.5"></path></svg></g><text x="144" y="51" style="font-size:28px;text-anchor:start">加入同一虚拟网络</text><text x="144" y="88" style="font-size:23px;text-anchor:start;fill:var(--muted)">房主和朋友都保持组网工具运行</text></g><g transform="translate(0 128)"><rect class="node" x="8" y="4" width="584" height="116" rx="20"></rect><text x="35" y="70" style="font-size:20px;fill:var(--muted)">02</text><g class="glyph" transform="translate(68 34)"><svg width="52" height="52" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="2" y="4" width="20" height="16" rx="2"></rect><path pathLength="1" d="M2 9h20M6 6.5h.01M9 6.5h.01"></path></svg></g><text x="144" y="51" style="font-size:28px;text-anchor:start">选择虚拟地址</text><text x="144" y="88" style="font-size:23px;text-anchor:start;fill:var(--muted)">本地房间 → 局域网邀请地址</text></g><g transform="translate(0 256)"><rect class="node" x="8" y="4" width="584" height="116" rx="20"></rect><text x="35" y="70" style="font-size:20px;fill:var(--muted)">03</text><g class="glyph" transform="translate(68 34)"><svg width="52" height="52" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><path pathLength="1" d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path pathLength="1" d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg></g><text x="144" y="51" style="font-size:28px;text-anchor:start">发送完整邀请链接</text><text x="144" y="88" style="font-size:23px;text-anchor:start;fill:var(--muted)">朋友核对本地证书,进入房间</text></g></svg>
|
||||
</style><g transform="translate(0 0)"><rect class="node" x="8" y="4" width="584" height="116" rx="20"></rect><text x="35" y="70" style="font-size:20px;fill:var(--muted)">01</text><g class="glyph" transform="translate(68 34)"><svg width="52" height="52" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="9" y="2" width="6" height="6" rx="1.5"></rect><rect pathLength="1" x="2" y="16" width="6" height="6" rx="1.5"></rect><rect pathLength="1" x="16" y="16" width="6" height="6" rx="1.5"></rect><path pathLength="1" d="M12 8v3.5M12 11.5 5.5 16M12 11.5l6.5 4.5"></path></svg></g><text x="144" y="51" style="font-size:28px;text-anchor:start">加入同一虚拟网络</text><text x="144" y="88" style="font-size:26px;text-anchor:start;fill:var(--muted)">房主和朋友都保持组网工具运行</text></g><g transform="translate(0 128)"><rect class="node" x="8" y="4" width="584" height="116" rx="20"></rect><text x="35" y="70" style="font-size:20px;fill:var(--muted)">02</text><g class="glyph" transform="translate(68 34)"><svg width="52" height="52" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><rect pathLength="1" x="2" y="4" width="20" height="16" rx="2"></rect><path pathLength="1" d="M2 9h20M6 6.5h.01M9 6.5h.01"></path></svg></g><text x="144" y="51" style="font-size:28px;text-anchor:start">选择虚拟地址</text><text x="144" y="88" style="font-size:26px;text-anchor:start;fill:var(--muted)">本地房间 → 局域网邀请地址</text></g><g transform="translate(0 256)"><rect class="node" x="8" y="4" width="584" height="116" rx="20"></rect><text x="35" y="70" style="font-size:20px;fill:var(--muted)">03</text><g class="glyph" transform="translate(68 34)"><svg width="52" height="52" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="lr-glyph"><path pathLength="1" d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path pathLength="1" d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg></g><text x="144" y="51" style="font-size:28px;text-anchor:start">发送完整邀请链接</text><text x="144" y="88" style="font-size:26px;text-anchor:start;fill:var(--muted)">朋友核对本地证书,进入房间</text></g></svg>
|
||||
|
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.7 KiB |
@@ -224,6 +224,26 @@ schema validation fails closed before accepting signaling or media admission.
|
||||
|
||||
## Postflight
|
||||
|
||||
Package publication, the website, and running Piik services are separate delivery
|
||||
targets. CI publishes packages and the website; it does not update the managed
|
||||
Demo or private service. Complete their authorized deployment before reporting
|
||||
the release as deployed, and verify each service against the release descriptor:
|
||||
|
||||
```sh
|
||||
node --env-file=.env.maintenance.demo.local scripts/release-maintenance.mjs server-check --revision FULL_SOURCE_SHA
|
||||
node --env-file=.env.maintenance.private.local scripts/release-maintenance.mjs server-check --revision FULL_SOURCE_SHA
|
||||
```
|
||||
|
||||
The website's latest-version card reads GitHub metadata and cannot establish
|
||||
which release either service is running.
|
||||
|
||||
Download mirrors have a separate completion check: the AtomGit stable/latest
|
||||
release must match the published version and source, and every package must pass
|
||||
the mirror publisher's anonymous download and checksum verification. A green
|
||||
workflow that skipped its upload step is not mirror completion. Keep a failed
|
||||
mirror in the active TODO ledger until recovery and postflight succeed; source
|
||||
synchronization alone does not publish download attachments.
|
||||
|
||||
Verify only the surfaces relevant to the release:
|
||||
|
||||
- local and public `/healthz` return `{"status":"ok"}`;
|
||||
|
||||
@@ -1,52 +1,72 @@
|
||||
# Piik documentation
|
||||
---
|
||||
layout: page
|
||||
pageClass: help-home
|
||||
sidebar: false
|
||||
search: false
|
||||
title: Piik Documentation
|
||||
description: Join a room, share your screen, and fix common problems with Piik.
|
||||
---
|
||||
|
||||
English · [简体中文](./README.zh-CN.md) · [Website](https://piik.tv/?lang=en)
|
||||
<header class="help-hero">
|
||||
|
||||
Choose a guide to start sharing, use room tools or solve a problem.
|
||||
# Piik Documentation
|
||||
|
||||
## Start using Piik
|
||||
Try searching for “can’t join”, “no sound”, or “joystick”.
|
||||
|
||||
<div class="guide-task-index">
|
||||
<HelpSearch />
|
||||
|
||||
- **[Watch a friend](./getting-started.md#join-a-friends-room)**<br>
|
||||
Open an invitation in a computer or phone browser. No installation needed.
|
||||
- **[Share my screen](./getting-started.md#share-with-piik-app)**<br>
|
||||
Download and run Piik App, choose a picture and send an invitation.
|
||||
- **[Use Piik without installing](./getting-started.md#use-piik-online)**<br>
|
||||
Share a screen or camera from the online site.
|
||||
- **[Use my group's Piik site](./getting-started.md#share-from-an-existing-site)**<br>
|
||||
Share in your browser, or connect App for more features.
|
||||
</header>
|
||||
|
||||
<div class="help-sections">
|
||||
|
||||
<section class="help-actions">
|
||||
|
||||
## Start here
|
||||
|
||||
- [Join a friend's room](./getting-started.md#join-a-friends-room)<br>
|
||||
Use an invitation link or a four-digit room code.
|
||||
- [Share your screen in a browser](./getting-started.md#share-your-screen-in-a-browser)<br>
|
||||
Open the online site and send friends an invitation link.
|
||||
- [Share with Piik App](./getting-started.md#share-with-piik-app)<br>
|
||||
Install Piik App and choose a local or public invitation.
|
||||
- [Play on your phone with the on-screen joystick](./remote-control.md#play-on-your-phone-with-the-on-screen-joystick)<br>
|
||||
Request control and move with the on-screen joystick.
|
||||
|
||||
</section>
|
||||
|
||||
<section class="help-issues">
|
||||
|
||||
## Fix a problem
|
||||
|
||||
- [No picture after joining a room](./no-media-route.md)
|
||||
- [I can’t join my friend’s room](./troubleshooting.md#i-cant-join-my-friends-room)
|
||||
- [The picture is blurry or keeps freezing](./troubleshooting.md#the-picture-is-blurry-or-keeps-freezing)
|
||||
- [I can see the picture but cannot hear the game](./sound-help.md#i-can-see-the-picture-but-cannot-hear-the-game)
|
||||
- [My friends cannot hear me](./sound-help.md#my-friends-cannot-hear-me)
|
||||
|
||||
[Troubleshooting](./troubleshooting.md) · [Reporting a problem](./troubleshooting.md#reporting-a-problem)
|
||||
|
||||
</section>
|
||||
|
||||
<section class="help-resources">
|
||||
|
||||
## In the room
|
||||
|
||||
- [Sharing and playback](./sharing.md)
|
||||
- [iPhone and iPad screen sharing](./sharing.md#iphone-and-ipad-screen-sharing)
|
||||
- [Room voice](./room-tools.md#room-voice)
|
||||
- [Play together](./remote-control.md#play-together)
|
||||
|
||||
</section>
|
||||
|
||||
<section class="help-hosting">
|
||||
|
||||
## Run your own site
|
||||
|
||||
[Deploy Piik Server](../operations/self-hosting.md) · [Service Management](../operations/service-management.md) · [Use frp for a fixed Piik invitation address](./frp.md) · [Advanced network checks](./network.md) · [Piik App](../../cmd/piik-app/README.md)
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
## Use the room tools
|
||||
|
||||
- [Sharing and playback](./sharing.md): picture quality, cameras, source sound and viewing controls.
|
||||
- [Chat, voice and remote control](./room-tools.md): reactions, conversations and letting a friend take control.
|
||||
- [Remote control and playing together](./remote-control.md): permissions, shared keyboard/mouse and gamepads.
|
||||
- [App reference](../../cmd/piik-app/README.md): saved modes, site access, command-line options and diagnostics.
|
||||
|
||||
## Get help
|
||||
|
||||
- **App, sharing or sound problems:** start with the [symptom index](./troubleshooting.md#common-problems).
|
||||
- **Campus networks, media connections or virtual LANs:** use [network checks](./network.md) to choose a connection option.
|
||||
|
||||
Still stuck? [Report a problem](https://github.com/TNTcraftHIM/Piik/issues/new/choose)
|
||||
with your version, system, browser and reproduction steps. Follow the
|
||||
[reporting steps](./troubleshooting.md#reporting-a-problem) to collect diagnostics.
|
||||
|
||||
## Run a site for your group
|
||||
|
||||
<p><a href="../operations/self-hosting.md#docker-compose"><img src="https://img.shields.io/badge/Deploy_with-Docker_Compose-2764c4?style=for-the-badge&logo=docker&logoColor=white" alt="Deploy Piik Server with Docker Compose"></a></p>
|
||||
|
||||
For a permanent group site, deploy Piik Server on a reachable address with HTTPS
|
||||
and the required network ports.
|
||||
|
||||
- [Deploy Piik Server](../operations/self-hosting.md) with Docker Compose or the server package.
|
||||
- [Keep it running and update](../operations/service-management.md).
|
||||
- [Look up configuration settings](../standards/configuration.md).
|
||||
|
||||
## Help improve Piik
|
||||
|
||||
[Translate Piik](./translating.md), [contribute](../../CONTRIBUTING.md), or explore the
|
||||
[developer and maintainer documentation](../README.md).
|
||||
[简体中文](./README.zh-CN.md) · [Help translate Piik](./translating.md) · [Piik website](https://piik.tv/?lang=en)
|
||||
@@ -1,50 +1,72 @@
|
||||
---
|
||||
layout: page
|
||||
pageClass: help-home
|
||||
sidebar: false
|
||||
search: false
|
||||
title: Piik 文档中心
|
||||
description: 了解如何加入房间、分享屏幕,以及解决 Piik 的常见问题。
|
||||
---
|
||||
|
||||
<header class="help-hero">
|
||||
|
||||
# Piik 文档中心
|
||||
|
||||
[English](./README.md) · 简体中文 · [官网](https://piik.tv/?lang=zh-CN)
|
||||
试试搜索「进不去」「没声音」或「摇杆」。
|
||||
|
||||
按你要做的事查找指南:开始分享、使用房间工具,或解决遇到的问题。
|
||||
<HelpSearch />
|
||||
|
||||
</header>
|
||||
|
||||
<div class="help-sections">
|
||||
|
||||
<section class="help-actions">
|
||||
|
||||
## 开始使用
|
||||
|
||||
<div class="guide-task-index">
|
||||
- [加入朋友的房间](./getting-started.zh-CN.md#加入朋友的房间)<br>
|
||||
用邀请链接或四位房间号加入。
|
||||
- [用浏览器分享屏幕](./getting-started.zh-CN.md#用浏览器分享屏幕)<br>
|
||||
打开在线版,把邀请链接发给朋友。
|
||||
- [用 Piik App 分享](./getting-started.zh-CN.md#用-piik-app-分享)<br>
|
||||
安装 App,选择本地房间或公网邀请。
|
||||
- [用手机玩电脑游戏(屏幕摇杆)](./remote-control.zh-CN.md#用手机玩电脑游戏屏幕摇杆)<br>
|
||||
请求控制,用屏幕上的摇杆操作朋友的游戏。
|
||||
|
||||
- **[看朋友的分享](./getting-started.zh-CN.md#加入朋友的房间)**<br>
|
||||
打开邀请链接,用电脑或手机浏览器观看,无须安装。
|
||||
- **[分享自己的屏幕](./getting-started.zh-CN.md#用-piik-app-分享)**<br>
|
||||
下载并运行 Piik App,选好画面,发送邀请。
|
||||
- **[免安装使用](./getting-started.zh-CN.md#使用在线版)**<br>
|
||||
在在线版中分享屏幕或摄像头。
|
||||
- **[使用已有站点](./getting-started.zh-CN.md#使用已有站点分享)**<br>
|
||||
直接用浏览器分享,也可连接 App 使用更多功能。
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
## 使用房间工具
|
||||
|
||||
- [分享与播放](./sharing.zh-CN.md):画质、摄像头、来源声音与观看控制。
|
||||
- [聊天、语音与远程控制](./room-tools.zh-CN.md):表情互动、聊天,或让朋友接手操作。
|
||||
- [远程控制与多人同乐](./remote-control.zh-CN.md):授权、共用键鼠与手柄设置。
|
||||
- [App 使用参考](../../cmd/piik-app/README.zh-CN.md):模式记忆、站点授权、命令行参数与诊断。
|
||||
<section class="help-issues">
|
||||
|
||||
## 遇到问题
|
||||
|
||||
- **App、分享或声音异常:** 从[问题排查的症状索引](./troubleshooting.zh-CN.md#常见问题)开始。
|
||||
- **校园网、画面连不上或虚拟局域网:** 查看[进阶网络排查](./network.zh-CN.md),按现象选择连接方案。
|
||||
- [进房后没画面](./no-media-route.zh-CN.md)
|
||||
- [进不去朋友的房间](./troubleshooting.zh-CN.md#进不去朋友的房间)
|
||||
- [画面模糊、卡顿或中断](./troubleshooting.zh-CN.md#画面模糊卡顿或中断)
|
||||
- [有画面但听不到游戏声音](./sound-help.zh-CN.md#有画面但听不到游戏声音)
|
||||
- [朋友听不到我说话](./sound-help.zh-CN.md#朋友听不到我说话)
|
||||
|
||||
仍然没解决?可以[反馈问题](https://github.com/TNTcraftHIM/Piik/issues/new/choose),
|
||||
附上版本、系统、浏览器和复现步骤。需要收集报告时,按[反馈说明](./troubleshooting.zh-CN.md#反馈问题)导出。
|
||||
[疑难解答](./troubleshooting.zh-CN.md) · [反馈问题](./troubleshooting.zh-CN.md#反馈问题)
|
||||
|
||||
## 为朋友搭建站点
|
||||
</section>
|
||||
|
||||
<p><a href="../operations/self-hosting.zh-CN.md#使用-docker-compose"><img src="https://img.shields.io/badge/Deploy_with-Docker_Compose-2764c4?style=for-the-badge&logo=docker&logoColor=white" alt="使用 Docker Compose 部署 Piik Server"></a></p>
|
||||
<section class="help-resources">
|
||||
|
||||
需要长期使用的群组站点时,可部署 Piik Server,准备可访问的地址、HTTPS 和所需网络端口。
|
||||
## 房间里可以做什么
|
||||
|
||||
- [部署 Piik Server](../operations/self-hosting.zh-CN.md):使用 Docker Compose 或服务端程序包。
|
||||
- [长期运行与更新](../operations/service-management.zh-CN.md)。
|
||||
- [完整配置参考(英文)](../standards/configuration.md)。
|
||||
- [分享与播放](./sharing.zh-CN.md)
|
||||
- [iPhone 与 iPad 屏幕分享](./sharing.zh-CN.md#iphone-与-ipad-屏幕分享)
|
||||
- [房间语音](./room-tools.zh-CN.md#房间语音)
|
||||
- [多人同乐](./remote-control.zh-CN.md#多人同乐)
|
||||
|
||||
## 一起改进 Piik
|
||||
</section>
|
||||
|
||||
可以从[参与翻译](./translating.zh-CN.md)、[贡献指南](../../CONTRIBUTING.md),
|
||||
或[开发与维护文档](../README.md)开始。
|
||||
<section class="help-hosting">
|
||||
|
||||
## 自建和管理站点
|
||||
|
||||
[部署 Piik Server](../operations/self-hosting.zh-CN.md) · [服务管理](../operations/service-management.zh-CN.md) · [用 frp 给 Piik 设置固定公网邀请](./frp.zh-CN.md) · [进阶网络排查](./network.zh-CN.md) · [Piik App](../../cmd/piik-app/README.zh-CN.md)
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
[English](./README.md) · [参与 Piik 翻译](./translating.zh-CN.md) · [Piik 官网](https://piik.tv/?lang=zh-CN)
|
||||
@@ -0,0 +1,57 @@
|
||||
# Use frp for a fixed Piik invitation address
|
||||
|
||||
English · [简体中文](./frp.zh-CN.md) · [Documentation](./README.md)
|
||||
|
||||
Use frp to give a desktop Piik App or a privately hosted Piik Server a fixed public address. Set up the tunnel on the hosting side. Your friends open the room invitation in their browsers.
|
||||
|
||||
| Where it goes | What to enter |
|
||||
| --- | --- |
|
||||
| Local target in frp | The local IP and port of the Piik **website**. This guide uses `127.0.0.1:8787` with SakuraFrp Launcher running on the same machine as Piik. |
|
||||
| Public address in Piik | The HTTPS hostname your friends can reach, including the assigned public port. Replace the example `https://piik.example.nyat.app:21080` with yours. |
|
||||
|
||||
## Get a public address
|
||||
|
||||
This example uses **SakuraFrp (樱花映射)**. If you run frps or use another provider, forward the website and WebSocket traffic for the same public HTTPS address to Piik's local HTTP service, then continue to the Piik settings. [Self-hosted frps setup](../operations/self-hosting.md#optional-forward-an-existing-server-with-frp)
|
||||
|
||||
1. Open the SakuraFrp launcher on the Piik machine. Sign in with the access key on the **用户信息** (User information) page of your SakuraFrp dashboard. [Launcher walkthrough](https://doc.natfrp.com/launcher/usage.html)
|
||||
2. In **隧道列表** (Tunnels), create a **TCP** tunnel on a node that permits websites. Use `127.0.0.1` and Piik's local web port. Leave the remote port empty for SakuraFrp to assign it and set **自动 HTTPS** (Automatic HTTPS) to **自动** (Auto). Friends connect over HTTPS and Piik receives HTTP locally. [Web tunnel settings](https://doc.natfrp.com/app/http.html) · [Automatic HTTPS](https://doc.natfrp.com/frpc/auto-https.html)
|
||||
3. Under **子域绑定** (Subdomain binding), request a `nyat.app` subdomain. Select **新建绑定** (New binding) and choose your tunnel. Start or restart the tunnel. Once the log confirms it loaded the certificate for your subdomain, copy the **hostname and public port** from the log and prepend `https://`. [Subdomain and certificate walkthrough](https://doc.natfrp.com/bestpractice/domain-bind.html)
|
||||
|
||||
## Set the invitation address in Piik
|
||||
|
||||
### Desktop App
|
||||
|
||||
- **3.0 beta.** In the launcher choose **Public invite → Existing address** and enter your public HTTPS address. In the SakuraFrp TCP tunnel settings, set the local IP and port to the **Local forwarding target** shown in Piik, then enter Piik from the launcher. The host uses the page the App opens.
|
||||
- **2.x maintenance build.** Open PowerShell in the extracted App directory. Run `.\piik-app.exe --help` and check for `public-origin` before using the command below. Replace the example HTTPS address with the public address from the tunnel log and replace the example port with the local port in the TCP tunnel settings. With the published v2.7.0, use the Server option below for a fixed address.
|
||||
|
||||
```powershell
|
||||
.\piik-app.exe --link --public-origin https://piik.example.nyat.app:21080 --port 8787
|
||||
```
|
||||
|
||||
### Existing Server
|
||||
|
||||
Apply the settings for your Server version to its existing configuration and restart the service. For a container deployment, point frp at the Piik web port published on the host.
|
||||
|
||||
| Version | Local web port | Public invitation address |
|
||||
| --- | --- | --- |
|
||||
| 2.x Server | `PORT=8787` | `PUBLIC_BASE_URL=https://piik.example.nyat.app:21080` |
|
||||
| 3.0 Server | `PIIK_CHANNEL_PORT=8787` | `PIIK_CHANNEL_INVITATION_ORIGIN=https://piik.example.nyat.app:21080` |
|
||||
|
||||
Enter the public HTTPS address with the assigned port, for example `https://piik.example.nyat.app:21080`. Leave off the room path. Piik adds it and the invitation credentials when you copy the link.
|
||||
|
||||
## Test from another network
|
||||
|
||||
Copy the **full invitation** from the room or show its QR code. Ask a friend to open it over cellular data. Entering the room and receiving a new chat message verifies the website and signaling path. Keep Piik and the tunnel running, start a share, then check picture and sound.
|
||||
|
||||
- **The site fails to load or the certificate is untrusted.** In SakuraFrp Launcher, open the tunnel log to see whether the tunnel started and loaded the certificate. Enter the hostname and public port from the log in Piik, then copy a fresh invitation. [SakuraFrp troubleshooting](https://doc.natfrp.com/faq/site-inaccessible.html)
|
||||
- **Chat works but the picture will not connect.** The web tunnel is working. Picture and sound use WebRTC. Try switching one device to a phone hotspot. [Media network checks](./network.md)
|
||||
|
||||
<details>
|
||||
<summary>Relay media through frp on a Server</summary>
|
||||
|
||||
Create a separate UDP tunnel and note the public IP and UDP port assigned by the provider. Keep the existing address for the web tunnel.
|
||||
|
||||
- **2.x Server.** Set both the tunnel's local port and `SFU_UDP_PORT` to its assigned public UDP port. Set `SFU_PUBLIC_IP` to the node's public IPv4 address. [2.x media forwarding settings](../operations/self-hosting.md#using-a-managed-frp-provider)
|
||||
- **3.0 Server.** Forward the tunnel to `PIIK_CHANNEL_UDP_PORT` and set `PIIK_CHANNEL_UDP_PUBLIC_ADDRESS` to the actual public `IP:port`. Enable `PIIK_CHANNEL_SERVICE_TRANSIT=true` on the Server, then let the room owner enable site forwarding in room settings.
|
||||
|
||||
</details>
|
||||
@@ -0,0 +1,57 @@
|
||||
# 用 frp 给 Piik 设置固定公网邀请
|
||||
|
||||
[English](./frp.md) · 简体中文 · [文档中心](./README.zh-CN.md)
|
||||
|
||||
用 frp 可以给家里的 Piik App 或内网里的 Piik Server 一个固定网址。只有运行 Piik 的一端需要配置,朋友用浏览器打开房间邀请即可。
|
||||
|
||||
| 要填到哪里 | 地址从哪里来 |
|
||||
| --- | --- |
|
||||
| frp 的本地目标 | Piik **网页服务**的本地 IP 和端口。本文以 `127.0.0.1:8787` 为例,樱花映射启动器和 Piik 运行在同一台机器上。 |
|
||||
| Piik 的公网地址 | 朋友能访问的 HTTPS 域名,包含服务商分配的公网端口,例如 `https://piik.example.nyat.app:21080`。请换成你的实际地址。 |
|
||||
|
||||
## 取得公网地址
|
||||
|
||||
下面用 **SakuraFrp(樱花映射)** 演示。有自己的 frps 或其他服务商时,让它把同一 HTTPS 地址下的网页和 WebSocket 转给 Piik 的本地 HTTP 服务,然后直接做下一节。[自建 frps 配置](../operations/self-hosting.zh-CN.md#可选通过-frp-转发已有服务)
|
||||
|
||||
1. 在运行 Piik 的电脑上打开樱花映射启动器。登录樱花账号,把管理面板「用户信息」里的访问密钥填进启动器。[启动器图文说明](https://doc.natfrp.com/launcher/usage.html)
|
||||
2. 在「隧道列表」创建 **TCP** 隧道,选择允许网页流量的节点。本地 IP 填 `127.0.0.1`,本地端口填 Piik 的网页端口。远程端口留空让平台分配,**自动 HTTPS** 选 **自动**。这样朋友用 HTTPS,本机 Piik 仍接收 HTTP。[网页隧道设置](https://doc.natfrp.com/app/http.html) · [自动 HTTPS](https://doc.natfrp.com/frpc/auto-https.html)
|
||||
3. 到管理面板的「子域绑定」申请一个 `nyat.app` 子域名,点「新建绑定」并选中刚建的隧道。启动或重启隧道,等日志显示已为该域名加载证书。把日志里的**域名和公网端口一起**复制,加上 `https://`,即为下节要填的地址。[子域绑定与证书图文说明](https://doc.natfrp.com/bestpractice/domain-bind.html)
|
||||
|
||||
## 让 Piik 生成正确的邀请
|
||||
|
||||
### 桌面 App
|
||||
|
||||
- 使用 **3.0 内测版**时,在 Piik 启动页选择 **公网邀请 → 使用已有地址**,填入隧道的公网 HTTPS 地址。在樱花映射的 TCP 隧道设置里,把 **本机转发目标** 显示的 IP 和端口分别填入对应字段。回到 Piik,点 **进入 Piik**。
|
||||
- 使用 **2.x 维护版**时,在解压后的 App 目录打开 PowerShell。先用 `.\piik-app.exe --help` 确认帮助中有 `public-origin`,再运行下面的命令,把示例 HTTPS 地址替换为隧道日志里的公网地址,把 `8787` 换成 TCP 隧道设置里的本地端口。正式版 v2.7.0 如需使用固定地址,可采用下方的 Server 方式。
|
||||
|
||||
```powershell
|
||||
.\piik-app.exe --link --public-origin https://piik.example.nyat.app:21080 --port 8787
|
||||
```
|
||||
|
||||
### 已部署的 Server
|
||||
|
||||
在现有服务配置中选用对应版本的设置,然后重启 Piik Server。容器部署请把 frp 指向宿主机上发布的 Piik 网页端口。
|
||||
|
||||
| 版本 | 本地网页端口 | 邀请使用的公网地址 |
|
||||
| --- | --- | --- |
|
||||
| 2.x Server | `PORT=8787` | `PUBLIC_BASE_URL=https://piik.example.nyat.app:21080` |
|
||||
| 3.0 Server | `PIIK_CHANNEL_PORT=8787` | `PIIK_CHANNEL_INVITATION_ORIGIN=https://piik.example.nyat.app:21080` |
|
||||
|
||||
填写公网 HTTPS 地址和分配的端口,例如 `https://piik.example.nyat.app:21080`。不用填房间路径;复制链接时,Piik 会自动加上房间路径和邀请凭证。
|
||||
|
||||
## 从外网验证
|
||||
|
||||
在 Piik 房间里复制**完整邀请链接**或显示二维码,让朋友用手机流量打开。能进入房间并收到一条新聊天消息,说明网页和信令已通。保持 Piik 与隧道运行,再开始分享,确认朋友能看到画面、听到声音。
|
||||
|
||||
- **打不开或提示证书不受信任**时,在樱花映射启动器打开隧道日志,查看启动结果和证书加载结果。把日志中的域名及公网端口填回 Piik,再复制一份邀请。[樱花映射排查](https://doc.natfrp.com/faq/site-inaccessible.html)
|
||||
- **聊天正常,画面连接不上**时,网页隧道已经工作。画面和声音另走 WebRTC,可以先让一方换用手机热点重试。[媒体网络排查](./network.zh-CN.md)
|
||||
|
||||
<details>
|
||||
<summary>Server 也需要通过 frp 中转媒体</summary>
|
||||
|
||||
另建一条 UDP 隧道,记录服务商分配的公网 IP 和 UDP 端口。网页隧道继续使用原来的地址。
|
||||
|
||||
- **2.x Server** 将隧道的本地端口和 `SFU_UDP_PORT` 都设为分配的公网 UDP 端口,`SFU_PUBLIC_IP` 填该节点的公网 IPv4。[2.x 媒体转发配置](../operations/self-hosting.zh-CN.md#使用托管-frp-服务)
|
||||
- **3.0 Server** 将隧道转发到 `PIIK_CHANNEL_UDP_PORT`,`PIIK_CHANNEL_UDP_PUBLIC_ADDRESS` 填实际的公网 `IP:端口`。服务端启用 `PIIK_CHANNEL_SERVICE_TRANSIT=true` 后,房主可在房间设置中开启 **允许站点转发**。
|
||||
|
||||
</details>
|
||||
@@ -1,62 +1,59 @@
|
||||
# Your first Piik room
|
||||
|
||||
English · [简体中文](./getting-started.zh-CN.md) · [Back to Piik](../../README.md)
|
||||
English · [简体中文](./getting-started.zh-CN.md) · [Documentation](./README.md)
|
||||
|
||||
Piik lets one Host share with up to 20 invited Viewers. Choose your starting point:
|
||||
|
||||
| You want to… | Start here |
|
||||
| --- | --- |
|
||||
| Watch a friend | [Open their invitation](#join-a-friends-room). No installation. |
|
||||
| Share with friends elsewhere | [Piik App → Public invite](#share-with-piik-app). Keep App running. |
|
||||
| Share without installing | [Piik online](#use-piik-online), in your browser. |
|
||||
| Use your group's site | [Open that site](#share-from-an-existing-site); App capture is optional. |
|
||||
|
||||

|
||||
- [Watch a friend’s screen](#join-a-friends-room)
|
||||
- [Share from your browser](#share-your-screen-in-a-browser) or [share with Piik App](#share-with-piik-app)
|
||||
|
||||
## Join a friend's room
|
||||
|
||||
1. Open the invitation link your friend sent in a desktop or mobile browser.
|
||||
2. Wait for their screen to appear. If the browser blocks autoplay, press **Play**.
|
||||
3. Move the pointer over the picture or tap it to show the playback bar.
|
||||
1. Open the invitation link your friend sent in a browser on your phone or computer. You can watch without installing Piik App or creating an account.
|
||||
2. If Piik asks for a **Site passphrase** as soon as you open the link, ask your friend for the passphrase for that site. If the room shows **Enter room password**, select it, enter the password for that room and select **Join**. An invitation with **Skip passwords** takes you straight to the room.
|
||||
3. If you see a **Play** button on your friend’s picture, select it. Tap the picture or move your pointer over it for [playback controls](./sharing.md#playback-controls).
|
||||
|
||||
The playback bar controls only your own picture and sound.
|
||||
See [playback controls](./sharing.md#playback-controls) for fullscreen, display and sound options.
|
||||
If you received only a four-digit room code, ask your friend for their Piik site address. Open that address, enter the **Site passphrase** if prompted, then select **Join a room**. Enter the four digits and select the arrow. If the room requires a password, ask your friend for it. For an invitation-only room, ask for the full invitation link.
|
||||
|
||||
Only have a four-digit code? Open the same Piik site and select **Join a room**.
|
||||
Enter the site passphrase or room password if asked. If code entry is unavailable
|
||||
or an old link fails, ask the Host for their current invitation.
|
||||

|
||||

|
||||
|
||||
Each App's Local room or Public invite creates a separate site, so your friend's
|
||||
code does not work on your own App page. Open their full invitation instead;
|
||||
you do not need to create a room in your App to watch them.
|
||||

|
||||

|
||||
|
||||
## Use Piik online
|
||||
[Get help joining or watching](./troubleshooting.md#common-problems).
|
||||
|
||||
1. Open [demo.piik.tv](https://demo.piik.tv) in your browser.
|
||||
2. Select **Start sharing**, then **Browser** for a screen, window or tab, or
|
||||
**Camera** where your computer or phone browser supports it. Enable source
|
||||
audio if the picker offers it.
|
||||
3. Confirm the preview and select **Copy invite link**. Open that link on a
|
||||
second device or send it to a friend.
|
||||
4. Select **Stop sharing** when finished.
|
||||
<a id="use-piik-online"></a>
|
||||
|
||||
The online version is provided by the project. Media travels only between participants (P2P);
|
||||
restrictive networks may load the page but block video.
|
||||
## Share your screen in a browser
|
||||
|
||||
1. Open [demo.piik.tv](https://demo.piik.tv) in your browser. You can share without an account or download.
|
||||
2. Select **Start sharing**. Choose **Browser** to share a screen, window, or tab, or **Camera** to share your camera. Pick what you want viewers to see and enable audio if the picker offers it.
|
||||
3. When your picture appears, select **Copy** under **Admission** and send the invitation to your friends. If a friend is nearby, open the **QR code** beside the link for them to scan.
|
||||
4. Keep the sharing tab open while friends watch. Select **Stop sharing** when you’re done.
|
||||
|
||||
For iPhone or iPad, see [screen sharing in Safari](./sharing.md#iphone-and-ipad-screen-sharing). If you can’t start sharing, see [sharing troubleshooting](./troubleshooting.md#starting-a-share).
|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
## Share with Piik App
|
||||
|
||||
On iPhone or iPad, [use Piik in Safari](#share-your-screen-in-a-browser).
|
||||
|
||||
1. Download **Piik App** for your platform from
|
||||
[GitHub Releases](https://github.com/TNTcraftHIM/Piik/releases) or the
|
||||
[AtomGit mirror](https://atomgit.com/TNTcraftHIM/Piik/releases). On phones and tablets,
|
||||
[AtomGit mirror](https://atomgit.com/TNTcraftHIM/Piik/releases). On Android phones and tablets,
|
||||
install the APK directly. On a computer,
|
||||
extract the whole archive and keep its directory structure intact.
|
||||
2. Open `piik-app.exe` on Windows, `Piik App.app` on macOS, or `./piik-app` on Linux.
|
||||
On phones and tablets, open Piik after installation. The launcher opens in your system browser.
|
||||
On Android phones and tablets, open Piik after installation. The launcher opens in your system browser.
|
||||
3. Choose **Public invite** for friends outside your local network, then select
|
||||
**Open Piik**. Other modes are explained below.
|
||||
4. Choose **Start sharing**, then select **Browser**, **Camera**, **Apps / Windows**, or
|
||||
**Screens** as available. Pick the actual source and sound option.
|
||||
5. Copy and send the room invitation. Keep both the App and sharing tab open.
|
||||
**Screens** as available. Choose what friends should see and turn on sound if you want them to hear it.
|
||||
5. Select **Copy** beside the invitation link and send it to your friends. Keep both the App and sharing tab open.
|
||||
|
||||

|
||||

|
||||
@@ -93,9 +90,7 @@ See the [App guide](../../cmd/piik-app/README.md) for package and runtime detail
|
||||
|
||||
For Local room and Public invite, expand **Site passphrase** to set an optional
|
||||
access passphrase.
|
||||
Local invitations use HTTPS. On first access, confirm the local certificate
|
||||
against the Host's App terminal before continuing; see the
|
||||
[certificate guide](./troubleshooting.md#local-https-certificate-warning).
|
||||
If your browser shows a warning, check with the host before opening the local invitation. [How to check a local invitation](./troubleshooting.md#local-https-certificate-warning)
|
||||
|
||||
<details>
|
||||
<summary>Return to the launcher or change mode</summary>
|
||||
@@ -141,7 +136,7 @@ To run your own site, follow [self-hosting](../operations/self-hosting.md).
|
||||
2. Choose **Start sharing**, then **Browser** to select a screen, window or tab,
|
||||
or **Camera** where your computer or phone browser supports it.
|
||||
Enable source audio if the picker offers it.
|
||||
3. Check the preview, then choose **Copy invite link** and send it to your friends.
|
||||
3. When the preview shows your picture, select **Copy** under **Admission** and send the invitation to your friends.
|
||||
4. Keep the sharing tab open. Use **Pause sharing**, **Switch source**, or
|
||||
**Stop sharing** when you need them.
|
||||
|
||||
@@ -151,8 +146,8 @@ Invitation links grant access to that room; share them with the people you want
|
||||
|
||||
To use App capture on that same site, follow [Use App with an existing site](#use-app-with-an-existing-site).
|
||||
The site manages rooms and invitations; the App supplies native capture.
|
||||
If its operator has enabled SFU forwarding, turn off **Privacy mode** before
|
||||
sharing to allow that fallback. The project's online site uses P2P only.
|
||||
If the site can relay video for viewers who cannot connect directly, turn off **Privacy mode** before
|
||||
sharing to allow that option.
|
||||
|
||||
## Next steps
|
||||
|
||||
|
||||
@@ -1,57 +1,58 @@
|
||||
# 第一次用 Piik
|
||||
|
||||
[English](./getting-started.md) · 简体中文 · [回到 Piik](../../README.zh-CN.md)
|
||||
[English](./getting-started.md) · 简体中文 · [文档中心](./README.zh-CN.md)
|
||||
|
||||
Piik 支持一位房主分享屏幕,最多 20 位受邀观众观看。先选适合你的入口:
|
||||
|
||||
| 你想做什么 | 从这里开始 |
|
||||
| --- | --- |
|
||||
| 看朋友的画面 | [打开对方的邀请](#加入朋友的房间),不必安装。 |
|
||||
| 分享给其他网络的朋友 | [Piik App → 公网邀请](#用-piik-app-分享),保持 App 运行。 |
|
||||
| 免安装分享 | 在浏览器里[使用在线版](#使用在线版)。 |
|
||||
| 使用你们自己的站点 | [打开已有站点](#使用已有站点分享),按需连接 App 采集。 |
|
||||
|
||||

|
||||
- [观看朋友的分享](#加入朋友的房间)
|
||||
- [用浏览器分享](#用浏览器分享屏幕)或[用 Piik App 分享](#用-piik-app-分享)
|
||||
|
||||
## 加入朋友的房间
|
||||
|
||||
1. 用电脑或手机浏览器打开朋友发来的邀请链接。
|
||||
2. 等待画面出现。如果浏览器没有自动播放,点击 **播放**。
|
||||
3. 将鼠标移到画面上,或轻点画面,显示播放控制栏。
|
||||
1. 用手机或电脑的浏览器打开朋友发来的邀请链接。观看无需安装 Piik App,也无需注册。
|
||||
2. 如果打开链接就看到 **站点口令**,请向朋友索取这个站点的口令。如果房间显示 **输入房间密码**,点击按钮,填入这个房间的密码,再点击 **加入**。朋友发来的是 **免密邀请** 时,打开链接即可进房。
|
||||
3. 如果朋友的画面上有 **播放** 按钮,点击它。轻点画面或将鼠标移到画面上,可以打开[播放控制栏](./sharing.zh-CN.md#播放控制)。
|
||||
|
||||
播放控制栏只改变你自己看到的画面和听到的声音。
|
||||
全屏、画面显示与音量选项见[播放控制](./sharing.zh-CN.md#播放控制)。
|
||||
如果朋友只发了四位房间号,先问对方要 Piik 站点地址。打开该地址,按提示输入 **站点口令**,再点击 **加入房间**,填入四位房间号并点击箭头。如果提示输入房间密码,向朋友索取密码;如果房间只接受邀请,请朋友发完整邀请链接。
|
||||
|
||||
只有四位房间号时,打开同一个 Piik 站点,选择 **加入房间**,按需输入站点口令或房间密码。
|
||||
无法通过房间号加入,或旧链接失效时,请房主发送当前邀请。
|
||||

|
||||

|
||||
|
||||
各自用 App 创建的本地房间/公网邀请属于不同站点,不能在自己的 App 页面输入对方的房间号。
|
||||
加入朋友时,直接打开对方的完整邀请链接即可,不必在自己的 App 中创建房间。
|
||||

|
||||

|
||||
|
||||
## 使用在线版
|
||||
[加入或观看遇到问题](./troubleshooting.zh-CN.md#常见问题)。
|
||||
|
||||
1. 在浏览器中打开 [demo.piik.tv](https://demo.piik.tv)。
|
||||
2. 点击 **开始分享**,选择 **浏览器** 分享屏幕、窗口或标签页;也可在电脑或手机上选择
|
||||
**摄像头**(需浏览器支持访问)。如需来源声音且选择器提供该选项,启用音频。
|
||||
3. 确认预览后,点击 **复制邀请链接**,用另一台设备打开,或发送给朋友。
|
||||
4. 分享结束后,点击 **停止分享**。
|
||||
<a id="使用在线版"></a>
|
||||
|
||||
在线版由项目提供,画面仅通过设备间直连(P2P)传输。
|
||||
在受限网络下,可能出现页面能打开、画面无法连接的情况。
|
||||
## 用浏览器分享屏幕
|
||||
|
||||
1. 用浏览器打开 [demo.piik.tv](https://demo.piik.tv)。无需注册或下载就能分享。
|
||||
2. 点击 **开始分享**。选择 **浏览器** 可以分享屏幕、窗口或标签页,选择 **摄像头** 可以分享镜头画面。选好要分享的画面,如果选择器提供音频选项,可按需开启。
|
||||
3. 预览出现画面后,在 **准入方式** 里点 **复制**,把邀请链接发给朋友。朋友在旁边时,可以点链接旁的 **二维码** 让对方扫码。
|
||||
4. 朋友观看时,保持分享标签页打开。结束时点击 **停止分享**。
|
||||
|
||||
使用 iPhone 或 iPad 时,请查看 [Safari 屏幕分享说明](./sharing.zh-CN.md#iphone-与-ipad-屏幕分享)。如果无法开始分享,请查看[分享问题排查](./troubleshooting.zh-CN.md#开始分享)。
|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
## 用 Piik App 分享
|
||||
|
||||
使用 iPhone 或 iPad 时,请在 [Safari 中使用在线版](#用浏览器分享屏幕)。
|
||||
|
||||
1. 从 [GitHub Releases](https://github.com/TNTcraftHIM/Piik/releases) 或
|
||||
[AtomGit 镜像](https://atomgit.com/TNTcraftHIM/Piik/releases)下载以 **`piik-app`** 开头、
|
||||
对应平台的程序包。手机或平板安装 App;直接安装 APK。
|
||||
对应平台的程序包。安卓手机或平板直接安装 APK。
|
||||
桌面端完整解压并保留目录结构。
|
||||
2. Windows 打开 `piik-app.exe`,macOS 打开 `Piik App.app`,Linux 运行 `./piik-app`。
|
||||
手机或平板安装后打开 Piik。启动页会在系统浏览器里打开。
|
||||
安卓手机或平板安装后打开 Piik。启动页会在系统浏览器里打开。
|
||||
3. 邀请不在同一局域网的朋友时,选择 **公网邀请**,再点击 **进入 Piik**。
|
||||
其他模式的用途见下方说明。
|
||||
4. 点击 **开始分享**,按可用选项选择 **浏览器**、**摄像头**、**程序 / 窗口** 或 **屏幕**,
|
||||
然后选定要分享的画面与声音。
|
||||
5. 复制房间邀请发给朋友。分享期间保持 App 和分享标签页打开。
|
||||
选好要分享的画面。想让朋友听到声音时,可按需开启声音选项。
|
||||
5. 点击邀请链接旁的 **复制**,把邀请链接发给朋友。分享期间保持 App 和分享标签页打开。
|
||||
|
||||

|
||||

|
||||
@@ -85,8 +86,7 @@ Linux 原生采集还需要[系统组件](../../native/capture/linux/README.md)
|
||||
多网卡时,可展开 **局域网邀请地址**,选择朋友所在的网络。
|
||||
|
||||
本地房间和公网邀请可展开 **站点口令** 设置可选的访问口令。
|
||||
本地邀请使用 HTTPS;首次访问时,先与房主的 App 终端核对本地证书,再继续进入,
|
||||
操作见[证书确认说明](./troubleshooting.zh-CN.md#本地-https-证书提示)。
|
||||
如果浏览器弹出警告,请先向房主确认本地邀请再继续。[如何确认本地邀请](./troubleshooting.zh-CN.md#本地-https-证书提示)
|
||||
|
||||
<details>
|
||||
<summary>回到启动页或更换模式</summary>
|
||||
@@ -125,7 +125,7 @@ App 与站点需要使用同一大版本,**2.x 与 1.x 不能混用**。
|
||||
1. 打开 Piik 站点。如果站点设置了口令,先输入口令。
|
||||
2. 点击 **开始分享**,选择 **浏览器** 后在浏览器弹窗里选择屏幕、窗口或标签页;
|
||||
浏览器支持时,电脑和手机也可选择 **摄像头**。如需来源声音且选择器提供该选项,启用音频。
|
||||
3. 确认预览画面后,点击 **复制邀请链接** 发给朋友。
|
||||
3. 预览出现画面后,点击邀请链接旁的 **复制**,把邀请链接发给朋友。
|
||||
4. 保持分享标签页打开。需要时使用 **暂停分享**、**切换来源** 或 **停止分享**。
|
||||
|
||||
浏览器屏幕采集需要 HTTPS 站点或 `localhost`。
|
||||
@@ -134,8 +134,7 @@ App 与站点需要使用同一大版本,**2.x 与 1.x 不能混用**。
|
||||
|
||||
想在同一站点使用 App 采集,可按[通过已有站点使用 App](#通过已有站点使用-app)的步骤操作。
|
||||
站点负责房间与邀请,App 提供原生采集。
|
||||
如果管理员已启用 SFU 转发,房主可在开始分享前关闭 **隐私模式**,允许使用这条兜底线路。
|
||||
项目提供的在线版仅使用 P2P。
|
||||
如果站点能为无法直连的观众转发画面,房主可在开始分享前关闭 **隐私模式** 来允许转发。
|
||||
|
||||
## 接下来可以做什么
|
||||
|
||||
|
||||
@@ -2,47 +2,46 @@
|
||||
|
||||
English · [简体中文](./network.zh-CN.md) · [Troubleshooting](./troubleshooting.md)
|
||||
|
||||
Use this page when **the page opens, but picture or voice will not connect**.
|
||||
Choose the relevant check:
|
||||
If you can open the room but can’t see your friend’s stream, see [No picture after joining a room](./no-media-route.md). If you have already tried another browser or network, choose the situation that matches yours.
|
||||
|
||||
- **Campus/work network, or the same invite works on a hotspot:** [connection options](#campus-networks-and-strict-nat).
|
||||
- **The same invite works in another browser:** [browser restrictions](#browser-webrtc-restrictions).
|
||||
- **The same invitation works on a hotspot.** [What to do when your usual network blocks the stream](#campus-networks-and-strict-nat)
|
||||
- **Friends in another location cannot reach your local invitation:** [connect through a virtual LAN](#optional-a-virtual-lan).
|
||||
- **Logs mention STUN, or you manage the router:** [discovery and router checks](#stun-ipv6-and-router-checks).
|
||||
- **Using Tailscale, ZeroTier or UU:** [virtual LAN steps](#optional-a-virtual-lan).
|
||||
|
||||
Web pages and chat use a separate connection from picture and sound.
|
||||
For media failures, check WebRTC UDP and the route options below.
|
||||
If a [public-invitation page will not open](./troubleshooting.md#public-invitation-fails-or-shows-1033)
|
||||
or [video plays but blurs or stutters](./troubleshooting.md#the-picture-is-blurry-or-keeps-freezing), follow that symptom instead.
|
||||
|
||||
Web pages and chat use a separate connection from picture and sound:
|
||||
|
||||

|
||||
|
||||
If the [invitation page will not open](./troubleshooting.md#public-invitation-fails-or-shows-1033),
|
||||
or [video already plays but blurs or stutters](./troubleshooting.md#picture-blurs-stutters-or-stops), start with that symptom instead.
|
||||
|
||||
## Campus networks and strict NAT
|
||||
|
||||
**Open the same invitation on a phone hotspot first.** If it works there but not
|
||||
on the original network, investigate that network's shared gateway or firewall.
|
||||
**For a public invitation, try opening the same link on a phone hotspot.** If you can watch there, keep using the hotspot or ask the person who manages your usual network for help.
|
||||
|
||||
For regular use, choose an option that fits your group:
|
||||
|
||||
- **You have a Piik site:** ask its operator to [enable server media forwarding (SFU)](../operations/self-hosting.md#optional-media-fallback). The Host turns off **Privacy mode** so forwarding can be tried if direct connections fail. For App capture, [approve the new site](./getting-started.md#use-app-with-an-existing-site), then send its invitation.
|
||||
- **Everyone can install a networking tool:** use the [virtual LAN steps](#optional-a-virtual-lan) below with the App's **Local room**.
|
||||
- **The required connections are blocked:** use an available network or ask its administrator to review access.
|
||||
- **You have a Piik site:** ask its operator to confirm that picture and sound forwarding is enabled. The Host turns off **Privacy mode** on that site, starts sharing, and sends the new room invitation. Piik can try forwarding through the site if a direct connection fails. [Site setup](../operations/self-hosting.md#optional-media-fallback) · [Use the App with an existing site](./getting-started.md#use-app-with-an-existing-site)
|
||||
- **No usable forwarding site, and direct media still will not connect:** a [virtual LAN](#optional-a-virtual-lan) offers another path. Everyone joins the same virtual network, then uses the App's **Local room**.
|
||||
|
||||
> **Media requires UDP.** `demo.piik.tv` and App **Public invite** use P2P-only media.
|
||||
> SFU forwarding requires a site with that feature enabled and a reachable UDP endpoint.
|
||||
<details>
|
||||
<summary>For site administrators · Media forwarding</summary>
|
||||
|
||||
**Media requires UDP.** `demo.piik.tv` and App **Public invite** use P2P-only media.
|
||||
SFU forwarding requires a site with that feature enabled and a reachable UDP endpoint.
|
||||
|
||||
</details>
|
||||
|
||||
## Browser WebRTC restrictions
|
||||
|
||||
Browser WebRTC settings, VPNs and privacy extensions can block media UDP,
|
||||
including the browser-to-App connection on the same computer.
|
||||
|
||||
1. Open the same invitation in a browser profile with default settings and no relevant privacy extensions.
|
||||
2. If it works, check **WebRTC** or **IP-leak protection** in the original browser and restore a policy that allows WebRTC UDP.
|
||||
3. Reload Piik and retry sharing or viewing. School/company-managed settings need an administrator's review.
|
||||
1. Open the same invitation in another browser. If the picture appears, you can keep watching there.
|
||||
2. To keep using your original browser, try a fresh profile with default settings. If that works, check the privacy extensions in your original profile. If neither browser shows the picture, try a public invitation on a phone hotspot. For a local invitation, keep both devices on the same LAN or virtual LAN.
|
||||
|
||||
<details>
|
||||
<summary>Chrome / Vivaldi settings</summary>
|
||||
<summary>Advanced · Chrome and Vivaldi privacy settings</summary>
|
||||
|
||||
Browser or VPN policies can block picture connections, including capture through App on the same computer. Check **WebRTC** or **IP-leak protection** in the original profile. For a school or work device, ask the administrator.
|
||||
|
||||
`disable_non_proxied_udp` restricts UDP that does not use a proxy. Compare with
|
||||
the browser default. Chrome extensions may control this policy without a visible
|
||||
@@ -102,10 +101,7 @@ and [double NAT](https://www.tp-link.com/us/support/faq/3113/).
|
||||
|
||||
## Optional: a virtual LAN
|
||||
|
||||
A virtual LAN connects devices in different places, so you can share through
|
||||
Piik App's **Local room**. The tool must provide reachable virtual IPv4 addresses
|
||||
and carry both web traffic and WebRTC UDP; acceleration limited to one game does
|
||||
not suffice. Choose a tool available to everyone in your group:
|
||||
Friends in different places can use a virtual LAN to connect their devices and share with Piik App’s **Local room**. Choose a tool with a LAN networking mode that everyone can join.
|
||||
|
||||
- **[Tailscale](https://tailscale.com/docs/how-to/quickstart):** install it on each device and invite friends to the same private network (*tailnet*). In Piik, select the Host's Tailscale IPv4 address (`100.x.y.z`).
|
||||
- **[ZeroTier](https://docs.zerotier.com/quickstart/):** join the same network ID on each device, then authorize those devices in its management console. In Piik, select the Host's assigned virtual IPv4 address.
|
||||
@@ -114,25 +110,22 @@ not suffice. Choose a tool available to everyone in your group:
|
||||

|
||||
|
||||
1. **Join the same network.** The Host and friends run the tool and join the same virtual LAN.
|
||||
2. **Host selects its address.** In the updated Piik App, choose **Local room**, expand **Local invitation address**, select the tool's virtual IP, then enter the room and share.
|
||||
3. **Send the complete invitation.** Friends open the HTTPS invitation on that virtual IP. On first access, [confirm the local certificate](./troubleshooting.md#local-https-certificate-warning) with the Host before entering. Do not send `localhost` or only a room code.
|
||||
4. **Check picture and sound.** Everyone keeps the networking tool running; the Host also keeps Piik App running. If the virtual IP changes, the Host selects the new address and sends a new invitation.
|
||||
2. **The Host chooses an address in Piik.** Find your own device’s IPv4 address in the networking tool. Open Piik App, choose **Local room**, expand **Local invitation address**, and select the matching address. Enter the room and start sharing. The example below uses `192.0.2.30`.
|
||||
|
||||

|
||||

|
||||
|
||||
3. **Send the complete invitation.** The Host copies the full HTTPS invitation from Piik and sends it to friends. The link should contain the virtual IPv4 address just selected. Friends open the link and confirm the certificate with the Host before entering for the first time. [Confirm the local certificate](./troubleshooting.md#local-https-certificate-warning)
|
||||
4. **Ask a friend to try it.** They should see the shared picture and hear any sound the Host chose to share. Everyone keeps the networking tool running, and the Host keeps Piik App open. If the virtual IP changes, the Host selects the new address and sends a new invitation.
|
||||
|
||||
If something fails, start with the first failing step:
|
||||
|
||||
- **Page will not open:** check [local invitations and firewall permissions](./troubleshooting.md#local-invitation-will-not-open) for that virtual network.
|
||||
- **Page opens, media will not connect:** check that the tool carries media UDP and review [browser WebRTC settings](#browser-webrtc-restrictions).
|
||||
- **The page opens but the picture won’t play.** The virtual LAN needs to carry both web traffic and UDP between devices. Check that everyone joined using the tool’s general LAN mode, then check [WebRTC settings in the browser](#browser-webrtc-restrictions).
|
||||
- **Microphone or remote control is unavailable:** use the App-generated HTTPS invitation, confirm its certificate, then check [browser permissions](./troubleshooting.md#microphone-or-remote-controls-are-unavailable). Supporting browsers can use these features without a public tunnel, just as on an ordinary LAN.
|
||||
|
||||
Join only with trusted friends.
|
||||
|
||||
<details>
|
||||
<summary>Use frp with an existing server</summary>
|
||||
|
||||
For administrators with a public server, the [frp recipe](../operations/self-hosting.md#optional-forward-an-existing-server-with-frp)
|
||||
forwards an existing site's web and SFU endpoints through frps. Configure both
|
||||
web and media forwarding.
|
||||
|
||||
</details>
|
||||
To give an App or Server a fixed public invitation address, use a managed or self-hosted tunnel. [frp and SakuraFrp guide](./frp.md)
|
||||
|
||||
If the issue persists, [collect reports](./troubleshooting.md#reporting-a-problem) from the same attempt.
|
||||
@@ -2,43 +2,45 @@
|
||||
|
||||
[English](./network.md) · 简体中文 · [问题排查](./troubleshooting.zh-CN.md)
|
||||
|
||||
本页用于排查 **网页能打开,但画面或语音连接不上**。按你的情况选择:
|
||||
房间能打开,但看不到朋友分享的画面?从[进房后没画面](./no-media-route.zh-CN.md)开始。如果你已经试过其他浏览器或网络,可以直接选对应的情况。
|
||||
|
||||
- **校园网、公司网络,或换成热点就能看:** [选择连接方案](#校园网或严格-nat)。
|
||||
- **同一邀请在别的浏览器里正常:** [检查浏览器限制](#浏览器限制了-webrtc)。
|
||||
- **换成热点就能看。** [原来的网络连不上时怎么办](#校园网或严格-nat)
|
||||
- **异地朋友打不开你的本地邀请:** [通过虚拟局域网连接](#可选虚拟局域网)。
|
||||
- **日志提到 STUN,或准备检查自家路由器:** [地址发现与路由器](#stunipv6-与路由器检查)。
|
||||
- **准备使用 UU、Tailscale 或 ZeroTier:** [虚拟局域网使用步骤](#可选虚拟局域网)。
|
||||
|
||||
网页与聊天、画面与声音使用不同的连接。媒体连接失败时,检查 WebRTC UDP 和下方的连接方案。
|
||||
如果是[公网邀请网页打不开](./troubleshooting.zh-CN.md#公网邀请创建失败或出现-1033),或[有画面但模糊、卡顿](./troubleshooting.zh-CN.md#画面模糊卡顿或中断),先按对应症状排查。
|
||||
|
||||
网页与聊天、画面与声音使用不同的连接:
|
||||
|
||||

|
||||
|
||||
如果是[邀请网页打不开](./troubleshooting.zh-CN.md#公网邀请创建失败或出现-1033),或[画面已经出现但模糊、卡顿](./troubleshooting.zh-CN.md#画面模糊卡顿或中断),先按对应症状排查。
|
||||
|
||||
## 校园网或严格 NAT
|
||||
|
||||
**先用手机热点打开同一邀请。** 热点能看、原网络不能看时,原网络的共享出口或防火墙限制更值得检查。
|
||||
**如果用的是公网邀请,先换手机热点打开同一链接。** 如果能看,可以继续用热点,也可以请管理原来网络的人帮忙。
|
||||
|
||||
需要长期使用时,可以选择以下方案:
|
||||
|
||||
- **有可用的 Piik 站点:** 请管理员[启用服务器媒体转发(SFU)](../operations/self-hosting.zh-CN.md#可选启用媒体兜底),房主关闭 **隐私模式**,直连失败时即可尝试转发。使用 App 采集时,[授权新站点](./getting-started.zh-CN.md#通过已有站点使用-app),再发送该站点的邀请。
|
||||
- **朋友们可以安装组网工具:** 按下方[虚拟局域网步骤](#可选虚拟局域网),通过 App 的 **本地房间** 分享。
|
||||
- **所需的连接被网络阻断:** 换用可用网络,或请网络管理员检查放行。
|
||||
- **有可用的 Piik 站点:** 请管理员确认站点已开启画面和声音转发。房主在该站点关闭 **隐私模式** 后开始分享,再把新房间的邀请发给观众。直连失败时,Piik 会尝试通过站点转发。[管理员设置](../operations/self-hosting.zh-CN.md#可选启用媒体兜底) · [用 App 在已有站点分享](./getting-started.zh-CN.md#通过已有站点使用-app)
|
||||
- **没有可用的转发站点,直连仍然失败:** 可尝试[虚拟局域网](#可选虚拟局域网)。朋友们加入同一个虚拟网络,再通过 App 的 **本地房间** 分享。
|
||||
|
||||
> **媒体需要 UDP。** `demo.piik.tv` 和 App 的 **公网邀请** 使用纯 P2P。
|
||||
> 服务器转发需要站点启用 SFU,并且 UDP 端点可达。
|
||||
<details>
|
||||
<summary>站点管理员可选读 · 转发画面和声音</summary>
|
||||
|
||||
**媒体需要 UDP。** `demo.piik.tv` 和 App 的 **公网邀请** 使用纯 P2P。
|
||||
服务器转发需要站点启用 SFU,并且 UDP 端点可达。
|
||||
|
||||
</details>
|
||||
|
||||
## 浏览器限制了 WebRTC
|
||||
|
||||
浏览器的 WebRTC 设置、VPN 或隐私扩展可能阻止媒体 UDP,
|
||||
包括同一台电脑上的浏览器与 App 之间的连接。
|
||||
|
||||
1. 用默认设置、未启用相关隐私扩展的浏览器打开同一邀请,对照能否观看。
|
||||
2. 如果新配置可以观看,检查原浏览器中的 **WebRTC** 或 **IP 泄露保护** 选项,恢复允许 WebRTC UDP 的策略。
|
||||
3. 修改后刷新 Piik 页面,再尝试分享或观看。学校或公司统一管理的策略需由管理员调整。
|
||||
1. 用另一款浏览器打开同一邀请。如果那里能看到画面,可以直接用它观看。
|
||||
2. 想继续使用原浏览器,可以先用默认设置的新浏览器配置打开邀请。如果能看,检查原配置的隐私扩展。如果两款浏览器都看不到,公网邀请可以换手机热点再试。本地邀请需要让两台设备都留在同一个局域网或虚拟局域网内。
|
||||
|
||||
<details>
|
||||
<summary>Chrome / Vivaldi 设置</summary>
|
||||
<summary>进阶 · Chrome 或 Vivaldi 的隐私设置</summary>
|
||||
|
||||
浏览器或 VPN 的 WebRTC 策略可能阻止画面连接,也可能影响同一台电脑上的 App 采集。检查原配置中的 **WebRTC** 或 **IP 泄露保护**。学校或公司统一管理的设备,请联系管理员。
|
||||
|
||||
`disable_non_proxied_udp` 表示限制未经代理的 UDP,可先与浏览器默认策略对照。
|
||||
Chrome 的扩展可能控制此策略,即使浏览器没有显式开关。
|
||||
@@ -89,9 +91,7 @@ STUN 服务会接收到参与者的公网 IP,请选择信任的服务。
|
||||
|
||||
## 可选:虚拟局域网
|
||||
|
||||
虚拟局域网让异地设备像在同一网络中一样互访,再通过 Piik App 的 **本地房间** 分享。
|
||||
工具必须提供可互访的虚拟 IPv4 地址,同时支持网页访问和 WebRTC UDP;只加速某个游戏的功能不适用。
|
||||
选择朋友们都能使用的工具即可:
|
||||
朋友在外地,也可以用组网工具把设备连到同一个虚拟局域网,再用 Piik App 的 **本地房间** 分享。选择支持局域网组网的工具,让朋友也加入同一个网络。
|
||||
|
||||
- **[UU](https://uu.163.com/blog/lan-multiplayer-guide-net.html):** 使用通用局域网组网入口,加入同一房间。在 Piik 中选择房主的 UU 虚拟 IPv4 地址。
|
||||
- **[Tailscale](https://tailscale.com/docs/how-to/quickstart)(英文教程):** 各设备安装后,邀请朋友加入同一个私有网络(tailnet)。在 Piik 中选择房主的 Tailscale IPv4 地址(`100.x.y.z`)。
|
||||
@@ -100,24 +100,22 @@ STUN 服务会接收到参与者的公网 IP,请选择信任的服务。
|
||||

|
||||
|
||||
1. **加入同一网络。** 房主和朋友都运行组网工具,进入同一个虚拟局域网。
|
||||
2. **房主选择虚拟地址。** 在新版 Piik App 选择 **本地房间**,展开 **局域网邀请地址**,选择组网工具提供的 IP,然后进入房间并分享。
|
||||
3. **发送完整邀请。** 朋友打开该虚拟 IP 下的 HTTPS 邀请,首次访问先与房主[核对本地证书](./troubleshooting.zh-CN.md#本地-https-证书提示),再进入房间。不要发送 `localhost` 地址或只发房间号。
|
||||
4. **确认画面和声音。** 所有设备保持组网工具运行,房主同时保持 Piik App 运行。虚拟 IP 变化后,房主需重新选择地址并发送新邀请。
|
||||
2. **房主在 Piik 里选地址。** 在组网工具里查看自己这台设备的 IPv4 地址。打开 Piik App,选 **本地房间**,展开 **局域网邀请地址**,在列表里选中相同的地址,然后进房开播。下图的示例地址是 `192.0.2.30`。
|
||||
|
||||

|
||||

|
||||
|
||||
3. **发送完整邀请。** 房主复制 Piik 生成的完整 HTTPS 邀请发给朋友。链接里应包含刚选的虚拟 IPv4 地址。朋友打开链接,首次访问时先和房主核对证书,再进入房间。[核对本地证书](./troubleshooting.zh-CN.md#本地-https-证书提示)
|
||||
4. **请朋友试播。** 请朋友确认能看到正在分享的画面。如果房主开启了声音分享,也应能听到声音。观看期间,双方都保持组网工具运行,房主还需保持 Piik App 运行。虚拟 IP 变化后,房主重新选地址,再发新邀请。
|
||||
|
||||
遇到问题时,按最先失败的一步检查:
|
||||
|
||||
- **网页打不开:** 先查[本地邀请与防火墙](./troubleshooting.zh-CN.md#本地邀请打不开),确认 Piik 可通过该虚拟网络访问。
|
||||
- **网页能开,画面连不上:** 检查工具是否传输媒体 UDP,以及[浏览器 WebRTC 设置](#浏览器限制了-webrtc)。
|
||||
- **网页能开,画面连不上。** 组网工具需要同时支持网页访问和设备之间的 UDP 通信。请确认双方都开了通用的局域网组网功能,再检查[浏览器的 WebRTC 设置](#浏览器限制了-webrtc)。
|
||||
- **不能开麦或远控:** 使用 App 生成的 HTTPS 邀请,确认证书,再查[浏览器权限](./troubleshooting.zh-CN.md#无法使用麦克风或远程控制)。支持的浏览器无需公网隧道即可使用这些功能,普通局域网同样适用。
|
||||
|
||||
仅与信任的朋友组网。
|
||||
|
||||
<details>
|
||||
<summary>通过 frp 转发已有服务器</summary>
|
||||
|
||||
有公网服务器的管理员可按 [frp 教程](../operations/self-hosting.zh-CN.md#可选通过-frp-转发已有服务),
|
||||
通过 frps 转发已有站点的网页和 SFU 端点,需同时配置网页与媒体转发。
|
||||
|
||||
</details>
|
||||
如果需要 App 或 Server 的固定公网邀请地址,可用现有 frp 服务或自建隧道。[frp 与樱花映射教程](./frp.zh-CN.md)
|
||||
|
||||
仍有问题时,请按[反馈说明](./troubleshooting.zh-CN.md#反馈问题)收集同一次尝试的报告。
|
||||
@@ -0,0 +1,31 @@
|
||||
# No picture after joining a room
|
||||
|
||||
English · [简体中文](./no-media-route.zh-CN.md)
|
||||
|
||||
<a id="no-picture-after-joining-a-room-no-media-route-available"></a>
|
||||
|
||||
## No media route available
|
||||
|
||||
Ask whether another viewer can see the picture. If someone can, go to [only my picture is missing](#i-get-no-picture-but-other-viewers-can-watch). If nobody can watch, ask the host to check their preview.
|
||||
|
||||
- **The App says the local preview is unavailable but sharing continues.** The host can reconnect their preview from **Playback settings**. Check [viewer connections](#nobody-gets-a-picture) separately.
|
||||
- **The shared source itself is blank.** Ask the host to share an open window, such as a browser window. Once it appears in the preview, open the invitation again. [Start sharing](./sharing.md#start-sharing)
|
||||
- **The host can see the picture.** Follow [nobody gets a picture](#nobody-gets-a-picture).
|
||||
|
||||
## I get no picture, but other viewers can watch
|
||||
|
||||
- **Try another browser.** Open the same invitation there. If the picture plays, you can keep watching in that browser. [Connection settings in the original browser](./network.md#browser-webrtc-restrictions)
|
||||
- **Try another network.** Open the same **public invitation** using mobile data or a phone hotspot. If the picture plays, you can keep watching on that network.
|
||||
- **Only people who joined later are stuck.** Ask someone who can watch to keep the room open. If their **My relay limit** is **0**, they can raise it under **Playback settings → Connection**. The other viewers can then reload. [Forwarding limits](./sharing.md#connection-preferences)
|
||||
|
||||
## Nobody gets a picture
|
||||
|
||||
If the invitation is public, first ask one viewer to open the same link on mobile data. If the picture plays there, check [restrictions on the original network](./network.md#campus-networks-and-strict-nat).
|
||||
|
||||
- **Friends are on different networks and a direct connection still fails.** Everyone can [join the same virtual LAN](./network.md#optional-a-virtual-lan). The Host looks up their own device’s IPv4 address in the networking tool, then selects the matching address in Piik App under **Local room → Local invitation address**. Once sharing starts, the Host sends friends the complete new invitation link.
|
||||
- **You have a site that can forward media.** Ask its operator to confirm media forwarding (SFU) is enabled. The Host turns off **Privacy mode** on that site, starts sharing, and sends the new room invitation. Piik can then try the server when a direct connection fails. [Use Piik App with an existing site](./getting-started.md#use-app-with-an-existing-site)
|
||||
|
||||

|
||||

|
||||
|
||||
If you can’t open the room page, see [how to join your friend’s room](./troubleshooting.md#i-cant-join-my-friends-room). If the picture plays but you can’t hear it, see [sound help](./sound-help.md).
|
||||
@@ -0,0 +1,31 @@
|
||||
# 进房后没画面
|
||||
|
||||
[English](./no-media-route.md) · 简体中文
|
||||
|
||||
<a id="进房后没画面没有可用的媒体线路"></a>
|
||||
|
||||
## 提示「没有可用的媒体线路」
|
||||
|
||||
先问问其他观众能不能看。如果有人能看,见[只有我没画面](#只有我没画面其他人能看)。如果都看不到,请房主检查分享预览。
|
||||
|
||||
- **App 提示「本机预览不可用,分享仍在继续」。** 房主可以在 **播放设置** 里重新连接预览。观众按[所有人都没画面](#所有人都没画面)检查自己的连接。
|
||||
- **分享来源本身没有画面。** 请房主重新分享一个打开的窗口,例如浏览器窗口。预览里出现画面后,朋友再打开邀请。[开始分享](./sharing.zh-CN.md#开始分享)
|
||||
- **房主看得到画面。** 按[所有人都没画面](#所有人都没画面)继续检查。
|
||||
|
||||
## 只有我没画面,其他人能看
|
||||
|
||||
- **换个浏览器。** 用另一款浏览器打开同一邀请。如果能播放,可以直接在那里看。[原浏览器的连接设置](./network.zh-CN.md#浏览器限制了-webrtc)
|
||||
- **换个网络。** 用手机流量或热点打开同一个**公网邀请**。如果能播放,可以用这个网络继续看。
|
||||
- **只有后进房的人看不到。** 请一位能看的朋友保持房间打开。如果这位朋友的**本机转发上限**是 **0**,请他在 **播放设置 → 连接** 里调高上限。后进房的观众再刷新页面。[设置转发人数](./sharing.zh-CN.md#连接偏好)
|
||||
|
||||
## 所有人都没画面
|
||||
|
||||
如果用的是公网邀请,先请一位观众用手机流量打开同一链接。如果能看,检查[原网络的连接限制](./network.zh-CN.md#校园网或严格-nat)。
|
||||
|
||||
- **朋友不在同一个网络,仍然无法直连。** 大家可以[加入同一个虚拟局域网](./network.zh-CN.md#可选虚拟局域网)。房主在组网工具里查看自己这台设备的 IPv4 地址,再打开 Piik App 的 **本地房间 → 局域网邀请地址**,在列表里选中同一个地址。开始分享后,把新生成的完整邀请链接发给朋友。
|
||||
- **有支持服务器转发的站点。** 请管理员确认站点已启用媒体转发(SFU)。房主在该站点关闭 **隐私模式** 后开播,发送该站点生成的新邀请。Piik 会在直连失败时尝试服务器转发。[用 App 在已有站点分享](./getting-started.zh-CN.md#通过已有站点使用-app)
|
||||
|
||||

|
||||

|
||||
|
||||
如果连房间网页都打不开,见[邀请打不开](./troubleshooting.zh-CN.md#进不去朋友的房间)。如果画面能动、只有声音听不到,见[声音排查](./sound-help.zh-CN.md)。
|
||||
@@ -7,11 +7,10 @@ together. The Host shares an App window or screen; friends join in their browser
|
||||
|
||||
## Start remote control
|
||||
|
||||
1. Share through Piik App using **Apps / Windows** or **Screens**.
|
||||
1. On the computer you want to control, share through the desktop Piik App using **Apps / Windows** or **Screens**. On Linux, select a screen through the system picker.
|
||||
2. Open **Remote control** below the picture and turn it on. It starts with
|
||||
**Ask each time**.
|
||||
3. Your friend selects **Request control** in their playback bar. On the Host
|
||||
page, choose **Allow** when the request arrives.
|
||||
3. In the browser, your friend opens the room invitation and hovers over or taps the picture to show the playback bar. They select the mouse icon, then **Request control**. On your sharing page, open **Remote control** and select **Allow** next to their request.
|
||||
|
||||
When sharing a window, switch back to it after allowing control. Input pauses
|
||||
while another window is active and resumes when you return.
|
||||
@@ -89,6 +88,21 @@ If the gamepad does not respond, check the Host's driver and App support, then
|
||||
turn **Remote control** off and on. Keyboard/mouse co-play and ordinary remote control
|
||||
remain available without the gamepad driver.
|
||||
|
||||
<a id="use-the-on-screen-joystick"></a>
|
||||
|
||||
## Play on your phone with the on-screen joystick
|
||||
|
||||
On a touchscreen, tap **Request control** in the playback bar. If the host approves requests individually, wait for them to select **Allow**. Once you have control, **L** and **R** appear on the playing picture. Touchscreen laptops work too.
|
||||
|
||||
Tap **L** or **R** to open or close one stick. Drag the lettered handle to put that stick within easy reach. Your browser remembers the position. Press the pad to steer and lift to center it. When idle, the handles tuck against the picture edges and each open pad stays in place.
|
||||
|
||||
In **Remote keyboard → Local controls**, turn off **Virtual joysticks** to remove both pads and handles and use ordinary touch across the picture. To keep the sticks available with less on screen, turn on **Show on touch**. A thin ring briefly marks a pad when you open it. Press there to show the thumb.
|
||||
|
||||
Open **Remote keyboard → Local controls → Stick mode** to set both sticks. In **Keys + mouse**, the left stick holds W, A, S or D and the right stick moves the mouse. When the Host supports gamepad input and the Viewer has no physical gamepad connected, choose **Gamepad** to send left and right stick input. Closing a stick, leaving the page or disconnecting releases the affected inputs. After reconnecting, select **Request control** again.
|
||||
|
||||

|
||||

|
||||
|
||||
## End control
|
||||
|
||||
Either person can choose **End control**. The Host can stop all remote input with
|
||||
@@ -104,6 +118,8 @@ choice needs **Allow Viewers** before it applies again. Passwords are not saved.
|
||||
|
||||
## Mouse, touch and permissions
|
||||
|
||||
For desktop tasks on a phone, tap a visible target or use the trackpad to position the cursor precisely. Both touch modes send positions within the shared picture. For continuous mouse look, use **Game mouse** in a supported desktop browser.
|
||||
|
||||
On a phone, touch the picture directly to click and hold to drag, without a
|
||||
cursor. Two-finger tap is right-click; two-finger swipe scrolls. Pinch to zoom in
|
||||
or out, then use two fingers to pan, including into the blank space around the
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
## 开始远程控制
|
||||
|
||||
1. 通过 Piik App 的 **程序 / 窗口** 或 **屏幕** 开始分享。
|
||||
1. 在要让朋友操作的电脑上,用桌面版 Piik App 的 **程序 / 窗口** 或 **屏幕** 开始分享。Linux 用户请在系统选择器里选择屏幕。
|
||||
2. 打开画面下方的 **远程控制** 并开启开关,默认使用 **每次询问**。
|
||||
3. 朋友在播放控制栏中点击 **请求控制**。收到请求后,房主在分享页面选择 **允许**。
|
||||
3. 朋友在浏览器打开房间邀请,把鼠标移到画面上或轻点画面,显示播放控制栏。点鼠标图标,再点 **请求控制**。房主在自己的分享页面打开 **远程控制**,在朋友的请求旁点 **允许控制**。
|
||||
|
||||
分享窗口时,允许控制后请切回该窗口。
|
||||
其他窗口处于前台时,远程输入会暂停;切回即可继续。
|
||||
@@ -67,6 +67,21 @@ Piik 不指定游戏中的玩家编号,请使用游戏自己的加入和分配
|
||||
手柄没有响应时,请检查房主的驱动和 App 是否支持该功能,再关闭并重新开启 **远程控制**。
|
||||
不装手柄驱动仍可共用键鼠、使用普通远控。
|
||||
|
||||
<a id="使用屏幕摇杆"></a>
|
||||
|
||||
## 用手机玩电脑游戏(屏幕摇杆)
|
||||
|
||||
在触摸屏上观看可远控的画面时,点播放栏里的 **请求控制**。如果房主设置了每次询问,等房主点 **允许控制**。取得控制权后,正在播放的画面下方会出现 **L** 和 **R**。带触摸屏的电脑也可以使用。
|
||||
|
||||
点 **L** 或 **R** 展开或收起一侧摇杆。拖动带字母的拉手,可以把这根摇杆放在拇指舒服的位置,浏览器会记住。按住杆盘控制方向,松手回中。闲置时只有拉手贴边,杆盘留在原位。
|
||||
|
||||
打开 **远程键盘 → 本机控制**。关掉 **虚拟摇杆**,左右拉手和杆盘都会消失,画面可照常触控。想保留摇杆又少遮画面,可以开启 **仅触摸时显示**。展开时,细圈会短暂标出触控位置,按住才显示杆头。
|
||||
|
||||
打开 **远程键盘 → 本机控制 → 摇杆模式** 可同时设置两根摇杆。**键鼠** 模式用左杆控制 W、A、S、D,右杆移动鼠标。房主支持手柄输入且观众没有连接实体手柄时,可以选 **手柄**,直接发送左右摇杆输入。收起摇杆、切出页面或连接中断都会释放相应输入。重新连接后,请再次点击 **请求控制**。
|
||||
|
||||

|
||||

|
||||
|
||||
## 结束控制
|
||||
|
||||
双方都可以点击 **结束控制**。房主在本机按 **Ctrl+Alt+F10**(Windows)或
|
||||
@@ -80,8 +95,10 @@ Piik 不指定游戏中的玩家编号,请使用游戏自己的加入和分配
|
||||
|
||||
## 鼠标、触屏与权限
|
||||
|
||||
用手机操作桌面时,可以轻点画面中的目标,或者用光标触控板微调。两种触摸方式都发送共享画面范围内的光标坐标。需要连续转动鼠标视角时,可在支持的桌面浏览器里开启 **游戏鼠标**。
|
||||
|
||||
手机上默认直接触摸画面操作,不显示光标;轻点点击、长按拖动,双指轻点右击、滑动滚动。
|
||||
捏合可放大或缩小画面,缩放后双指移动用于平移画面,周围允许留黑。在 **播控设置 → 默认触摸方式** 中,也可选择 **光标触控板**。
|
||||
捏合可放大或缩小画面,缩放后双指移动用于平移画面,周围允许留黑。在 **播放设置 → 默认触摸方式** 中,也可选择 **光标触控板**。
|
||||
|
||||
拖动迷你鼠标可调整工具的位置,轻点即可展开左右键和滚轮。光标位于鼠标左上方,拖动下半部或单指滑动画面时一起移动;到达边缘时,画面会平移留出鼠标的操作空间。
|
||||
光标停在所分享画面的边缘,留黑只补足工具所需的空间。鼠标展开时,双指缩放、平移会调整本地画面,鼠标留在手边;要滚动远端页面,请滑动鼠标滚轮。
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
English · [简体中文](./room-tools.zh-CN.md) · [Documentation](./README.md)
|
||||
|
||||
Chat and voice work before, during and after picture sharing.
|
||||
Remote control requires an active App window or screen share.
|
||||
To let a friend control your computer, share a window or screen from the desktop App. Friends can join from their phone or computer.
|
||||
|
||||
- **[Chat and reactions](#chat-and-reactions):** join the room and open **Interact → Chat**.
|
||||
- **[Room voice](#room-voice):** the Host opens room voice; each speaker enables their own microphone.
|
||||
@@ -73,10 +73,7 @@ listening volumes, and noise/echo reduction. On supporting sites, the Host can
|
||||
also set **Room voice bitrate**; the default is 64 kbps per speaker.
|
||||
Browser and App-backed sharing use these same voice controls.
|
||||
|
||||
**Connection topology** at the bottom of the room shows current media routes.
|
||||
Idle room members stay visible without a connecting state. **Connection details**
|
||||
groups shared picture/audio and room voice separately; voice routes remain
|
||||
available after picture sharing stops.
|
||||
If a friend joins voice but you cannot hear them, ask them to speak and check whether their microphone icon lights up. Check your headphone button and the speaker button next to their name. To check the connection, select **Show connection details** at the bottom of the room and look for **Room voice**. You can check voice there even after picture sharing stops. **Show connection topology** also lists people who are just sitting in the room.
|
||||
|
||||
Voice stays connected when picture sharing stops. It also stays active when you
|
||||
close or detach the interaction window. Viewers choose **Leave voice** to leave;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
[English](./room-tools.md) · 简体中文 · [文档中心](./README.zh-CN.md)
|
||||
|
||||
开播前、分享中、停播后都可以聊天和语音;远程控制需要房主正在通过 App 分享窗口或屏幕。
|
||||
开播前、分享中、停播后都可以聊天和语音;要让朋友操作你的电脑,请用桌面版 App 分享窗口或屏幕。朋友可以用手机或电脑加入。
|
||||
|
||||
- **[聊天与表情](#聊天与表情):** 加入房间,打开 **互动** 的 **聊天** 页签。
|
||||
- **[房间语音](#房间语音):** 房主开启房间语音,每位发言者自己开麦。
|
||||
@@ -65,8 +65,7 @@
|
||||
观众可点击 **退出语音**;房主点击 **关闭房间语音** 会结束所有人的语音。
|
||||
重新开启后,观众仍需自行加入、开麦。
|
||||
|
||||
房间底部的 **连接拓扑** 显示当前媒体线路;仅在房间内、未使用画面或语音时,小人正常显示,不会提示正在连接。
|
||||
**连接详情** 分开显示分享画面与声音、房间语音,停播后仍可查看语音线路。
|
||||
朋友加入语音后,如果你听不到他说话,先请他开口,看看他的麦克风图标是否亮起。再检查你的耳机按钮和他旁边的扬声器按钮。要查看连接,在房间底部点击 **显示连接详情**,查看 **房间语音** 一栏。停止画面分享后,仍可在这里查看语音连接。**显示连接拓扑** 也会列出只在房间里坐着的人。
|
||||
|
||||
<details>
|
||||
<summary>来源声音、回声与记住的设置</summary>
|
||||
|
||||
@@ -2,8 +2,40 @@
|
||||
|
||||
English · [简体中文](./sharing.zh-CN.md) · [Documentation](./README.md)
|
||||
|
||||
Use this guide to adjust your share, manage invitations and control playback.
|
||||
To create or join a room, start with [your first room](./getting-started.md).
|
||||
Share a game, a window, or your whole screen with friends. You can choose whether they hear the game and whether they hear your microphone.
|
||||
|
||||
## Start sharing
|
||||
|
||||
1. In the room, select **Start sharing**. If you still need a room, see [the getting started guide](./getting-started.md).
|
||||
2. Pick what you want friends to see.
|
||||
|
||||
| What to share | What to select |
|
||||
| --- | --- |
|
||||
| A browser tab, window, or screen | Choose **Browser**, then **Choose what to share**. The options in the next window depend on your browser and device. |
|
||||
| A desktop game or an app | With Piik App connected, choose **Apps / Windows** if available and select the game or app. |
|
||||
| An entire desktop screen | With Piik App connected, choose **Screens** if available and select the display. |
|
||||
| A camera | Choose **Camera**, allow access, and select a camera. |
|
||||
|
||||
3. If you chose **Browser**, enable audio if offered and confirm in the browser chooser. For an App window or screen, set **Application sound** or **System sound** if available, then select **Start sharing** at the bottom of Piik's picker.
|
||||
4. Check your preview and keep the room page open while you share. If you want friends to hear you too, see [how to include your microphone](#include-your-microphone).
|
||||
|
||||
For a missing chooser or a share that will not start, see [starting a share](./troubleshooting.md#starting-a-share). If friends see the picture but hear no game sound, see [picture but no source sound](./troubleshooting.md#picture-but-no-source-sound).
|
||||
|
||||

|
||||

|
||||
|
||||
If your preview works but your friend still sees no picture, check [the connection between you and your friend](./no-media-route.md).
|
||||
|
||||
## Share from a phone or tablet
|
||||
|
||||
- **Android.** Use Piik App on Android 10 or later. Open Piik from the installed App and approve Android's screen-sharing prompt. It shares the whole display and can include sound from apps that allow Android to capture it. [Install and open Piik App](./getting-started.md#share-with-piik-app)
|
||||
- **iPhone and iPad.** Use Safari on iOS or iPadOS 27 or later for screen sharing. [iPhone and iPad screen sharing](#iphone-and-ipad-screen-sharing)
|
||||
|
||||
## Switch, cancel, or stop sharing
|
||||
|
||||
- **Switch to a different picture.** Select **Switch source** below the picture and choose what to share next.
|
||||
- **Cancel while choosing.** Close the Piik picker, or select the cancel option in the browser or system prompt. If you opened the picker from **Switch source**, friends keep seeing the current share.
|
||||
- **Stop an active share.** Select **Stop sharing** below the picture. On a phone, return to the room page first.
|
||||
|
||||
## Invitations
|
||||
|
||||
@@ -14,6 +46,46 @@ Invite-only rooms require an invitation credential. Existing invitations remain
|
||||
valid until you use **Rotate link** or **Revoke link**; both disconnect Viewers
|
||||
who joined with the old invitation.
|
||||
|
||||
## Playback controls
|
||||
|
||||
Move the pointer over the picture or tap it to show the playback bar.
|
||||
|
||||
- The play/pause button on the picture pauses only your own viewing. If you are sharing, the volume on the picture changes the sound sent to everyone. Your preview stays muted to avoid playing the source twice. If you are watching, the volume changes only what you hear.
|
||||
- **Pause the picture for friends:** select **Pause sharing** below the picture. This affects everyone watching.
|
||||
- **Control your microphone and listening:** open **Interact → Voice**. These controls are separate from picture sound.
|
||||
|
||||
<div class="guide-control-reference">
|
||||
|
||||
| Control | What it does |
|
||||
| --- | --- |
|
||||
| **Volume** | Goes up to 200% with audio boost, or 100% otherwise. Lower it if the sound distorts. |
|
||||
| **Picture fit** | Click to cycle: **Fit** keeps the whole picture visible; **Fill** crops its edges; **Stretch** changes its proportions. |
|
||||
| **Rotate picture** | Switches between portrait and landscape locally, without rotating the device or changing the shared source. |
|
||||
| **Theater mode** | Expands the picture inside the browser tab. |
|
||||
| **Picture in picture** | Opens a floating video where supported. |
|
||||
| **Fullscreen** | Expands the picture to the full screen. |
|
||||
| **Playback settings** | Adjust on-screen chat and connection preferences. Connections default to **Auto**; available alternatives depend on the host and site. |
|
||||
|
||||
</div>
|
||||
|
||||
### Connection preferences
|
||||
|
||||
Leave the connection setting on **Auto** for ordinary use. To compare routes,
|
||||
select one of the alternatives offered by the Host and site.
|
||||
|
||||
The Host can set **Sharing settings → Connection settings → Room relay limit**. It is
|
||||
the default number of outgoing copies per device, not the room's Viewer limit.
|
||||
|
||||
Viewers follow that default. In **Playback settings → Connection**, enable
|
||||
**Custom relay limit** to choose a lower or higher limit for this visit. Set it
|
||||
to **0** to receive without relaying. Higher limits use more upload bandwidth;
|
||||
available values follow the device's capability. Older sites offer only
|
||||
**Raise relay limit**.
|
||||
|
||||
In P2P-only rooms with a limit of **1**, keep the first Viewer's relay limit
|
||||
above zero so others can connect through them. If that Viewer disables relaying,
|
||||
raise the room limit or their personal limit to make another path available.
|
||||
|
||||
## Picture and sound settings
|
||||
|
||||
1. Below the picture, open **Sharing settings → Picture**.
|
||||
@@ -21,8 +93,8 @@ who joined with the old invitation.
|
||||
resolution, frame rate, bitrate, picture preference or codec.
|
||||
3. Open **Sound** to choose the source audio and its output quality.
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
| Setting | What to expect |
|
||||
| --- | --- |
|
||||
@@ -30,6 +102,10 @@ who joined with the old invitation.
|
||||
| Slider or custom value | Sliders cover common values. Type within the field's allowed range for other values; **Use common range** returns to a nearby slider value. |
|
||||
| Picture and sound quality | Both still adapt to the source, device and available bandwidth. |
|
||||
|
||||
If the picture stays blurry or slow for several viewers, try a lower resolution
|
||||
or frame rate and check the Host preview. If the Host's preview runs smoothly but your picture pauses briefly, open **Playback settings** on the picture and turn on **Increase playback buffering** if available. It adds delay, so turn it off if controls feel sluggish.
|
||||
See [picture troubleshooting](./troubleshooting.md#the-picture-is-blurry-or-keeps-freezing) for more checks.
|
||||
|
||||
Applied settings are remembered for the current site. Opening Piik through an
|
||||
updated App also keeps sharing-quality settings when a public-invite address changes.
|
||||
|
||||
@@ -41,9 +117,19 @@ sharing. Viewers hear it through the picture's sound without joining room voice.
|
||||
Room voice remains independent. If you enable both microphones, listeners may
|
||||
hear you twice; Piik warns you and leaves the choice to you.
|
||||
|
||||
## Cameras and virtual audio inputs
|
||||
## iPhone and iPad screen sharing
|
||||
|
||||
Picture sound and conversation use separate controls. Muting one does not mute the other.
|
||||
Use **Safari on iOS/iPadOS 27 or later** and select **Browser** to share your screen.
|
||||
Watching a friend and camera sharing use the browser's existing capabilities
|
||||
and do not require this screen-sharing version.
|
||||
|
||||
Safari screen sharing does **not** capture system audio. To speak with the picture,
|
||||
explicitly enable [Include my microphone](#include-your-microphone).
|
||||
MDN's [verified Safari 27 support](https://github.com/mdn/browser-compat-data/pull/30732)
|
||||
and [screen/audio compatibility data](https://github.com/mdn/browser-compat-data/blob/main/api/MediaDevices.json)
|
||||
distinguish screen capture from audio capture.
|
||||
|
||||
## Cameras and virtual audio inputs
|
||||
|
||||

|
||||
|
||||
@@ -60,6 +146,8 @@ On Windows, this control applies to system sound from **Screens**. **Apps / Wind
|
||||
captures only the selected application's process tree. **Camera** shares video;
|
||||
its microphone or virtual audio input requires explicitly enabled source commentary or room voice.
|
||||
|
||||
If Piik and the content you want to share are in different tabs of the same browser, choose the browser source, select the content tab, and enable tab audio. You can hear the room while sharing that tab’s sound. Excluding the browser process in Windows can also remove the other tabs’ sound.
|
||||
|
||||
1. Open **Screens** and enable **System sound**.
|
||||
2. Under **Exclude application audio**, select the voice app's window. Open its
|
||||
window and refresh the list if missing.
|
||||
@@ -82,35 +170,3 @@ select **None** to restore unfiltered system audio.
|
||||
The option appears when the connected Windows App and system support exclusion.
|
||||
If the option is absent, share a single application window or route the voice
|
||||
app to a different playback device.
|
||||
|
||||
## Playback controls
|
||||
|
||||
Move the pointer over the picture or tap it to show the playback bar.
|
||||
|
||||
- **Playback and sound:** pausing the picture affects only your own preview. The Host's volume changes the shared sound for everyone (0%–200%); Viewer volume changes only their own listening. The Host's preview stays muted to avoid playing the source twice. Room voice has separate controls.
|
||||
- **Pause the picture for friends:** select **Pause sharing** below the picture. This affects everyone watching.
|
||||
- **Control your microphone and listening:** open **Interact → Voice**. These controls are separate from picture sound.
|
||||
|
||||
<div class="guide-control-reference">
|
||||
|
||||
| Control | What it does |
|
||||
| --- | --- |
|
||||
| **Volume** | Goes up to 200% with audio boost, or 100% otherwise. Lower it if the sound distorts. |
|
||||
| **Picture fit** | Click to cycle: **Fit** keeps the whole picture visible; **Fill** crops its edges; **Stretch** changes its proportions. |
|
||||
| **Rotate picture** | Switches between portrait and landscape locally, without rotating the device or changing the shared source. |
|
||||
| **Theater mode** | Expands the picture inside the browser tab. |
|
||||
| **Picture in picture** | Opens a floating video where supported. |
|
||||
| **Fullscreen** | Expands the picture to the full screen. |
|
||||
| **Playback settings** | Adjust on-screen chat and connection preferences. Connections default to **Auto**; available alternatives depend on the host and site. |
|
||||
|
||||
</div>
|
||||
|
||||
### Connection preferences
|
||||
|
||||
Leave the connection setting on **Auto** for ordinary use. To compare routes,
|
||||
select one of the alternatives offered by the Host and site.
|
||||
|
||||
On supporting sites, **Playback settings → Connection → Help relay to more
|
||||
viewers** lets a Viewer volunteer more upload for the current visit. It starts
|
||||
with one extra Viewer; adjust **Maximum relay viewers** to set your limit.
|
||||
It remains an ordinary P2P relay; enable it on a stable connection with upload to spare.
|
||||
@@ -1,8 +1,41 @@
|
||||
# 分享与播放
|
||||
|
||||
[English](./sharing.md) · 简体中文 · [文档中心](./README.zh-CN.md)
|
||||
[English](./sharing.md) · 简体中文 · [文档](./README.zh-CN.md)
|
||||
|
||||
本页介绍分享设置、邀请管理与播放控制。创建或加入房间,请先看[快速上手](./getting-started.zh-CN.md)。
|
||||
把游戏、窗口或整个屏幕分享给朋友。你可以选择是否让朋友听到游戏声,也可以把自己的麦克风声音加进分享。
|
||||
|
||||
## 开始分享
|
||||
|
||||
1. 在房间里点击 **开始分享**。还没有房间时,先看[快速上手](./getting-started.zh-CN.md)。
|
||||
2. 选择要给朋友看的画面。
|
||||
|
||||
| 想分享什么 | 怎么选 |
|
||||
| --- | --- |
|
||||
| 浏览器标签页、窗口或屏幕 | 选 **浏览器**,再点 **选择画面**。弹窗里有哪些选项,取决于浏览器和设备。 |
|
||||
| 电脑游戏或应用 | 连接 Piik App 后,如果有 **程序 / 窗口**,打开它并选中游戏或应用。 |
|
||||
| 电脑的整个屏幕 | 连接 Piik App 后,如果有 **屏幕**,打开它并选中要分享的显示器。 |
|
||||
| 摄像头画面 | 选 **摄像头**,允许访问后选择摄像头。 |
|
||||
|
||||
3. 如果选了 **浏览器**,可在浏览器弹窗里开启音频(如果有),并在该弹窗中确认。如果选了 App 的窗口或屏幕,按需设置 **应用声音** 或 **系统声音**,再点 Piik 选择窗口底部的 **开始分享**。
|
||||
4. 确认预览画面,分享期间保持房间页面打开。想让朋友也听到你说话,可以[分享麦克风](#分享麦克风)。
|
||||
|
||||
找不到选画面的弹窗,或选好后无法分享,请看[开始分享时的常见问题](./troubleshooting.zh-CN.md#开始分享)。朋友看得到画面却听不到游戏声,请看[有画面但没有来源声音](./troubleshooting.zh-CN.md#有画面但没有来源声音)。
|
||||
|
||||

|
||||

|
||||
|
||||
如果你能看到自己的预览,但朋友仍看不到画面,请看[如何检查你和朋友之间的连接](./no-media-route.zh-CN.md)。
|
||||
|
||||
## 用手机或平板分享
|
||||
|
||||
- **安卓。** 在 Android 10 或更新版本上使用 Piik App。从已安装的 App 打开 Piik,并在安卓弹窗里同意分享屏幕。分享会显示整个屏幕,允许安卓录制播放声音的应用也可以带上声音。[安装和打开 Piik App](./getting-started.zh-CN.md#用-piik-app-分享)
|
||||
- **iPhone 和 iPad。** 分享屏幕需要 iOS 或 iPadOS 27 及以上版本的 Safari。[iPhone 与 iPad 屏幕分享](#iphone-与-ipad-屏幕分享)
|
||||
|
||||
## 切换、取消或停止分享
|
||||
|
||||
- **换一个画面。** 点击画面下方的 **切换来源**,再选要分享的新画面。
|
||||
- **选画面时取消。** 关闭 Piik 的选择窗口,或在浏览器或系统弹窗中取消。如果是从 **切换来源** 打开的,朋友会继续看到原来的画面。
|
||||
- **结束正在进行的分享。** 点击画面下方的 **停止分享**。用手机分享时,先回到房间页面。
|
||||
|
||||
## 邀请
|
||||
|
||||
@@ -11,14 +44,51 @@
|
||||
仅限邀请的房间仍需邀请凭证。已发邀请持续有效,直到房主点击 **更新链接** 或 **撤销链接**;
|
||||
这两项操作会断开通过旧邀请加入的观众。
|
||||
|
||||
## 播放控制
|
||||
|
||||
将鼠标移到画面上,或轻点画面,即可显示播放控制栏。
|
||||
|
||||
- 画面上的播放/暂停按钮只影响自己看到的画面。房主调画面上的音量,会改变发给所有观众的声音。房主自己的预览保持静音,避免同一个声音放两遍。观众调画面上的音量,只改变自己听到的声音。
|
||||
- **暂停朋友看到的画面:** 点击画面下方的 **暂停分享**,影响所有观众。
|
||||
- **控制自己的麦克风与收听:** 打开 **互动 → 语音**,与画面声音分开控制。
|
||||
|
||||
<div class="guide-control-reference">
|
||||
|
||||
| 按钮 | 作用 |
|
||||
| --- | --- |
|
||||
| **音量** | 支持增强时最高 200%,否则最高 100%;声音失真时调低一些。 |
|
||||
| **画面显示** | 点击切换:**完整显示** 保留全部画面;**等比铺满** 会裁掉边缘;**拉伸铺满** 会改变比例。 |
|
||||
| **横竖切换** | 只在本机切换画面方向,无需打开设备自动旋转,也不改变分享源。 |
|
||||
| **剧场模式** | 在浏览器标签页内展开画面。 |
|
||||
| **悬浮小窗** | 浏览器支持时,把视频放进独立小窗。 |
|
||||
| **全屏观看** | 将画面展开至全屏。 |
|
||||
| **播放设置** | 调整弹幕外观与连接偏好;连接默认为 **自动**,可选线路取决于房主和站点。 |
|
||||
|
||||
</div>
|
||||
|
||||
### 连接偏好
|
||||
|
||||
通常保持 **自动**。想试试其他连接方式时,选择房主与站点提供的其他选项。
|
||||
|
||||
房主可在 **分享设置 → 连接设置 → 房间转发上限** 设置每台设备默认最多发送几路,
|
||||
这不是房间的观众总人数限制。
|
||||
|
||||
观众默认跟随房间。在 **播放设置 → 连接** 开启 **自定义转发上限**,
|
||||
即可为本次观看单独调高或调低;设为 **0** 时只接收、不向下游转发。
|
||||
上限越高,可能使用的上行带宽越多;可用范围取决于设备能力。
|
||||
旧站点只提供 **提高本机转发上限**。
|
||||
|
||||
纯 P2P 房间的上限设为 **1** 时,首位观众需要继续转发,后面的人才能通过他连接。
|
||||
如果他设为 **0**,可提高房间上限或他的个人上限,让路由重新安排线路。
|
||||
|
||||
## 画面与声音设置
|
||||
|
||||
1. 在画面下方打开 **分享设置 → 画面**。
|
||||
2. 先选画质预设;需要指定分辨率、帧率、码率、画面偏好或视频编码时,再展开 **画面细调**。
|
||||
3. 切到 **声音**,选择来源声音和输出质量。
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
| 设置 | 怎么理解 |
|
||||
| --- | --- |
|
||||
@@ -26,6 +96,10 @@
|
||||
| 滑块与自定义数值 | 滑块提供常用值,也可在输入框允许的范围内自定义;**返回常用范围** 可回到附近档位。 |
|
||||
| 画面与声音质量 | 仍会根据来源、设备和可用带宽调整。 |
|
||||
|
||||
如果多位观众一直看到模糊或不流畅的画面,房主可试着降低分辨率或帧率,同时查看预览。
|
||||
如果房主预览流畅,但你观看时画面偶尔停一下,可在画面上的 **播放设置** 中开启 **增加播放缓冲**(如果有此选项)。
|
||||
缓冲会增加延迟,操作明显变慢时可关闭。更多步骤见[画质检查](./troubleshooting.zh-CN.md#画面模糊卡顿或中断)。
|
||||
|
||||
已应用的设置会保存在当前站点;通过新版 App 打开时,更换公网邀请网址也能保留分享画质设置。
|
||||
|
||||
### 分享麦克风
|
||||
@@ -34,6 +108,15 @@
|
||||
每次开始新的分享时默认关闭,停止分享也会停止这路麦克风。观众通过画面声音收听,无须加入房间语音。
|
||||
房间语音独立运行。如果同时开启两路麦克风,听众可能听到两次你的声音;Piik 会提示,由你决定保留哪一路。
|
||||
|
||||
## iPhone 与 iPad 屏幕分享
|
||||
|
||||
请使用 **iOS/iPadOS 27 及以上的 Safari**,选择 **浏览器** 分享屏幕。
|
||||
观看朋友的画面和分享摄像头使用浏览器已有能力,不受此屏幕分享版本门槛限制。
|
||||
|
||||
Safari 屏幕分享**不采集系统声音**。需要随画面讲话时,可主动开启[分享麦克风](#分享麦克风)。
|
||||
依据 MDN 的 [Safari 27 实测记录](https://github.com/mdn/browser-compat-data/pull/30732)
|
||||
及[屏幕/音频兼容数据](https://github.com/mdn/browser-compat-data/blob/main/api/MediaDevices.json),两者支持情况不同。
|
||||
|
||||
## 摄像头与虚拟音频输入
|
||||
|
||||

|
||||
@@ -47,6 +130,8 @@
|
||||
|
||||
## 分享屏幕时排除语音软件的声音
|
||||
|
||||
如果 Piik 和要分享的内容在同一浏览器的不同标签页,请选浏览器来源,在浏览器弹窗中选播放内容的标签页并开启标签页音频。这样你仍能听到房间通话,观众也能听到该标签页的声音。在 Windows 排除整个浏览器进程也可能排除其他标签页的声音。
|
||||
|
||||
在 Windows 上,此控件用于 **屏幕** 分享的系统声音。**程序 / 窗口** 只采集所选应用及其子进程的声音;
|
||||
**摄像头** 分享画面,麦克风或虚拟音频输入需要单独开启分享麦克风或房间语音。
|
||||
|
||||
@@ -58,7 +143,7 @@
|
||||
以及使用其他播放设备的应用。只需要一个应用的声音时,可改为分享 **程序 / 窗口**。
|
||||
扬声器被麦克风再次收音时,请使用耳机。
|
||||
|
||||
使用虚拟麦克风时,如果关闭 Piik 麦克风后仍能听到你的声音,可暂时关闭 **系统声音** 对照。
|
||||
使用虚拟麦克风时,如果关闭 Piik 麦克风后仍能听到你的声音,可暂时关闭 **系统声音**,看声音是否消失。
|
||||
若声音随之消失,请检查混音软件的播放输出与监听,或改为只分享目标应用的窗口音频。
|
||||
|
||||
开播后,可在 **分享设置 → 声音** 中调整系统声音和排除的应用,无需停止分享。
|
||||
@@ -66,33 +151,3 @@
|
||||
暂时关闭来源声音会保留排除选择;需要恢复完整的系统声音时,选择 **不排除**。
|
||||
连接的 Windows App 和系统支持排除时,会显示此选项。未显示时,可改为分享单个应用窗口,
|
||||
或将语音软件输出到另一播放设备。
|
||||
|
||||
## 播放控制
|
||||
|
||||
将鼠标移到画面上,或轻点画面,即可显示播放控制栏。
|
||||
|
||||
- **播放与声音:** 暂停画面只影响自己观看。房主的音量控制分享声音,对所有观众生效(0%–200%);观众的音量只调整自己的收听。房主预览保持静音,避免来源声音重复播放。房间语音使用独立的音量设置。
|
||||
- **暂停朋友看到的画面:** 点击画面下方的 **暂停分享**,影响所有观众。
|
||||
- **控制自己的麦克风与收听:** 打开 **互动 → 语音**,与画面声音分开控制。
|
||||
|
||||
<div class="guide-control-reference">
|
||||
|
||||
| 按钮 | 作用 |
|
||||
| --- | --- |
|
||||
| **音量** | 支持增强时最高 200%,否则最高 100%;声音失真时调低一些。 |
|
||||
| **画面适配** | 点击切换:**完整显示** 保留全部画面;**等比铺满** 会裁掉边缘;**拉伸铺满** 会改变比例。 |
|
||||
| **横竖切换** | 只在本机切换画面方向,无需打开设备自动旋转,也不改变分享源。 |
|
||||
| **剧场模式** | 在浏览器标签页内展开画面。 |
|
||||
| **悬浮小窗** | 浏览器支持时,把视频放进独立小窗。 |
|
||||
| **全屏观看** | 将画面展开至全屏。 |
|
||||
| **播放设置** | 调整弹幕外观与连接偏好;连接默认为 **自动**,可选线路取决于房主和站点。 |
|
||||
|
||||
</div>
|
||||
|
||||
### 连接偏好
|
||||
|
||||
通常保持 **自动**。需要对照线路时,选择房主与站点提供的其他选项。
|
||||
|
||||
支持的站点还提供 **播放设置 → 连接 → 帮助更多观众转发**,
|
||||
允许观众为本次访问提供更多上行带宽。开启后默认多转发一人,可调整 **最多转发人数**。
|
||||
它仍是普通 P2P 转发;请在连接稳定、上行有余量时开启。
|
||||
@@ -0,0 +1,39 @@
|
||||
# Missing game sound, quiet microphones and echo
|
||||
|
||||
English · [简体中文](./sound-help.zh-CN.md)
|
||||
|
||||
[Game sound](#i-can-see-the-picture-but-cannot-hear-the-game) · [I can’t hear a friend](#i-cannot-hear-a-friend-speaking) · [Friends can’t hear me](#my-friends-cannot-hear-me) · [Echo](#i-hear-my-own-voice-twice)
|
||||
|
||||
## I can see the picture but cannot hear the game
|
||||
|
||||
1. Ask the host to play a game sound they can hear. Tap the picture, select **Unmute** if the player is muted, and turn up the volume. If other viewers can hear the game, check your headphones or speakers.
|
||||
2. If nobody hears the game, ask the Host to pick what to share again and enable sound. Safari screen sharing on iPhone and iPad sends the picture only. The Host can still turn on **Include my microphone**. For a camera or OBS Virtual Camera, enable **Include my microphone** under **Sharing settings → Sound** and select the input carrying the sound. [Set up a camera or virtual audio input](./sharing.md#cameras-and-virtual-audio-inputs)
|
||||
3. When the Windows App shares the entire screen without excluding any apps, ask the Host to check the default output device in Windows sound settings and make sure the game uses it. The Host can also share just the game window and ask a Viewer to listen again.
|
||||
|
||||

|
||||

|
||||
|
||||
## I cannot hear a friend speaking
|
||||
|
||||
Ask how your friend is speaking. If the Host enabled **Include my microphone**, their voice plays with the picture. The Host can check **Sharing settings → Sound**, and Viewers can unmute the video.
|
||||
|
||||
For room voice, the Host selects **Open room voice** and both people open **Interact → Voice** and select **Join voice**. Ask the speaker to turn on their microphone. If others hear them, check whether you paused listening or muted that person. [Room voice controls](./room-tools.md#room-voice)
|
||||
|
||||
## My friends cannot hear me
|
||||
|
||||
1. Open **Interact → Voice → Voice settings**, choose the microphone you are using and check input volume. Allow microphone access in the browser and ask a friend to listen. **Pause listening** only pauses what you hear.
|
||||
2. If the browser cannot enable the microphone, reopen the full HTTPS invitation from the Host. If the invitation is for a local room and your browser shows a certificate warning, confirm the certificate with the Host. If the browser cannot accept the local certificate, ask the Host for an HTTPS invitation your browser trusts. [Confirm the local certificate](./troubleshooting.md#local-https-certificate-warning)
|
||||
3. If both people see **Voice connection issue**, open the same invitation in another browser. With a public invitation, you can also try a phone hotspot. [Check the voice connection](./network.md)
|
||||
|
||||
## I hear my own voice twice
|
||||
|
||||
1. Keep room voice on, turn the stream’s playback volume to zero and speak. If the echo stops, restore the volume and ask the Host to temporarily turn off source audio. For a full-screen share, that setting is **System sound**.
|
||||
2. If the echo stops again and the Host still hears you, the share is picking up the call. In Piik App on Windows, the Host can share the game window or exclude the app playing the call during full-screen sharing. If the game and call use the same browser, share the game tab with tab audio. [Exclude a voice app from screen audio](./sharing.md#exclude-a-voice-app-from-screen-audio)
|
||||
3. If the echo continues with stream playback muted, ask anyone using speakers to try headphones. If muting source audio leaves an echo, also try turning off the Host’s **Include my microphone**.
|
||||
|
||||
<details>
|
||||
<summary>Check monitoring outputs when using a virtual mixer</summary>
|
||||
|
||||
Temporarily turn off **System sound**. If the duplicate disappears, check which mixer output feeds the default playback device. Adjust monitoring, restore system sound and ask your friend to listen again.
|
||||
|
||||
</details>
|
||||
@@ -0,0 +1,39 @@
|
||||
# 游戏没声音、听不到朋友或有回声
|
||||
|
||||
[English](./sound-help.md) · 简体中文
|
||||
|
||||
[游戏没声](#有画面但听不到游戏声音) · [听不到朋友](#听不到朋友说话) · [朋友听不到我](#朋友听不到我说话) · [听见回声](#我能听见自己的回声)
|
||||
|
||||
## 有画面但听不到游戏声音
|
||||
|
||||
1. 请房主播放一段自己能听见的游戏声音。观众点一下画面,如果播放器已静音,点 **取消静音**,再调高音量。如果只有你听不到,检查你的耳机或扬声器。
|
||||
2. 如果所有观众都听不到,请房主重新选择分享的内容,并打开声音。iPhone 和 iPad 上的 Safari 分享屏幕时只能传画面,房主仍可开启 **分享麦克风**。使用摄像头或 OBS 虚拟摄像头时,请房主在 **分享设置 → 声音** 中开启 **分享麦克风**,选择实际传入声音的设备。[设置摄像头或虚拟音频输入](./sharing.zh-CN.md#摄像头与虚拟音频输入)
|
||||
3. Windows App 分享整屏且未排除应用声音时,请房主在 Windows 声音设置里查看默认输出设备,确认游戏用的也是这个设备。房主也可以只选游戏窗口分享,再请观众试听。
|
||||
|
||||

|
||||

|
||||
|
||||
## 听不到朋友说话
|
||||
|
||||
先问朋友是通过哪种方式说话。如果房主打开了 **分享麦克风**,声音随画面播放。请房主检查 **分享设置 → 声音**,观众取消画面静音。
|
||||
|
||||
使用房间语音时,房主先 **开启房间语音**,两人都打开 **互动 → 语音**,点击 **加入语音**。请发言的人打开麦克风。如果别人能听见这位朋友,检查自己是否暂停收听,或单独将对方静音。[房间语音控件](./room-tools.zh-CN.md#房间语音)
|
||||
|
||||
## 朋友听不到我说话
|
||||
|
||||
1. 打开 **互动 → 语音 → 语音设置**,选中你正在使用的麦克风,检查输入音量并允许浏览器使用麦克风。请一位朋友试听。**暂停收听** 只会暂停你听到的声音。
|
||||
2. 如果浏览器无法开麦,通过房主发送的完整 HTTPS 邀请重新加入。如果打开的是本地房间邀请,且浏览器显示证书警告,先与房主核对证书。如果浏览器无法接受本地证书,请房主发一个浏览器信任的 HTTPS 邀请。[核对本地证书](./troubleshooting.zh-CN.md#本地-https-证书提示)
|
||||
3. 如果双方都看到 **语音连接异常**,先用另一款浏览器打开同一个邀请。如果用的是公网邀请,还可以换手机热点再试。[检查语音连接](./network.zh-CN.md)
|
||||
|
||||
## 我能听见自己的回声
|
||||
|
||||
1. 保持房间语音开启,把直播画面的播放音量调到零,说一句话。如果回声消失,恢复播放音量,请房主暂时关闭分享来源的声音。整屏分享时对应 **系统声音**。
|
||||
2. 如果回声再次消失,而且房主仍听得到你,是分享把通话声传了回来。在 Windows 版 Piik App 中,房主可以只分享游戏窗口,或在整屏分享时排除播放通话的应用。如果游戏和通话在同一浏览器里,分享游戏标签页并开启标签页音频。[排除语音软件的声音](./sharing.zh-CN.md#分享屏幕时排除语音软件的声音)
|
||||
3. 如果直播静音后仍有回声,让使用扬声器的人戴上耳机。如果关掉来源声音后仍有回声,也可让房主暂时关闭 **分享麦克风**。
|
||||
|
||||
<details>
|
||||
<summary>使用虚拟混音器时检查监听输出</summary>
|
||||
|
||||
暂时关闭 **系统声音**。如果重复的声音消失,检查混音器把哪路声音送到了默认播放设备。调整监听输出后,恢复系统声音并请朋友再听一次。
|
||||
|
||||
</details>
|
||||
@@ -1,15 +1,17 @@
|
||||
# Help translate Piik
|
||||
|
||||
[中文](./translating.zh-CN.md) · [Contributing](../../CONTRIBUTING.md)
|
||||
English · [简体中文](./translating.zh-CN.md)
|
||||
|
||||
Piik includes Simplified Chinese and English. Suggest wording, correct a
|
||||
translation or add a language through GitHub issues and pull requests.
|
||||
Suggest wording, correct a translation or add a language through GitHub issues
|
||||
and pull requests.
|
||||
|
||||
For a wording suggestion, [open an issue](https://github.com/TNTcraftHIM/Piik/issues/new/choose)
|
||||
with the language, page/control, current text, proposed text and reason. Include
|
||||
a screenshot or steps to reach it; remove private invitations, passwords and
|
||||
personal content. You can send a suggestion without setting up development tools.
|
||||
|
||||
The 2.x interface includes English, Simplified Chinese and a visual-only mode. Traditional Chinese, Japanese and Korean have partial translations. Missing translations appear in English.
|
||||
|
||||
## Make your first correction
|
||||
|
||||
1. Try the affected screen and read the nearby controls. Check both existing
|
||||
@@ -28,7 +30,8 @@ personal content. You can send a suggestion without setting up development tools
|
||||
|
||||
4. Preview the affected screen and run the [relevant checks](#preview-and-check).
|
||||
For a typo in one language, edit that language. If the underlying meaning
|
||||
changes, update the corresponding messages in every registered language.
|
||||
changes, update Chinese and English; remove an outdated optional translation
|
||||
when it would misrepresent the behavior.
|
||||
5. Open a PR to `main` with the wording problem, languages/surfaces changed and
|
||||
preview results. For PR format, follow [Contributing](../../CONTRIBUTING.md#pull-request-scope).
|
||||
|
||||
@@ -36,7 +39,7 @@ personal content. You can send a suggestion without setting up development tools
|
||||
|
||||
| Surface | Editable source |
|
||||
| --- | --- |
|
||||
| App launcher and shared Browser/App UI, including tooltips and accessible labels | [English](../../src/client/locales/en.ts), [Chinese](../../src/client/locales/zh.ts) |
|
||||
| App launcher and shared Browser/App UI, including tooltips and accessible labels | [Locale registry](../../src/client/locales/index.ts), [English](../../src/client/locales/en.ts), [Chinese](../../src/client/locales/zh.ts); extra languages live beside them |
|
||||
| Welcome lines, waiting captions and changing browser-tab titles | The `enPlayful` / `zhPlayful` pools and title-frame catalogs in those same files; website welcome lines reuse these pools |
|
||||
| Website | [Page markup](../../site/index.html) and [interactive labels](../../site/main.js); text is paired by `en` and `zh-CN` |
|
||||
| Introduction film | [Film sources](../../site/film/README.md); captions, artwork and playback labels have their own bilingual text |
|
||||
@@ -94,11 +97,12 @@ layout questions, so contributors can coordinate work and review.
|
||||
|
||||
1. Copy `src/client/locales/en.ts` to a file such as `fr.ts`. Translate the
|
||||
messages and title labels, write natural [playful entries](#playful-copy), and
|
||||
rename the three exports. Retain `Record<CopyKey, string>`, `TitleFrameCatalog`
|
||||
and `PlayfulCatalog` from `zh.ts`.
|
||||
rename the three exports. Use `Partial<Record<CopyKey, string>>` for optional
|
||||
message catalogs; retain `TitleFrameCatalog` and `PlayfulCatalog` from `zh.ts`.
|
||||
You can reuse the English title/playful
|
||||
catalogs until those optional surfaces are translated.
|
||||
Chinese currently defines the key set; either existing language can provide
|
||||
context. Complete all keys rather than spreading an English catalog over
|
||||
missing translations.
|
||||
context. Include translated keys only; missing messages use the shared English fallback.
|
||||
2. Import the exports in [locales/index.ts](../../src/client/locales/index.ts)
|
||||
and add one registry entry. For example, **after translating** the catalogs:
|
||||
|
||||
@@ -110,7 +114,8 @@ layout questions, so contributors can coordinate work and review.
|
||||
Use an ASCII filename/key, the language's native name in `name`, a recognizable
|
||||
one-to-three-character button label in `short`, and a matching language tag
|
||||
in `tag`. Distinguish coexisting regional/script variants.
|
||||
Extra languages appear in a shared dropdown after visual mode. Check language
|
||||
Extra languages share the third control's dropdown with visual mode, beside
|
||||
the Chinese and English shortcuts. Check language
|
||||
selection, saved preferences and App handoff against the
|
||||
[system-language policy](../standards/presentation-lifecycle.md#visual-language).
|
||||
3. Check complete screens and the launch flow. New UI languages use English in
|
||||
@@ -130,7 +135,7 @@ Each language owns its welcome and waiting arrays, and each playful title has a
|
||||
fixed `label` plus a `variations` array. Add or remove entries in that language
|
||||
without matching another language's count, order or references. An empty array
|
||||
omits the decoration; one entry stays static. Operational keys and title labels
|
||||
still require complete translations. Errors, pauses, endings, required actions
|
||||
remain complete in Chinese and English. Errors, pauses, endings, required actions
|
||||
and slogans stay fixed.
|
||||
|
||||
Welcome entries carry `text` and two `symbols`, chosen from the existing
|
||||
@@ -146,8 +151,8 @@ brief and natural in context. Avoid temporary trends, literal borrowed dialogue
|
||||
and statements that invent progress, success or remaining time.
|
||||
|
||||
Timing follows the [playful-copy lifecycle](../standards/visual-language.md#playful-copy-lifecycle).
|
||||
Preview welcome text and its cipher at
|
||||
`/__tooltip-preview`; use `/__status-preview` for waiting captions and titles.
|
||||
With the local development UI running, open `http://localhost:8787/__tooltip-preview`
|
||||
for welcome text and its cipher, or `http://localhost:8787/__status-preview` for waiting captions and titles.
|
||||
Check both narrow windows and language changes. The website's build picks up
|
||||
welcome edits automatically; its other copy remains separate.
|
||||
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
# 参与 Piik 翻译
|
||||
|
||||
[English](./translating.md) · [贡献指南](../../CONTRIBUTING.md)
|
||||
[English](./translating.md) · 简体中文
|
||||
|
||||
Piik 提供简体中文和英文,可通过 GitHub Issue 与 Pull Request(PR)建议措辞、修正译文或新增语言。
|
||||
可通过 GitHub Issue 与 Pull Request(PR)建议措辞、修正译文或新增语言。
|
||||
|
||||
只想改一句话,可以直接[提交建议](https://github.com/TNTcraftHIM/Piik/issues/new/choose):
|
||||
写明语言、页面或控件、原文、建议译文及理由。附上截图或进入该页面的步骤,便于理解上下文;
|
||||
截图中请移除私人邀请链接、密码和个人内容。提交措辞建议无需搭建开发环境。
|
||||
|
||||
2.x 界面支持简体中文、英文与纯视觉模式。繁体中文、日文和韩文目前只有部分译文,尚未翻译的文字显示为英文。
|
||||
|
||||
## 从一处修改开始
|
||||
|
||||
1. 先试用对应界面,看看附近有哪些操作。必要时对照中英文理解含义;
|
||||
@@ -22,7 +24,7 @@ Piik 提供简体中文和英文,可通过 GitHub Issue 与 Pull Request(PR
|
||||
```
|
||||
|
||||
4. 预览对应界面并运行[相关检查](#预览与检查)。仅修正某种语言的错字时,修改该语言即可;
|
||||
如果调整的是功能含义,需要同步所有已登记语言中的对应内容。
|
||||
如果调整的是功能含义,同步中英文;可选语言中会误导用户的旧译文应移除以使用回退。
|
||||
5. 向 `main` 提交 PR,说明措辞问题、修改的语言和页面,以及预览结果。
|
||||
PR 格式见[贡献指南](../../CONTRIBUTING.md#pull-request-scope)。
|
||||
|
||||
@@ -77,9 +79,10 @@ App 启动错误需同时翻译网页与终端的说明,保留共用的原因
|
||||
|
||||
1. 复制 `src/client/locales/en.ts`,例如命名为 `fr.ts`。翻译正文与标题标签,按语境编写
|
||||
[俏皮话](#俏皮话),修改三个导出变量名。
|
||||
保留从 `zh.ts` 引入的 `Record<CopyKey, string>`、`TitleFrameCatalog`、`PlayfulCatalog` 类型。
|
||||
可选消息词库使用 `Partial<Record<CopyKey, string>>`,保留 `TitleFrameCatalog` 和 `PlayfulCatalog`。
|
||||
标题与俏皮话尚未翻译时可复用英文词库。
|
||||
中文词库目前定义键名集合,理解内容时可以参考任一现有语言。
|
||||
请补全全部键名,不要用展开英文词库的方式填充缺失译文。
|
||||
只提供已翻译的键名,缺少的消息由公共格式化函数回退英文。
|
||||
2. 在 [locales/index.ts](../../src/client/locales/index.ts) 中导入三个导出变量,并添加一项登记。
|
||||
例如,**完成词库翻译后**:
|
||||
|
||||
@@ -90,7 +93,7 @@ App 启动错误需同时翻译网页与终端的说明,保留共用的原因
|
||||
|
||||
文件名和键名使用 ASCII,`name` 使用语言本名,`short` 使用一至三个易识别的字符,
|
||||
`tag` 使用对应语言标签;同时提供地区或文字变体时,简称应能区分。
|
||||
额外语言显示在纯视觉模式后的共用下拉菜单中。
|
||||
中英文保留快捷入口,额外语言与纯视觉模式共同显示在第三个控件的下拉菜单中。
|
||||
按[系统语言规则](../standards/presentation-lifecycle.md#visual-language)检查初始选择、偏好保存与 App 跳转。
|
||||
3. 检查完整界面与启动流程。新增的界面语言在 App 终端中暂用英文;
|
||||
翻译终端时,还需同步启动服务和 loopback 对语言的校验,相关位置见
|
||||
@@ -104,7 +107,7 @@ App 启动错误需同时翻译网页与终端的说明,保留共用的原因
|
||||
|
||||
各语言独立维护欢迎语、等待短句数组;可轮换标题由固定的 `label` 和 `variations` 数组组成。
|
||||
可以单独增删某种语言的条目,不要求与其他语言的数量、顺序或梗一一对应。
|
||||
空数组不显示装饰文案;只有一条时保持静止。操作键名和标题标签仍须完整翻译,
|
||||
空数组不显示装饰文案;只有一条时保持静止。操作键名和标题标签的中英文仍须完整,
|
||||
错误、暂停、结束、必需操作提示及 slogan 保持固定。
|
||||
|
||||
欢迎语每项包含 `text` 和两个 `symbols`,从现有的
|
||||
@@ -118,7 +121,8 @@ App 启动错误需同时翻译网页与终端的说明,保留共用的原因
|
||||
避免时效热点、直接照搬台词,以及虚构进度、成功状态或剩余时间的说法。
|
||||
|
||||
轮换时间遵循[俏皮话生命周期](../standards/visual-language.md#playful-copy-lifecycle)。
|
||||
欢迎语及其暗号在 `/__tooltip-preview` 预览;等待短句与标题在 `/__status-preview` 预览。
|
||||
启动本地开发界面后,在浏览器打开 `http://localhost:8787/__tooltip-preview` 查看欢迎语及其暗号,
|
||||
打开 `http://localhost:8787/__status-preview` 查看等待短句与标题。
|
||||
检查窄窗口和切换语言的效果。官网构建会自动使用更新后的欢迎语,其他官网文案单独维护。
|
||||
|
||||
## 预览与检查
|
||||
|
||||
@@ -6,26 +6,13 @@ outline: 2
|
||||
|
||||
English · [简体中文](./troubleshooting.zh-CN.md) · [Documentation](./README.md)
|
||||
|
||||
Find your symptom below. Try its checks in order and stop when it works.
|
||||
If it persists, [save a diagnostic report](#reporting-a-problem) before refreshing.
|
||||
|
||||
## Common problems
|
||||
|
||||
Start at the first thing that fails:
|
||||
|
||||
| What you see | Check first |
|
||||
| --- | --- |
|
||||
| App does not open, or invitation will not load | [App and room entry](#opening-app-and-joining-a-room). |
|
||||
| Source picker is missing or sharing will not start | [Source and capture checks](#starting-a-share). |
|
||||
| Page opens, but the picture will not connect | [Media connection](#when-video-will-not-connect). |
|
||||
| Picture blurs or stutters | [Picture quality](#picture-blurs-stutters-or-stops). |
|
||||
| Phone fullscreen or playback controls are missing | [Fullscreen and controls](#fullscreen-or-playback-after-sleep). |
|
||||
| Picture works, but no game/movie sound | [Source sound](#picture-but-no-source-sound). |
|
||||
| Cannot hear a friend, or cannot use the microphone | [Room voice](#cannot-hear-someone-speaking) and [permissions](#microphone-or-remote-controls-are-unavailable). |
|
||||
| Gamepad does not respond | [Gamepad checks](#gamepads). |
|
||||
|
||||
Leave [advanced network checks](./network.md) until the matching
|
||||
symptom's simple checks have failed. Change one thing at a time.
|
||||
- [I can’t join my friend’s room, or the invitation opens to a blank page](#i-cant-join-my-friends-room)
|
||||
- [I joined the room but see “No media route available”](./no-media-route.md)
|
||||
- [I see the picture but cannot hear the game or my friend](./sound-help.md)
|
||||
- [The picture is blurry or keeps freezing](#the-picture-is-blurry-or-keeps-freezing)
|
||||
- [I selected a source but sharing didn’t start](#sharing-does-not-start-after-source-selection)
|
||||
|
||||
|
||||
## Opening App and joining a room
|
||||
@@ -34,6 +21,20 @@ symptom's simple checks have failed. Change one thing at a time.
|
||||
[Public invite / 1033](#public-invitation-fails-or-shows-1033) · [Local invitation](#local-invitation-will-not-open) ·
|
||||
[Local certificate](#local-https-certificate-warning) · [Room code](#room-code-does-not-work) · [Room creation 403](#room-creation-returns-403)
|
||||
|
||||
<span id="invite-blank"></span>
|
||||
|
||||
<a id="the-invitation-opens-to-a-blank-page"></a>
|
||||
|
||||
### I can’t join my friend’s room
|
||||
|
||||
Ask the Host for the current invitation and open the full link in your browser.
|
||||
|
||||
- **The browser says the site cannot be reached.** A [local invitation](#local-invitation-will-not-open) needs a network both devices can reach. If you’re in different locations, ask for a **Public invite**. If a public address shows 1033, ask the Host to [check the invitation](#public-invitation-fails-or-shows-1033).
|
||||
- **The tab shows a title but the page stays blank.** Try the same link in another browser. If it stays blank, ask a friend to try it too and tell the Host which devices can open it.
|
||||
- **The room opens but the TV stays empty.** Ask the Host to check their preview, then follow the [picture connection checks](#when-video-will-not-connect).
|
||||
|
||||
<span id="app-not-ready"></span>
|
||||
|
||||
### App startup fails, or no page opens
|
||||
|
||||
1. Read the reason on the launch page and in the terminal. If the App is still
|
||||
@@ -48,17 +49,16 @@ symptom's simple checks have failed. Change one thing at a time.
|
||||
Download the APK from the [App installation steps](./getting-started.md#share-with-piik-app).
|
||||
If Android asks, allow this browser or file manager to install the downloaded APK.
|
||||
|
||||
If installation reports a conflicting package or signature and you previously
|
||||
installed a test build, uninstall that test App before installing the official
|
||||
APK. The test build and official release use different signing keys. Uninstalling
|
||||
clears App settings, including approved sites and the starred startup site;
|
||||
browser settings are stored separately. Later official updates can be installed
|
||||
over the existing official App.
|
||||
If Android reports a conflicting package or signature, check whether a Piik test build is installed. Uninstalling it clears App settings, including approved sites and the starred startup site. Browser settings stay on the device. If you have the test build, uninstall it and install the official APK. The two builds use different signing keys. Future official updates can install over the official App.
|
||||
|
||||
### macOS blocks first launch
|
||||
|
||||
Current Mac builds are unsigned and unnotarized. To open one, verify the
|
||||
download and allow this App through macOS's first-launch check:
|
||||
Current Mac builds are not Developer ID-signed or notarized by Apple. For
|
||||
first-launch warnings, verify the download and allow this App through macOS:
|
||||
|
||||
If macOS reports malware, says the App will damage your computer, or moves it
|
||||
to Trash automatically, [report the exact alert and download link](#reporting-a-problem).
|
||||
Do not use the quarantine command below for those alerts.
|
||||
|
||||
1. Download the matching Mac ZIP from the project's Releases and compare its
|
||||
SHA-256 with the checksum published for that release. In Terminal, run
|
||||
@@ -79,21 +79,9 @@ checks enabled.
|
||||
|
||||
### Public invitation fails or shows 1033
|
||||
|
||||
App **Public invite** uses Cloudflare Tunnel for its temporary web address.
|
||||
[Error 1033](https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-1xxx-errors/error-1033/)
|
||||
means the tunnel is disconnected. For `public invitation service exited before
|
||||
connecting` or `exit status 1`, read the following error details to choose a check.
|
||||
|
||||
1. **Viewers: confirm the link.** Ask the host to check that the App is running
|
||||
and the computer is awake, then send the current invitation. Use a new link
|
||||
after the App restarts; the old address may no longer work.
|
||||
2. **Hosts: read the failure details.** Check that the complete App package was
|
||||
extracted. Save the full error from the launch page or terminal, including
|
||||
any detail after the exit code, and try again with **Debug launch**
|
||||
enabled.
|
||||
3. **Compare networks.** Try a phone hotspot. Check whether DNS, a proxy or a
|
||||
firewall blocks Cloudflare Tunnel; adjust only relevant rules. Ask the
|
||||
administrator about a school or workplace network.
|
||||
1. Ask the Host to wake the computer, keep App running and send the current invitation. Restarting App can change the temporary address. [Error 1033](https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-1xxx-errors/error-1033/) means the invitation tunnel has disconnected.
|
||||
2. On the Host, extract the full App package and retry with **Debug launch**. For `exit status 1` or `public invitation service exited before connecting`, save the detail after the exit code.
|
||||
3. Try a phone hotspot. If it works, ask the network administrator to check DNS, proxy routing and firewall rules using the errors below.
|
||||
|
||||
<details>
|
||||
<summary>Advanced: tunnel errors, proxy routing and port 7844</summary>
|
||||
@@ -127,30 +115,57 @@ temporary address, ask that site's administrator to check its service.
|
||||
|
||||
### Local invitation will not open
|
||||
|
||||
If the browser times out before showing Piik, check access to the Host's App:
|
||||
1. Keep the Host’s App running. In **Local room**, select an adapter address the Viewer can reach and send the full invitation. Both devices need a reachable LAN or the same virtual LAN. Guest Wi-Fi may isolate devices.
|
||||
2. If your friend cannot use the same network, ask the Host for a current **Public invite**.
|
||||
|
||||
1. Keep the host's App running. In **Local room**, select an adapter address
|
||||
friends can reach and send the full invitation link. Both devices need a
|
||||
reachable LAN or the same virtual LAN; guest Wi-Fi may isolate them.
|
||||
2. On the Windows host, open **Windows Security → Firewall & network protection →
|
||||
Allow an app through firewall**. Check the currently running `piik-app.exe`
|
||||
and allow the network type in use. A virtual adapter may be classified as
|
||||
**Public**; advanced rules can restrict access to that adapter and subnet.
|
||||
3. After extracting an update to another folder, update any firewall rule that
|
||||
points to the old file. Add the current App manually if needed; keep the firewall on.
|
||||
<details>
|
||||
<summary>Advanced Host checks · Firewall and ports</summary>
|
||||
|
||||
If App reports **the local port is unavailable**, close an older Piik instance
|
||||
using it. If another application needs that port, start Piik with `--port 9876`
|
||||
and send the newly generated invitation. Both the web and local STUN ports must
|
||||
be available; changing only the URL will not move the service.
|
||||
1. On Windows, open **Windows Security → Firewall & network protection → Allow an app through firewall**. Allow the current `piik-app.exe` on the network type in use. Update the rule if you extracted App to a new folder. Virtual adapters may use the **Public** profile. Advanced rules can limit access to the adapter and subnet. [Microsoft firewall instructions](https://support.microsoft.com/en-us/windows/security/firewall/risks-of-allowing-apps-through-windows-firewall)
|
||||
2. If App reports **the local port is unavailable**, close the older Piik instance using it. If another app needs the port, launch Piik with `--port 9876` and send the new invitation. The web and local STUN ports must both be available.
|
||||
|
||||
Changing permissions may require an administrator; see
|
||||
[Microsoft's instructions](https://support.microsoft.com/en-us/windows/security/firewall/risks-of-allowing-apps-through-windows-firewall).
|
||||
If the page opens but video does not connect, continue with
|
||||
[media connection checks](#when-video-will-not-connect).
|
||||
</details>
|
||||
|
||||
Once the page opens, follow the [picture connection checks](#when-video-will-not-connect) if the TV stays empty.
|
||||
|
||||
<details>
|
||||
<summary>Optional · Check page requests and MTU when a virtual LAN invitation only shows the title</summary>
|
||||
|
||||
If the tab shows **Piik** but the page stays blank or keeps loading, open the
|
||||
browser's **Developer Tools → Network** and reload the invitation. Check the
|
||||
document and the main JavaScript request.
|
||||
|
||||
- If a request stays pending or times out, try the same Host on a shared LAN
|
||||
if possible. If it works there and stalls on the virtual LAN, check the
|
||||
virtual network path, including whether it can deliver larger packets.
|
||||
- If JavaScript returns `404`, reopen the current invitation in a private
|
||||
window. If it persists, tell the Host which build is running and that the
|
||||
script returned `404`.
|
||||
- If JavaScript finishes downloading and the page still stalls, check the
|
||||
browser's **Console** for a JavaScript error.
|
||||
|
||||
If a small response (such as the page document) arrives while the full script
|
||||
times out, the tunnel may be dropping larger packets. A fresh connection may
|
||||
also time out during TLS before the browser receives any HTTP response. To
|
||||
compare before and after on your virtual LAN:
|
||||
|
||||
1. Confirm which virtual adapter carries the invitation on both devices. Record
|
||||
its MTU (maximum packet size) and test the same invitation on a fresh connection.
|
||||
2. Use the provider's supported controls to restore path-MTU feedback (such as
|
||||
ICMP Packet Too Big) or set both virtual adapters to an MTU supported by the
|
||||
known tunnel path. If the provider manages these settings, ask its support team.
|
||||
3. Open a fresh connection and check whether both the document and full script
|
||||
load. Restore the original settings if the change does not help.
|
||||
|
||||
</details>
|
||||
|
||||
### Local HTTPS certificate warning
|
||||
|
||||
For a local invitation, confirm the address with the Host through your usual chat. Compare the certificate fingerprints using the steps below before continuing. If you prefer a public link, ask the Host for a current **Public invite**. If a public address also shows a warning, tell the site administrator and wait for them to fix it.
|
||||
|
||||
<details>
|
||||
<summary>Advanced · Verify an expected local certificate with the Host</summary>
|
||||
|
||||
Piik App's **Local room**, and servers using `TLS_SELF_SIGNED=true`, generate a
|
||||
local certificate without asking a public certificate authority. The browser
|
||||
therefore shows a certificate warning before opening the invitation.
|
||||
@@ -172,11 +187,11 @@ device already trusts; administrators can follow the [HTTPS deployment guide](..
|
||||
These instructions apply to an expected local self-signed certificate. An
|
||||
unexpected warning on a public HTTPS site needs investigation by its operator.
|
||||
|
||||
</details>
|
||||
|
||||
### Room code does not work
|
||||
|
||||
Open the Host's current full invitation link first. A room code works only on
|
||||
its original Piik site. A site with empty-room recycling may have reclaimed the
|
||||
room; the Host can create a new one. See [joining a room](./getting-started.md#join-a-friends-room).
|
||||
Ask the Host to copy the full invitation from the current room. Open that link on the Viewer’s device. Each room code belongs to the site where the Host created the room. If the old room has expired, the Host can create a room and send a fresh invitation. [Join a friend’s room](./getting-started.md#join-a-friends-room)
|
||||
|
||||
If all room codes on the site are in use, retry later or use another Piik site.
|
||||
Administrators can configure [empty-room retention](../operations/self-hosting.md#1-configure-and-start-piik)
|
||||
@@ -184,6 +199,11 @@ to reclaim unused codes.
|
||||
|
||||
### Room creation returns 403
|
||||
|
||||
Ask the site administrator for the correct address to create a room. If it still shows 403, send them the site address and the error text.
|
||||
|
||||
<details>
|
||||
<summary>Site administrators · Check allowed addresses</summary>
|
||||
|
||||
Piik rejects room creation from a browser address that the server has not allowed,
|
||||
even when the page opens normally. The site administrator should:
|
||||
|
||||
@@ -200,6 +220,8 @@ reverse proxy preserves the browser's `Origin` header. A 403 from the proxy or
|
||||
WAF itself needs its own logs; do not disable origin validation to bypass it.
|
||||
See [Server deployment](../operations/self-hosting.md) for the configuration.
|
||||
|
||||
</details>
|
||||
|
||||
## Starting a share
|
||||
|
||||
[No picker](#no-screen-picker) · [Missing windows](#app-windows-or-screens-are-missing) ·
|
||||
@@ -215,10 +237,9 @@ checks for that stage and **Copy failure details**; follow the checks before ret
|
||||
|
||||
### No screen picker
|
||||
|
||||
Allow screen recording when your OS asks. Browser screen capture needs HTTPS or
|
||||
`localhost`; try sharing from a desktop computer. In the source picker, choose
|
||||
**Browser → Choose what to share** to open the browser's screen, window or tab
|
||||
chooser. Missing App sources are covered below.
|
||||
On the Host’s device, open the picker and select **Browser → Choose what to share**. Allow screen recording if prompted, then choose a screen, window or tab.
|
||||
|
||||
If the chooser never opens, try the full HTTPS invitation on a desktop. Browser capture also works on `localhost` on the sharing device. For an empty App list, see [missing windows or screens](#app-windows-or-screens-are-missing).
|
||||
|
||||
### App windows or screens are missing
|
||||
|
||||
@@ -241,34 +262,25 @@ connection, check [WebRTC settings](./network.md#browser-webrtc-restrictions).
|
||||
|
||||
### Sharing does not start after source selection
|
||||
|
||||
Click the error icon below the TV for suggested checks, a copyable failure
|
||||
summary and browser diagnostics.
|
||||
1. Click the error icon below the TV and copy the failure summary. For an App disconnect or timeout, check App is responding, click **App** at the top of the site and allow local network access when prompted.
|
||||
2. If the selected source fails to start, try an ordinary window, then the **Browser** picker. If the browser cannot read it, keep the source open and allow screen recording. Close any app with exclusive access to the camera.
|
||||
3. If only Windows App capture fails, try **Auto** or **VP8** and follow the [graphics checks](#h264-sharing-fails-on-windows). For a media connection error, check [WebRTC settings](./network.md#browser-webrtc-restrictions) and local network permission. For [HTTP 403](#room-creation-returns-403), check site configuration.
|
||||
|
||||
- **App disconnected or request timed out:** check that the App is running and
|
||||
responding, then click **App** at the top of the site to connect. Allow local network
|
||||
access if the browser asks.
|
||||
- **App could not start the selected source:** try an ordinary window or screen,
|
||||
then compare with the **Browser** source picker. On Windows, try **Auto** or
|
||||
**VP8** and follow [graphics checks](#h264-sharing-fails-on-windows).
|
||||
- **Browser cannot read the source or permission is missing:** keep the source
|
||||
open, allow screen recording and select the source again from the sharing page.
|
||||
For a camera, also check whether another application has exclusive use of it.
|
||||
- **Media connection failed:** check [browser WebRTC settings](./network.md#browser-webrtc-restrictions)
|
||||
and local network permission. For **room creation HTTP 403**, check [site configuration](#room-creation-returns-403).
|
||||
|
||||
|
||||
If it still fails, [collect matching Web and App reports](#reporting-a-problem)
|
||||
with the copied failure summary and selected source type.
|
||||
Still failing? Save [matching Web and App reports](#reporting-a-problem) with the selected source type and the copied summary.
|
||||
|
||||
### H264 sharing fails on Windows
|
||||
|
||||
1. **Compare codecs on the same source.** In **Sharing settings → Picture → Fine-tune picture**, change the
|
||||
video codec from **H264** to **Auto** or **VP8**, then start sharing again.
|
||||
If VP8 works, you can keep using it while checking the H264 path.
|
||||
2. **Update and restart.** Update Piik App and Chrome, and install the appropriate
|
||||
|
||||
<details>
|
||||
<summary>If you need H264, check graphics drivers and Chrome settings</summary>
|
||||
|
||||
1. **Update and restart.** Update Piik App and Chrome, and install the appropriate
|
||||
graphics driver from your computer or GPU manufacturer's official support
|
||||
page. On laptops with two GPUs, check both drivers. Restart after installation.
|
||||
3. **For Chrome, check graphics acceleration and GPU preference.** In Chrome's
|
||||
2. **For Chrome, check graphics acceleration and GPU preference.** In Chrome's
|
||||
**Settings → System**, enable graphics acceleration if it was disabled, then
|
||||
restart Chrome ([Google's setting instructions](https://support.google.com/meet/answer/10058482?hl=en)).
|
||||
On a multi-GPU Windows PC, open **Settings → System → Display → Graphics**,
|
||||
@@ -281,63 +293,44 @@ native encoder separately. If it still fails, [save reports](#reporting-a-proble
|
||||
with the codec comparison. If both codecs fail, also check
|
||||
[WebRTC restrictions](./network.md#browser-webrtc-restrictions).
|
||||
|
||||
</details>
|
||||
|
||||
## Picture and playback
|
||||
|
||||
[No connection](#when-video-will-not-connect) · [Blur / stutter](#picture-blurs-stutters-or-stops) ·
|
||||
[No connection](#when-video-will-not-connect) · [Blur / stutter](#the-picture-is-blurry-or-keeps-freezing) ·
|
||||
[Black game capture](#game-capture-is-black-or-sharing-stops) · [Washed-out HDR](#hdr-picture-looks-too-bright-or-washed-out) ·
|
||||
[Capture border](#yellow-capture-border-on-windows) · [Fullscreen / sleep](#fullscreen-or-playback-after-sleep)
|
||||
|
||||
<span id="room-no-picture"></span>
|
||||
|
||||
### When video will not connect
|
||||
|
||||
**No media route available** means Piik has not found a connection to deliver
|
||||
the picture. Check the viewing connection, browser policy and network:
|
||||
If the room opens but the Viewer sees no picture, check what the Host sees in their preview. [No media route available](./no-media-route.md)
|
||||
|
||||
1. **Retry the viewing page.** Use **Reconnect** if available; otherwise refresh
|
||||
or reopen the invitation. Let each attempt finish. One or two fresh attempts
|
||||
are enough to compare; repeated refreshes cannot remove a network restriction.
|
||||
2. **Check browser WebRTC settings.** Browser settings, VPNs and privacy extensions
|
||||
can block media for both Host and Viewer. Follow the [WebRTC checks](./network.md#browser-webrtc-restrictions).
|
||||
3. **Try another network**, such as a phone hotspot. Check your VPN/proxy's UDP
|
||||
policy; ask the administrator on a managed network.
|
||||
4. **Invite a friend on another network.** A Viewer who receives the picture and
|
||||
has spare forwarding capacity may give Piik another path to you. Piik chooses
|
||||
it automatically; extra people help only when those connections work.
|
||||
<span id="playback-stalls"></span>
|
||||
|
||||
Still failing? Continue with [advanced network checks](./network.md)
|
||||
and collect reports from the Host and affected Viewer for the same attempt.
|
||||
<a id="picture-blurs-stutters-or-stops"></a>
|
||||
|
||||
### Picture blurs, stutters or stops
|
||||
### The picture is blurry or keeps freezing
|
||||
|
||||
Brief blur can result from automatic adjustments to network or encoding load.
|
||||
If it recurs or never recovers, compare the following:
|
||||
1. When playback stalls, watch the Host preview at the same time. If it freezes too, check that the source is updating and whether the game is saturating the CPU or GPU. Try lowering resolution or frame rate in **Sharing settings → Picture**, one at a time.
|
||||
2. If the preview stays smooth, ask another Viewer whether they see the pauses. If only your picture stalls periodically, try **Increase playback buffering** where available. Compare the same movement. Restore the previous setting if stalls persist or the extra delay affects controls, then compare another browser or hotspot.
|
||||
3. If everyone sees the pauses, ask the Host to share an ordinary window. If that window plays smoothly, use the Windows encoding checks below when returning to the game.
|
||||
|
||||
1. **Identify who is affected.** Is it the host's preview, every viewer or just
|
||||
one viewer? Note the time and whether it recovers on its own.
|
||||
2. **Change one thing at a time.** The host can try a lower resolution or frame
|
||||
rate under **Sharing settings → Picture**, and check CPU/GPU load while the game runs.
|
||||
An affected viewer can compare another browser or a phone hotspot. Increasing
|
||||
bitrate does not necessarily help.
|
||||
3. **Check the actual codec.** Open the host's **Connection details** and
|
||||
read **Video codec**. On Windows, Auto may select VP8 when H264 is unavailable,
|
||||
its check cannot finish, or it cannot sustain the selected frame rate.
|
||||
Software encoding competes with the game for CPU time. For **Browser** capture,
|
||||
follow the [graphics checks](#h264-sharing-fails-on-windows), or compare the App's
|
||||
window/screen capture. The App tries available hardware encoders independently.
|
||||
Keep Auto or VP8 when the H264 check fails.
|
||||
4. **Save reports from the affected period.** Follow [report collection](#reporting-a-problem) for the Host and affected Viewer;
|
||||
App capture also needs an App report. Try **Reconnect** if the picture does
|
||||
not recover. Export before refreshing.
|
||||
<details>
|
||||
<summary>Windows Hosts · Check which video codec is in use</summary>
|
||||
|
||||
If sharing stopped altogether, read the reason below the TV and follow
|
||||
[sharing startup checks](#sharing-does-not-start-after-source-selection). If the
|
||||
host is still sharing but viewers cannot receive video, follow [connection checks](#when-video-will-not-connect).
|
||||
If all Viewers are affected, check **Connection details → Video codec** on the Host. Windows Auto may select VP8 when H264 is unavailable, its check is incomplete or it cannot sustain the frame rate. Software encoding competes with the game for CPU time. For Browser capture, follow the [graphics checks](#h264-sharing-fails-on-windows) or compare App window/screen capture. Keep Auto or VP8 if the H264 check fails.
|
||||
|
||||
</details>
|
||||
|
||||
If sharing ended, read the reason below the TV. [Export reports before refreshing](#reporting-a-problem) from the Host, affected Viewer and any App handling capture.
|
||||
|
||||
### Game capture is black or sharing stops
|
||||
|
||||
Check that you selected the game's window or the screen displaying it, then try
|
||||
the game's borderless window mode. Compare an ordinary window, and try both App
|
||||
capture and the **Browser** source picker. Protected content may be unavailable
|
||||
for capture.
|
||||
Check the Host’s preview. If it is black, have the Host select the game window or the screen showing it. Switch the game to borderless window mode and check the preview again.
|
||||
|
||||
If the game stays black, share an ordinary window. If that window appears, switch between App capture and the **Browser** picker and try sharing the game again. Protected content may block capture.
|
||||
|
||||
If Piik returns to the start screen after you enter a game, read the reason below
|
||||
the TV and follow [sharing startup checks](#sharing-does-not-start-after-source-selection).
|
||||
@@ -345,11 +338,9 @@ Include the game and window mode in your [report](#reporting-a-problem).
|
||||
|
||||
### HDR picture looks too bright or washed out
|
||||
|
||||
Windows App capture through **Apps / Windows** or **Screens** converts HDR to SDR
|
||||
for viewers. The **Browser** picker uses browser capture instead; some HDR sources
|
||||
can look overexposed. Try the App categories above,
|
||||
or temporarily turn off HDR in Windows display settings and select the source again.
|
||||
Higher resolution or bitrate cannot restore clipped highlights.
|
||||
If bright areas look washed out to Viewers but look normal on the Host’s screen, share again using **Apps / Windows** or **Screens** in the Windows App. App converts the HDR picture to SDR for playback.
|
||||
|
||||
To keep using **Browser** capture, temporarily turn off HDR in Windows display settings and select the source again. Recapturing the picture can recover highlight detail that raising the bitrate or resolution cannot.
|
||||
|
||||
If it persists, report the HDR setting and GPU/display model with source/viewer
|
||||
comparison pictures. See [HDR capture notes](../research/media-fidelity.md#hdr-to-sdr) for background.
|
||||
@@ -401,8 +392,12 @@ for current setup details.
|
||||
|
||||
</details>
|
||||
|
||||
<span id="mobile-stop"></span>
|
||||
|
||||
### Fullscreen or playback after sleep
|
||||
|
||||
To end a share from your phone, return to the sharing page and select **Stop sharing**. If you are controlling a desktop, use the drawer below the picture to access controls. See [remote control](./remote-control.md).
|
||||
|
||||
- **Playback controls are hidden:** tap the picture to bring them back. During
|
||||
remote control, use the drawer tab at the TV's bottom edge.
|
||||
- **Fullscreen is missing or rejected:** open the invitation in a standalone
|
||||
@@ -420,63 +415,32 @@ for current setup details.
|
||||
sharing tab. Start sharing again if needed; browser and OS suspension can
|
||||
interrupt capture or playback.
|
||||
|
||||
**Sharing stopped after switching apps on Android.** Return to your sharing page, choose **Start sharing**, select your screen again and confirm Android’s screen-sharing prompt if it appears. If Piik App has closed, reopen it first.
|
||||
|
||||
If this keeps happening, choose **Help → Debug** before starting the next share and confirm the page reload. Start sharing and switch apps to reproduce the problem. Return to the same sharing page and choose **Help → Web report**. Include the report from that attempt, your Piik version, phone model, Android version, and the app you switched to.
|
||||
|
||||
## Sound and browser permissions
|
||||
|
||||
[Source sound](#picture-but-no-source-sound) · [Room voice](#cannot-hear-someone-speaking) ·
|
||||
[Check game sound](./sound-help.md#i-can-see-the-picture-but-cannot-hear-the-game) · [Check room voice](./sound-help.md#i-cannot-hear-a-friend-speaking) ·
|
||||
[Echo / unwanted sound](#echo-or-unwanted-application-audio) · [Microphone / control permissions](#microphone-or-remote-controls-are-unavailable)
|
||||
|
||||
### Picture but no source sound
|
||||
|
||||
1. Unmute the video and check your playback volume.
|
||||
2. The Host should select a source with shareable audio and enable its sound in
|
||||
the source picker. Available sound depends on the source and platform.
|
||||
3. Camera video and microphone inputs are selected separately. For a built-in
|
||||
camera microphone or OBS audio, see [camera and audio inputs](./sharing.md#cameras-and-virtual-audio-inputs).
|
||||
Tap the picture and check its playback volume. Ask the Host to play game audio they can hear, then check whether another Viewer hears it.
|
||||
|
||||
[I can see the picture but cannot hear the game](./sound-help.md#i-can-see-the-picture-but-cannot-hear-the-game).
|
||||
|
||||
### Cannot hear someone speaking
|
||||
|
||||
For speech added through **Include my microphone**, check the picture's
|
||||
[source sound](#picture-but-no-source-sound) and the Host's **Sharing settings → Sound**.
|
||||
For room voice, follow these steps:
|
||||
|
||||
1. Both people join **Interact → Voice**; the Host selects **Open room voice** first.
|
||||
Joining only starts listening. Each speaker must turn on their own microphone.
|
||||
2. The speaker checks browser microphone permission, input device and input volume
|
||||
in **Voice settings**. Microphone access needs HTTPS or `localhost`.
|
||||
3. Check whether you paused listening or muted that person locally. These controls
|
||||
are separate from video mute; **Pause listening** leaves your microphone on.
|
||||
|
||||
If voice reports a connection failure, compare [WebRTC settings](./network.md#browser-webrtc-restrictions)
|
||||
and another network. See [room voice](./room-tools.md#room-voice) for its controls.
|
||||
[I cannot hear a friend speaking](./sound-help.md#i-cannot-hear-a-friend-speaking).
|
||||
|
||||
### Echo or unwanted application audio
|
||||
|
||||
Use headphones if speakers are feeding sound back into a microphone. Windows
|
||||
App screen capture can [exclude a voice app from source audio](./sharing.md#exclude-a-voice-app-from-screen-audio);
|
||||
this does not remove acoustic echo.
|
||||
|
||||
If a virtual microphone remains audible when muted in Piik, temporarily turn off
|
||||
**System sound**. If that removes it, the mixer's playback output is also entering
|
||||
source audio. Check its playback/monitoring route or share only the desired app's
|
||||
window audio. Piik's microphone mute does not mute that separate source.
|
||||
[I hear my own voice twice](./sound-help.md#i-hear-my-own-voice-twice).
|
||||
|
||||
### Microphone or remote controls are unavailable
|
||||
|
||||
1. Open the complete HTTPS invitation generated by the current App. For a local
|
||||
invitation, [confirm its certificate](#local-https-certificate-warning) first.
|
||||
A plain HTTP LAN page can play video, chat and listen to voice, but cannot use
|
||||
the secure microphone/camera capture or remote-control APIs. Changing only the
|
||||
URL scheme does not enable HTTPS; `localhost` means the current device.
|
||||
2. For a microphone, review this site's browser permission and selected input.
|
||||
3. For remote control, update the Host's App and the site, then refresh the Viewer
|
||||
page. The Host must use desktop App window/screen capture and enable control;
|
||||
Browser and camera capture cannot receive remote input. Android can share its
|
||||
screen and control a desktop as a Viewer, but cannot receive remote control;
|
||||
its Host page therefore has no enable-control action. Follow the
|
||||
[authorization steps](./room-tools.md#let-a-friend-control-your-shared-screen).
|
||||
|
||||
If your browser cannot accept the local certificate, use a reachable **Public
|
||||
invite** or an HTTPS site with a trusted certificate.
|
||||
[My friends cannot hear me](./sound-help.md#my-friends-cannot-hear-me). For remote input, follow the [remote control checks](./remote-control.md).
|
||||
|
||||
## Gamepads
|
||||
|
||||
@@ -496,33 +460,25 @@ Viewers only need their browser. Driver checks and installation belong on the Ho
|
||||
|
||||
## Advanced network checks
|
||||
|
||||
If the page opens but picture or voice will not connect, use the [network guide](./network.md). Choose a section below:
|
||||
|
||||
### Campus networks and strict NAT
|
||||
|
||||
Choose a connection option for campus or work networks. [View steps](./network.md#campus-networks-and-strict-nat).
|
||||
|
||||
### Browser WebRTC restrictions
|
||||
|
||||
Check settings when the same invitation works in another browser. [View steps](./network.md#browser-webrtc-restrictions).
|
||||
|
||||
### STUN, IPv6 and router checks
|
||||
|
||||
Read discovery logs or check a router you manage. [View steps](./network.md#stun-ipv6-and-router-checks).
|
||||
|
||||
### Optional: a virtual LAN
|
||||
|
||||
Use Local room over Tailscale, ZeroTier or UU. [View steps](./network.md#optional-a-virtual-lan).
|
||||
- <a id="campus-networks-and-strict-nat"></a>[Video works on a hotspot but fails on campus or at work](./network.md#campus-networks-and-strict-nat)
|
||||
- <a id="browser-webrtc-restrictions"></a>[The same invitation works in another browser](./network.md#browser-webrtc-restrictions)
|
||||
- <a id="stun-ipv6-and-router-checks"></a>[Check your router or discovery logs](./network.md#stun-ipv6-and-router-checks)
|
||||
- <a id="optional-a-virtual-lan"></a>[Join a local room with friends elsewhere over a virtual LAN](./network.md#optional-a-virtual-lan)
|
||||
|
||||
## Reporting a problem
|
||||
|
||||
To [report a problem on GitHub](https://github.com/TNTcraftHIM/Piik/issues), include your device, what you clicked and what appeared. Logs are optional. If sharing failed, the Host can click the error icon below the TV to copy its message.
|
||||
|
||||
<details>
|
||||
<summary>When a report is needed · Collect diagnostics</summary>
|
||||
|
||||
Include the Piik version, OS/browser, time, expected result and reproduction steps.
|
||||
For capture problems, add the source type, codec, GPU/driver and whether another
|
||||
source or VP8 works. For network problems, add the network type.
|
||||
|
||||
Enable diagnostics before reproducing once, then export before refreshing:
|
||||
|
||||
- **Web:** use the page's diagnostics button. A sharing failure's error icon below
|
||||
- **Web:** select **Help → Debug**, confirm the reload and reproduce the problem. Then select **Help → Web report** to download it. A sharing failure's error icon below
|
||||
the TV also provides a copyable summary; it contains the Web version, message
|
||||
and code, without invitation links or source names.
|
||||
- **Desktop App capture or remote control:** also enable **Debug launch** on the Host App's mode selection page,
|
||||
@@ -535,3 +491,5 @@ Reports stay on your device. Review private information before sharing them;
|
||||
If you cannot collect logs, send the full error text and reproduction steps.
|
||||
|
||||
For other guides, return to [the documentation home](./README.md).
|
||||
|
||||
</details>
|
||||
@@ -2,29 +2,19 @@
|
||||
outline: 2
|
||||
---
|
||||
|
||||
# 问题排查
|
||||
# 疑难解答
|
||||
|
||||
[English](./troubleshooting.md) · 简体中文 · [文档中心](./README.zh-CN.md)
|
||||
|
||||
按症状查找下方说明,依次尝试,恢复正常后就不必继续。
|
||||
仍有问题时,请在刷新前[收集诊断报告](#反馈问题)。
|
||||
<a id="问题排查"></a>
|
||||
|
||||
## 常见问题
|
||||
|
||||
从最先出问题的地方开始:
|
||||
|
||||
| 你看到什么 | 先查哪里 |
|
||||
| --- | --- |
|
||||
| App 打不开,或邀请网页无法访问 | [打开 App 与加入房间](#打开-app-与加入房间)。 |
|
||||
| 没有选源器,或选好来源后无法开播 | [来源与采集检查](#开始分享)。 |
|
||||
| 网页能打开,但画面连接不上 | [媒体连接](#画面连接不上)。 |
|
||||
| 画面模糊或卡顿 | [画质检查](#画面模糊卡顿或中断)。 |
|
||||
| 手机找不到全屏或播控按钮 | [全屏与播控](#全屏或休眠后播放异常)。 |
|
||||
| 有画面,但听不到游戏/影片声音 | [来源声音](#有画面但没有来源声音)。 |
|
||||
| 听不到朋友,或无法开麦 | [房间语音](#听不到说话声)与[浏览器权限](#无法使用麦克风或远程控制)。 |
|
||||
| 手柄没有响应 | [手柄排查](#手柄没有响应)。 |
|
||||
|
||||
对应症状的简单检查无效后,再看[进阶网络排查](./network.zh-CN.md)。每次只改一项,方便对照。
|
||||
- [进不去朋友的房间,或打开邀请后只有标题](#进不去朋友的房间)
|
||||
- [进房后没画面,提示「没有可用的媒体线路」](./no-media-route.zh-CN.md)
|
||||
- [有画面,但听不到游戏或朋友的声音](./sound-help.zh-CN.md)
|
||||
- [画面模糊、卡顿或中断](#画面模糊卡顿或中断)
|
||||
- [房主选好来源后无法开始分享](#选源后无法开始分享)
|
||||
|
||||
|
||||
## 打开 App 与加入房间
|
||||
@@ -33,6 +23,20 @@ outline: 2
|
||||
[公网邀请 / 1033](#公网邀请创建失败或出现-1033) · [本地邀请](#本地邀请打不开) ·
|
||||
[本地证书](#本地-https-证书提示) · [房间号](#房间号无法使用) · [创建房间 403](#创建房间返回-403)
|
||||
|
||||
<span id="invite-blank"></span>
|
||||
|
||||
<a id="邀请打不开或只有标题"></a>
|
||||
|
||||
### 进不去朋友的房间
|
||||
|
||||
请房主发来当前邀请,在浏览器中打开完整链接。
|
||||
|
||||
- **浏览器提示无法访问。** 如果房主发的是[本地邀请](#本地邀请打不开),双方需要在能互相访问的网络上。异地朋友可以请房主发 **公网邀请**。公网地址显示 1033 时,请房主[检查邀请状态](#公网邀请创建失败或出现-1033)。
|
||||
- **标签页有标题,页面一直空白。** 在另一款浏览器里打开同一链接。如果仍然空白,请朋友也试一次,告诉房主哪些设备能打开。
|
||||
- **已经能看到房间,电视里没有画面。** 请房主看一眼自己的预览,再按[画面连接检查](#画面连接不上)操作。
|
||||
|
||||
<span id="app-not-ready"></span>
|
||||
|
||||
### App 启动失败或没有打开网页
|
||||
|
||||
1. 查看启动页面和终端中的原因。App 仍在运行时,可复制显示的地址,在浏览器中打开。
|
||||
@@ -44,14 +48,15 @@ outline: 2
|
||||
按 [App 安装步骤](./getting-started.zh-CN.md#用-piik-app-分享)下载 APK。
|
||||
安卓提示时,允许本次使用的浏览器或文件管理器安装下载的 APK。
|
||||
|
||||
如果安装提示软件包冲突或签名不一致,且之前安装过测试版,请先卸载测试版,再安装正式 APK。
|
||||
测试版与正式版使用不同的签名密钥。卸载会清除 App 设置,包括已授权站点和收藏的启动站点;
|
||||
浏览器设置独立保存。之后的正式版更新可以覆盖安装。
|
||||
如果安卓提示软件包冲突或签名不一致,先确认是否装过 Piik 测试版。卸载会清除 App 设置,包括已授权站点和收藏的启动站点。浏览器设置会保留。若装过测试版,请卸载它,再安装正式 APK。测试版与正式版签名不同,之后的正式更新可以覆盖安装。
|
||||
|
||||
### macOS 提示已损坏或无法验证开发者
|
||||
|
||||
当前 Mac 版本未进行 Developer ID 签名和 Apple 公证。首次打开时,先校验下载文件,再为这个 App 放行:
|
||||
|
||||
若 macOS 提示恶意软件、「会损坏你的电脑」,或自动将 App 移到废纸篓,
|
||||
请[保留完整提示和下载链接反馈](#反馈问题),不要使用下方的隔离标记命令。
|
||||
|
||||
1. 从项目 Releases 下载对应的 Mac ZIP,核对同一版本公布的 SHA-256。
|
||||
在终端运行 `shasum -a256 ~/Downloads/piik-app-darwin-arm64.zip`;
|
||||
Intel Mac 将文件名中的 `arm64` 换为 `amd64`。校验不一致时应重新下载,不要绕过警告。
|
||||
@@ -69,17 +74,9 @@ outline: 2
|
||||
|
||||
### 公网邀请创建失败或出现 1033
|
||||
|
||||
App 的 **公网邀请** 通过 Cloudflare Tunnel 提供临时网页地址。
|
||||
[错误 1033](https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-1xxx-errors/error-1033/)(英文)
|
||||
表示隧道已断开。出现 `public invitation service exited before connecting` 或 `exit status 1` 时,
|
||||
查看后续的详细错误,按下方步骤排查。
|
||||
|
||||
1. **观众先确认链接。** 请房主确认 App 仍在运行、电脑未休眠,并发送当前邀请。
|
||||
App 重新启动后应使用新链接,旧地址可能失效。
|
||||
2. **房主查看错误详情。** 确认已完整解压 App 程序包;保留启动页面或终端的完整错误,
|
||||
包括退出码后的详细信息。开启 **诊断启动** 后再试。
|
||||
3. **对照网络。** 可用手机热点重试,检查 DNS、代理或防火墙是否阻止 Cloudflare Tunnel。
|
||||
只调整相关规则;学校或公司的网络应联系管理员。
|
||||
1. 请房主唤醒电脑,保持 App 运行,重新发送当前邀请。App 重启后临时地址可能改变。[错误 1033](https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-1xxx-errors/error-1033/) 表示公网邀请的隧道已断开。
|
||||
2. 房主确认 App 已完整解压,再用 **诊断启动** 重试。看到 `exit status 1` 或 `public invitation service exited before connecting` 时,保留退出码后面的具体错误。
|
||||
3. 用手机热点再试。如果热点可用,请网络管理员按下表检查原网络的代理、DNS 和防火墙。
|
||||
|
||||
<details>
|
||||
<summary>进阶:隧道错误、代理与 7844 端口</summary>
|
||||
@@ -108,24 +105,47 @@ Piik 在 QUIC(UDP)失败后会尝试 HTTP/2(TCP),请允许两者使用
|
||||
|
||||
### 本地邀请打不开
|
||||
|
||||
浏览器连接超时、Piik 页面打不开时,先检查到房主 App 的访问:
|
||||
1. 请房主保持 App 运行,在 **本地房间** 选择朋友能访问的网卡地址,复制完整邀请。双方应在可互访的局域网或同一虚拟局域网。访客 Wi-Fi 可能隔离设备。
|
||||
2. 如果朋友无法使用同一网络,请房主改发当前的 **公网邀请**。
|
||||
|
||||
1. 保持房主 App 运行,在 **本地房间** 选择朋友能访问的网卡地址,发送完整邀请链接。
|
||||
两台设备需处于可互访的局域网或同一个虚拟局域网;访客 Wi-Fi 可能隔离设备。
|
||||
2. Windows 房主打开 **Windows 安全中心 → 防火墙和网络保护 → 允许应用通过防火墙**,
|
||||
检查当前运行的 `piik-app.exe`,允许所用的网络类型。虚拟网卡可能被识别为 **公用网络**;
|
||||
需要更小范围时,可在高级规则中限定该虚拟网卡和网段。
|
||||
3. 更新后换了解压目录,请更新仍指向旧文件的防火墙规则;需要时手动添加当前 App,保持防火墙开启。
|
||||
<details>
|
||||
<summary>房主进阶排查 · 防火墙和端口</summary>
|
||||
|
||||
App 提示 **本地端口不可用** 时,先关闭占用它的旧 Piik 实例。如果其他程序需要这个端口,
|
||||
可用 `--port 9876` 启动 Piik,再发送新生成的邀请。网页和本地 STUN 端口都需要可用;
|
||||
只修改链接里的端口不会改变服务的实际位置。
|
||||
1. Windows 房主打开 **Windows 安全中心 → 防火墙和网络保护 → 允许应用通过防火墙**,给当前 `piik-app.exe` 放行正在使用的网络类型。换过解压目录时,更新旧规则的路径。虚拟网卡可能属于 **公用网络**,高级规则可限定网卡和网段。[Microsoft 防火墙说明](https://support.microsoft.com/zh-cn/windows/security/firewall/risks-of-allowing-apps-through-windows-firewall)
|
||||
2. 若 App 提示 **本地端口不可用**,关闭占用端口的旧 Piik 实例。其他程序需要该端口时,用 `--port 9876` 启动 Piik,发送新邀请。网页和本地 STUN 端口都需可用。
|
||||
|
||||
放行操作可能需要管理员权限,参阅 [Microsoft 说明](https://support.microsoft.com/zh-cn/windows/security/firewall/risks-of-allowing-apps-through-windows-firewall)。
|
||||
网页能打开但画面连不上时,再按[画面连接排查](#画面连接不上)检查媒体线路。
|
||||
</details>
|
||||
|
||||
网页打开后仍看不到画面,请转到[画面连接排查](#画面连接不上)。
|
||||
|
||||
<details>
|
||||
<summary>可选 · 虚拟局域网邀请只显示标题时,检查页面请求和 MTU</summary>
|
||||
|
||||
如果标签页显示 **Piik**,但网页一直空白或加载中,请打开浏览器的 **开发者工具 → 网络**,
|
||||
重新加载邀请,查看网页文档和主 JavaScript 请求。
|
||||
|
||||
- 如果请求一直等待或超时,有条件时在同一个实体局域网访问同一房主。如果只在虚拟局域网中卡住,
|
||||
请检查虚拟网络路径,包括该路径能否传输较大的数据包。
|
||||
- 如果 JavaScript 返回 `404`,请用隐私窗口重新打开当前邀请。若仍有问题,请告诉房主正在使用的版本和脚本返回的 `404`。
|
||||
- 如果 JavaScript 下载完成后页面仍卡住,请在浏览器的 **控制台** 查看是否有 JavaScript 错误。
|
||||
|
||||
如果网页文档等小响应能收到,但完整脚本下载超时,隧道可能丢弃了较大的数据包。
|
||||
新建连接也可能在 TLS 握手阶段超时,此时浏览器还未收到 HTTP 响应。可在虚拟局域网内做前后对照:
|
||||
|
||||
1. 确认两台设备上承载该邀请流量的虚拟网卡,记录当前 MTU(最大传输单元),用新连接测试同一个邀请。
|
||||
2. 使用服务商支持的设置恢复路径 MTU 反馈(例如 ICMP 数据包过大消息),或将两端虚拟网卡的 MTU
|
||||
调整到已知隧道路径支持的值。由服务商管理这些设置时,请联系其支持团队。
|
||||
3. 再用新连接检查网页文档和完整脚本能否加载。如果没有改善,恢复原设置。
|
||||
|
||||
</details>
|
||||
|
||||
### 本地 HTTPS 证书提示
|
||||
|
||||
如果是本地邀请,通过平时联系房主的渠道核对地址,再按下方步骤比对证书指纹。也可以请房主改发当前的 **公网邀请**。如果公网地址也有警告,请联系站点管理员,待修复后再打开。
|
||||
|
||||
<details>
|
||||
<summary>进阶 · 与房主核对预期的本地证书</summary>
|
||||
|
||||
Piik App 的 **本地房间**,以及启用 `TLS_SELF_SIGNED=true` 的服务端,会自行生成本地证书。
|
||||
它没有经过公共证书机构签发,因此浏览器会先显示证书警告。
|
||||
|
||||
@@ -140,16 +160,22 @@ Piik App 的 **本地房间**,以及启用 `TLS_SELF_SIGNED=true` 的服务端
|
||||
|
||||
以上只适用于预期中的本地自签名证书;普通公网 HTTPS 站点突然出现证书警告时,应让管理员排查原因。
|
||||
|
||||
</details>
|
||||
|
||||
### 房间号无法使用
|
||||
|
||||
先打开房主最新的完整邀请链接。房间号只在原 Piik 站点有效;站点开启空房间回收时,
|
||||
旧房间也可能已被回收,由房主重新创建即可。参阅[加入房间](./getting-started.zh-CN.md#加入朋友的房间)。
|
||||
请房主从当前房间复制完整邀请,观众直接打开链接。房间号只在创建它的站点有效。如果房主也打不开旧房间,可能是空房间已过期。请房主新建房间并发送新邀请。[加入朋友的房间](./getting-started.zh-CN.md#加入朋友的房间)
|
||||
|
||||
站点房间号已用满时,稍后重试或使用其他 Piik 站点。管理员可配置
|
||||
[空房间回收](../operations/self-hosting.zh-CN.md#1-配置并启动-piik)以收回闲置号码。
|
||||
|
||||
### 创建房间返回 403
|
||||
|
||||
向站点管理员确认开房地址。仍显示 403 时,把站点地址和错误文字发给管理员。
|
||||
|
||||
<details>
|
||||
<summary>站点管理员 · 检查允许的地址</summary>
|
||||
|
||||
浏览器访问的网址不在服务端允许的范围内时,页面可能正常打开,但创建房间会被拒绝。
|
||||
站点管理员可以按以下步骤检查:
|
||||
|
||||
@@ -162,6 +188,8 @@ Piik App 的 **本地房间**,以及启用 `TLS_SELF_SIGNED=true` 的服务端
|
||||
请求头。如果 403 来自代理或 WAF 本身,则应查看对应日志,不要通过关闭来源校验来绕过。
|
||||
配置方法见 [Server 部署指南](../operations/self-hosting.zh-CN.md)。
|
||||
|
||||
</details>
|
||||
|
||||
## 开始分享
|
||||
|
||||
[没有选源器](#没有屏幕选择弹窗) · [找不到窗口](#app-找不到窗口或屏幕) ·
|
||||
@@ -176,9 +204,9 @@ Piik App 的 **本地房间**,以及启用 `TLS_SELF_SIGNED=true` 的服务端
|
||||
|
||||
### 没有屏幕选择弹窗
|
||||
|
||||
按系统提示允许录制屏幕。浏览器屏幕采集需要 HTTPS 或 `localhost`,请在电脑上尝试分享。
|
||||
在选源器中选择 **浏览器 → 选择画面**,打开浏览器的屏幕、窗口或标签页选择弹窗。
|
||||
App 来源缺失则按下节操作。
|
||||
房主打开选源器,点击 **浏览器 → 选择画面**。出现系统提示时允许录屏,然后选择要分享的屏幕、窗口或标签页。
|
||||
|
||||
如果没有弹窗,请在电脑上通过完整的 HTTPS 邀请打开房间后重试。本机的 `localhost` 页面也可以使用浏览器录屏。若缺的是 App 来源,请看[找不到窗口或屏幕](#app-找不到窗口或屏幕)。
|
||||
|
||||
### App 找不到窗口或屏幕
|
||||
|
||||
@@ -199,27 +227,23 @@ App 来源缺失则按下节操作。
|
||||
|
||||
### 选源后无法开始分享
|
||||
|
||||
点击电视下方的错误图标,可查看排查建议、复制失败信息,或开启网页诊断。
|
||||
1. 点击电视下方的错误图标,复制失败信息。若提示 App 断开或超时,确认 App 能响应,点击站点顶部的 **App** 重新连接,并允许浏览器访问本地网络。
|
||||
2. 如果选中的来源启动失败,先试普通窗口,再试 **浏览器** 选源。浏览器无法读取时,保持来源打开并允许系统录屏。摄像头被其他程序独占时,先关闭占用它的程序。
|
||||
3. 如果只有 Windows App 采集失败,试「自动」或 VP8,并按[显卡排查](#windows-上-h264-分享失败)检查。媒体连接报错时,检查[WebRTC 设置](./network.zh-CN.md#浏览器限制了-webrtc)和本地网络权限。若提示 [HTTP 403](#创建房间返回-403),检查站点配置。
|
||||
|
||||
- **App 连接断开或请求超时**:确认 App 仍在运行且可以响应,点击站点顶部的 **App** 完成连接。
|
||||
浏览器询问本地网络权限时允许访问。
|
||||
- **App 未能启动所选来源**:先换一个普通窗口或屏幕;再对照「浏览器」选源。
|
||||
Windows 上可试「自动」或 VP8,后续按[显卡排查](#windows-上-h264-分享失败)操作。
|
||||
- **浏览器无法读取来源或缺少权限**:保持来源打开,允许系统录屏权限,回到分享页重新选源。
|
||||
摄像头还需检查设备是否正被其他程序独占。
|
||||
- **媒体连接失败**:检查[浏览器 WebRTC 设置](./network.zh-CN.md#浏览器限制了-webrtc)和本地网络权限。
|
||||
**创建房间返回 403** 则检查[站点配置](#创建房间返回-403)。
|
||||
|
||||
|
||||
仍然失败时,[收集同一次尝试的网页与 App 报告](#反馈问题),附上复制的失败信息和所选来源类型。
|
||||
仍失败时,[收集同一次尝试的网页与 App 报告](#反馈问题),附上来源类型和复制的失败信息。
|
||||
|
||||
### Windows 上 H264 分享失败
|
||||
|
||||
1. **用同一来源对比编码。** 在 **分享设置 → 画面 → 画面细调** 中,将视频编码从 **H264** 改为 **自动** 或
|
||||
**VP8**,重新开始分享。如果 VP8 正常,可以先用它,再排查 H264 路径。
|
||||
2. **更新后重启。** 更新 Piik App 和 Chrome,并从电脑或显卡厂商的官方网站安装适合本机的
|
||||
|
||||
<details>
|
||||
<summary>需要使用 H264 时,检查驱动和 Chrome 设置</summary>
|
||||
|
||||
1. **更新后重启。** 更新 Piik App 和 Chrome,并从电脑或显卡厂商的官方网站安装适合本机的
|
||||
显卡驱动。双显卡笔记本应检查两块显卡的驱动,安装后重启电脑。
|
||||
3. **Chrome 检查图形加速和首选显卡。** 在 Chrome **设置 → 系统** 中检查「使用图形加速
|
||||
2. **Chrome 检查图形加速和首选显卡。** 在 Chrome **设置 → 系统** 中检查「使用图形加速
|
||||
(如果可用)」,此前关闭的话可开启并重启 Chrome([Google 设置说明](https://support.google.com/meet/answer/10058482?hl=zh-Hans))。
|
||||
Windows 多显卡电脑还可以进入 **设置 → 系统 → 屏幕 → 显示卡(图形)**,
|
||||
选择或添加 Chrome(`chrome.exe`),在 **选项** 中选择 **高性能** 并保存。
|
||||
@@ -229,62 +253,51 @@ App 来源缺失则按下节操作。
|
||||
Chrome 的首选显卡设置用于浏览器采集,Piik App 会单独选择原生编码器。
|
||||
仍然失败时,[收集报告](#反馈问题)并保留编码对照结果;两种编码都失败时,也检查 [WebRTC 限制](./network.zh-CN.md#浏览器限制了-webrtc)。
|
||||
|
||||
</details>
|
||||
|
||||
## 画面与播放
|
||||
|
||||
[画面连不上](#画面连接不上) · [模糊 / 卡顿](#画面模糊卡顿或中断) ·
|
||||
[游戏黑屏](#游戏黑屏或进入游戏后停止分享) · [HDR 发白](#hdr-画面过亮或颜色发白) ·
|
||||
[采集黄框](#windows-分享时出现黄框) · [全屏 / 休眠](#全屏或休眠后播放异常)
|
||||
|
||||
<span id="room-no-picture"></span>
|
||||
|
||||
### 画面连接不上
|
||||
|
||||
**没有可用的媒体线路** 表示 Piik 尚未找到将画面送到你设备的连接。
|
||||
依次检查观看连接、浏览器策略与网络:
|
||||
房间能打开,但观众收不到画面?请房主看看预览,按你们看到的情况选择办法。[没有可用的媒体线路](./no-media-route.zh-CN.md)
|
||||
|
||||
1. **重新尝试观看连接。** **重新连接** 可用时先点击,否则刷新观看页或重新打开邀请。
|
||||
每次等连接尝试结束,重试一两次即可;反复刷新无法解除网络限制。
|
||||
2. **检查浏览器 WebRTC 设置。** 浏览器设置、VPN 或隐私扩展可能阻止房主或观众的媒体连接,
|
||||
具体操作见 [WebRTC 排查](./network.zh-CN.md#浏览器限制了-webrtc)。
|
||||
3. **换个网络测试。** 例如试用手机热点。使用 VPN 或代理时,检查其 UDP 策略;受管理的网络请联系管理员。
|
||||
4. **请另一网络的朋友加入。** 对方能正常看画面且有余力转发时,Piik 可能经由这位观众送到你这里。
|
||||
线路由 Piik 自动选择,能否帮上忙取决于这些连接是否可用。
|
||||
|
||||
仍然失败时,继续[进阶网络排查](./network.zh-CN.md),并收集房主与受影响观众同一次尝试的报告。
|
||||
<span id="playback-stalls"></span>
|
||||
|
||||
### 画面模糊、卡顿或中断
|
||||
|
||||
短时变糊可能来自网络或编码负载的自动调整;反复出现或长期不恢复时,按下面的步骤对照:
|
||||
1. 卡顿时请房主同时看预览。预览也卡住时,检查来源是否仍在更新、游戏是否占满 CPU 或 GPU,再到 **分享设置 → 画面** 单独调低分辨率或帧率对照。
|
||||
2. 预览流畅时,问另一位观众是否也卡。如果只有你遇到周期性停顿,可试 **增加播放缓冲**。观察同一段运动画面;若卡顿持续或操作延迟过高,恢复原设置,再换浏览器或热点对照。
|
||||
3. 如果所有观众都卡,让房主改分享一个普通窗口。如果这个窗口流畅,再打开下面的 Windows 编码检查。
|
||||
|
||||
1. **确认影响范围。** 是房主预览、所有观众,还是只有某位观众?记录大致时间,
|
||||
以及能否自行恢复。
|
||||
2. **一次调整一项。** 房主可在 **分享设置 → 画面** 中先试较低的分辨率或帧率,
|
||||
检查游戏运行时 CPU/GPU 是否接近满载;受影响的观众可用另一浏览器或手机热点对照。
|
||||
将码率调高不一定有帮助。
|
||||
3. **查看实际编码。** 展开房主的 **连接详情**,查看 **视频编码**。Windows 上,
|
||||
「自动」选择 VP8 可能是 H264 不可用、未能完成检测,或检测未达到所选帧率;
|
||||
软件编码会与游戏争用 CPU。使用「浏览器」选源时,可按[显卡排查](#windows-上-h264-分享失败)
|
||||
检查图形设置,或对照 App 的窗口/屏幕采集。App 会独立尝试可用的硬件编码器。
|
||||
H264 检测未通过时,继续使用「自动」或 VP8。
|
||||
4. **保留问题发生时的报告。** 按[反馈说明](#反馈问题)收集房主和受影响观众的报告,
|
||||
App 采集还需 App 报告。画面持续不恢复时可尝试 **重新连接**;请先导出报告再刷新页面。
|
||||
<details>
|
||||
<summary>Windows 房主 · 查看实际使用的视频编码</summary>
|
||||
|
||||
如果分享已自动停止,查看电视下方的具体原因,并按[分享启动排查](#选源后无法开始分享)操作;
|
||||
如果仍在分享但观众看不到画面,按[连接排查](#画面连接不上)操作。
|
||||
所有人都卡时,请房主在 **连接详情 → 视频编码** 查看实际编码。Windows 上 H264 不可用、检测未完成或达不到所选帧率时,「自动」可能选用 VP8。软件编码会占用游戏所需的 CPU。浏览器采集可按[显卡排查](#windows-上-h264-分享失败)检查,或改用 App 窗口/屏幕采集对照。H264 检测未通过时继续使用「自动」或 VP8。
|
||||
|
||||
</details>
|
||||
|
||||
若分享已经结束,查看电视下方的原因。[刷新前导出卡顿时段的报告](#反馈问题),包括房主、受影响观众以及负责采集的 App。
|
||||
|
||||
### 游戏黑屏或进入游戏后停止分享
|
||||
|
||||
先确认当前分享的是游戏窗口或游戏所在的屏幕,再尝试游戏的无边框窗口模式。
|
||||
对照分享一个普通窗口,并在 App 选源与 **浏览器** 选源之间比较。
|
||||
受保护的内容可能无法采集。
|
||||
房主先看自己的预览。如果预览也是黑的,确认选中的是游戏窗口或显示游戏的屏幕。把游戏切到无边框窗口模式,再看预览。
|
||||
|
||||
游戏仍黑屏时,改分享普通窗口。如果普通窗口能显示,再换用 App 或 **浏览器** 的另一种选源方式分享游戏。受保护的内容可能无法采集。
|
||||
|
||||
如果进入游戏后 Piik 退回未分享状态,查看电视下方的失败原因,按[分享启动排查](#选源后无法开始分享)操作。
|
||||
[反馈报告](#反馈问题)中请附上游戏名称和窗口模式。
|
||||
|
||||
### HDR 画面过亮或颜色发白
|
||||
|
||||
Windows App 的 **程序 / 窗口** 和 **屏幕** 采集会将 HDR 转成 SDR,再分享给观众。
|
||||
**浏览器** 选源由浏览器负责采集,部分 HDR 来源可能过曝。
|
||||
可改用 App 的上述分类,或在 Windows 显示设置中暂时关闭 HDR 后重新选源。
|
||||
提高分辨率或码率无法恢复已经丢失的亮部细节。
|
||||
如果观众看到的亮部发白,而房主屏幕的颜色正常,请房主在 Windows App 里改选 **程序 / 窗口** 或 **屏幕** 后重新分享。App 会将 HDR 画面转为适合观看的 SDR。
|
||||
|
||||
继续用 **浏览器** 分享时,可在 Windows 显示设置里暂时关闭 HDR,再重新选源。已经过曝的亮部需要重新采集,调整码率或分辨率无法补回细节。
|
||||
|
||||
仍然异常时,请附上 HDR 设置、显卡/显示器型号及源画面与观众画面的对照。
|
||||
技术背景见 [HDR 采集说明(英文)](../research/media-fidelity.md#hdr-to-sdr)。
|
||||
@@ -332,8 +345,12 @@ Windows 需要用户授权;其他采集要求显示边框时,边框仍会保
|
||||
|
||||
</details>
|
||||
|
||||
<span id="mobile-stop"></span>
|
||||
|
||||
### 全屏或休眠后播放异常
|
||||
|
||||
手机房主想结束分享时,返回分享页并点击 **停止分享**。如果正在远控桌面,从画面底边打开抽屉即可操作。见[远程控制](./remote-control.zh-CN.md)。
|
||||
|
||||
- **播控按钮隐藏了:** 轻点画面即可重新呼出;正在远控时,使用电视底边的抽屉拉手。
|
||||
- **没有全屏按钮或点击失败:** 将邀请链接复制到独立浏览器打开,例如安卓 Chrome 或
|
||||
iPhone Safari,避免使用聊天软件的内置浏览器。不支持系统全屏时,可用 **剧场模式** 放大网页内的画面。
|
||||
@@ -345,51 +362,32 @@ Windows 需要用户授权;其他采集要求显示边框时,边框仍会保
|
||||
- **休眠或挂起后分享中断:** 唤醒设备,回到分享标签页,必要时重新开始分享。
|
||||
浏览器或系统挂起可能中断采集和播放。
|
||||
|
||||
**安卓切换应用后分享停了。** 回到 Piik 分享页,点击 **开始分享**,重新选择画面并确认系统的屏幕分享提示。如果 Piik App 已退出,先重新打开它。
|
||||
|
||||
如果反复出现,下一次开始分享前先选 **帮助 → 诊断**,确认重新加载网页。开始分享后切换应用,等问题再次出现。回到同一个分享页,点 **帮助 → 网页报告**。提供这次尝试的报告,并附上 Piik 版本、手机型号、安卓版本和切换到的应用名称。
|
||||
|
||||
## 声音与浏览器权限
|
||||
|
||||
[来源声音](#有画面但没有来源声音) · [房间语音](#听不到说话声) ·
|
||||
[检查游戏声音](./sound-help.zh-CN.md#有画面但听不到游戏声音) · [检查房间语音](./sound-help.zh-CN.md#听不到朋友说话) ·
|
||||
[回声 / 多余声音](#回声或传出了多余的应用声音) · [麦克风 / 远控权限](#无法使用麦克风或远程控制)
|
||||
|
||||
### 有画面但没有来源声音
|
||||
|
||||
1. 取消视频静音,并检查播放音量。
|
||||
2. 房主应选择支持分享声音的来源,并在选源器中打开声音;可用声音取决于来源和平台。
|
||||
3. 摄像头画面与麦克风输入分别选择。内置麦克风或 OBS 音频的用法,见[摄像头与音频输入](./sharing.zh-CN.md#摄像头与虚拟音频输入)。
|
||||
观众点一下画面,检查视频音量。请房主播放一段自己能听见的游戏声音,再问另一位观众是否能听见。
|
||||
|
||||
[有画面但听不到游戏声音](./sound-help.zh-CN.md#有画面但听不到游戏声音)。
|
||||
|
||||
### 听不到说话声
|
||||
|
||||
如果房主使用 **分享麦克风**,先检查画面的[来源声音](#有画面但没有来源声音),
|
||||
并让房主检查 **分享设置 → 声音**。房间语音则按以下步骤排查:
|
||||
|
||||
1. 双方都加入 **互动 → 语音**,由房主先选择 **开启房间语音**。
|
||||
加入只开始收听,每位发言者还需主动打开自己的麦克风。
|
||||
2. 发言者检查浏览器的麦克风权限,以及 **语音设置** 中的输入设备和音量。
|
||||
使用麦克风需要 HTTPS 或 `localhost`。
|
||||
3. 检查自己是否暂停收听或将对方本地静音。这些控制与视频静音分开;**暂停收听** 不会关闭自己的麦克风。
|
||||
|
||||
语音提示连接失败时,对照 [WebRTC 设置](./network.zh-CN.md#浏览器限制了-webrtc)及另一网络。
|
||||
控件的使用方法见[房间语音](./room-tools.zh-CN.md#房间语音)。
|
||||
[听不到朋友说话](./sound-help.zh-CN.md#听不到朋友说话)。
|
||||
|
||||
### 回声或传出了多余的应用声音
|
||||
|
||||
扬声器被麦克风再次收音时,可使用耳机。Windows App 屏幕采集支持
|
||||
[排除语音软件的来源音频](./sharing.zh-CN.md#分享屏幕时排除语音软件的声音),但不会消除声学回声。
|
||||
|
||||
虚拟麦克风在 Piik 闭麦后仍可听见时,暂时关闭 **系统声音** 对照。如果声音消失,
|
||||
说明混音软件的播放输出也进入了来源音频。检查其播放/监听路由,或只分享需要的应用窗口音频。
|
||||
Piik 的麦克风静音不会关闭这条独立来源。
|
||||
[我能听见自己的回声](./sound-help.zh-CN.md#我能听见自己的回声)。
|
||||
|
||||
### 无法使用麦克风或远程控制
|
||||
|
||||
1. 打开当前 App 生成的完整 HTTPS 邀请。本地邀请应先[确认证书](#本地-https-证书提示)。
|
||||
普通 HTTP 内网页面可以观看、聊天和加入语音收听,但不能使用需要安全上下文的麦克风、摄像头采集和远控接口。
|
||||
仅修改链接里的协议名不会开启 HTTPS;`localhost` 只代表当前设备。
|
||||
2. 麦克风不可用时,检查当前站点的浏览器权限和所选输入设备。
|
||||
3. 远控需更新房主 App 和站点,再刷新观众页面。房主必须使用桌面 App 窗口/屏幕采集并开启远控;
|
||||
浏览器与摄像头采集不能接收远程输入。安卓可以分享屏幕,也可以作为观众控制电脑,但不能作为被控手机,
|
||||
因此安卓房主页面没有开启远控的入口。随后按[授权步骤](./room-tools.zh-CN.md#让朋友操作共享的电脑)操作。
|
||||
|
||||
浏览器不接受本地证书例外时,改用可访问的 **公网邀请** 或具有可信证书的 HTTPS 站点。
|
||||
[朋友听不到我说话](./sound-help.zh-CN.md#朋友听不到我说话)。远控请参阅[远程控制](./remote-control.zh-CN.md)。
|
||||
|
||||
## 手柄
|
||||
|
||||
@@ -406,32 +404,24 @@ Piik 的麦克风静音不会关闭这条独立来源。
|
||||
|
||||
## 进阶网络排查
|
||||
|
||||
网页能打开但画面或语音连不上时,查看[网络排查指南](./network.zh-CN.md)。按下面的情况进入对应步骤:
|
||||
|
||||
### 校园网或严格 NAT
|
||||
|
||||
为校园网、公司网络选择连接方案。 [查看步骤](./network.zh-CN.md#校园网或严格-nat)。
|
||||
|
||||
### 浏览器限制了 WebRTC
|
||||
|
||||
同一邀请在其他浏览器里正常时,检查相关设置。 [查看步骤](./network.zh-CN.md#浏览器限制了-webrtc)。
|
||||
|
||||
### STUN、IPv6 与路由器检查
|
||||
|
||||
查看日志、调整地址发现,或检查自己管理的路由器。 [查看步骤](./network.zh-CN.md#stunipv6-与路由器检查)。
|
||||
|
||||
### 可选:虚拟局域网
|
||||
|
||||
通过 UU 等组网工具使用本地房间。 [查看步骤](./network.zh-CN.md#可选虚拟局域网)。
|
||||
- <a id="校园网或严格-nat"></a>[换成热点就能看,校园网或公司网络看不了](./network.zh-CN.md#校园网或严格-nat)
|
||||
- <a id="浏览器限制了-webrtc"></a>[同一邀请在另一款浏览器里正常](./network.zh-CN.md#浏览器限制了-webrtc)
|
||||
- <a id="stunipv6-与路由器检查"></a>[检查自己管理的路由器或地址发现日志](./network.zh-CN.md#stunipv6-与路由器检查)
|
||||
- <a id="可选虚拟局域网"></a>[异地朋友通过虚拟局域网加入本地房间](./network.zh-CN.md#可选虚拟局域网)
|
||||
|
||||
## 反馈问题
|
||||
|
||||
在 GitHub [反馈问题](https://github.com/TNTcraftHIM/Piik/issues)时,写明设备、点了什么、看到了什么即可,无需日志。分享失败时,房主可点击电视下方的错误图标,复制提示文字。
|
||||
|
||||
<details>
|
||||
<summary>需要报告时 · 收集诊断信息</summary>
|
||||
|
||||
请附上 Piik 版本、系统与浏览器、发生时间、预期结果和复现步骤。
|
||||
采集问题还需说明来源类型、编码、显卡/驱动,以及其他来源或 VP8 是否正常;网络问题说明所用网络类型。
|
||||
|
||||
先开启诊断,重现一次,再在刷新前导出:
|
||||
|
||||
- **网页:** 使用页面的诊断按钮。分享失败时,电视下方的错误图标还可复制失败信息,
|
||||
- **网页:** 打开 **帮助 → 诊断**,确认刷新后重现问题,再用 **帮助 → 网页报告** 下载。分享失败时,电视下方的错误图标还可复制失败信息,
|
||||
包含网页版本、提示和错误编号,不包含邀请链接或来源名称。
|
||||
- **桌面 App 采集或远控:** 还需在房主 App 模式选择页开启 **诊断启动**,随后在终端按 `D` 导出 App 报告。
|
||||
- **连接失败:** 收集受影响观众和房主同一次尝试的报告;自部署 SFU 还需服务端报告。
|
||||
@@ -440,3 +430,5 @@ Piik 的麦克风静音不会关闭这条独立来源。
|
||||
无法收集日志时,请提供完整错误文字与复现步骤。
|
||||
|
||||
其他指南可在[文档中心](./README.zh-CN.md)找到。
|
||||
|
||||
</details>
|
||||
@@ -91,25 +91,65 @@ Image checks, version identity and retries follow
|
||||
## AtomGit Download Mirror
|
||||
|
||||
[AtomGit TNTcraftHIM/Piik](https://atomgit.com/TNTcraftHIM/Piik) is the public
|
||||
source and Release mirror. GitHub owns development, issues and original packages.
|
||||
AtomGit's configured repository synchronization handles branches, tags and commits;
|
||||
the **AtomGit mirror** GitHub workflow separately copies published binary assets.
|
||||
download mirror. GitHub owns development, issues, source identity and original packages.
|
||||
The **AtomGit mirror** GitHub workflow copies published binary assets. Repository
|
||||
synchronization is intended to remain independent of package distribution; the
|
||||
Pull-mirror tag restriction below remains an unresolved platform dependency. A mirror's
|
||||
local Release tag only locates attachments; the GitHub source marker and verified
|
||||
original package digests establish their identity. Before downloading original
|
||||
artifacts, publication prepares the prerelease using the mirror's initialized
|
||||
default branch when the local tag does not exist. A rejected missing tag fails
|
||||
this step. Pure readiness checks remain read-only.
|
||||
Its repository Actions secret is `ATOMGIT_TOKEN`. Never put this token in source,
|
||||
a remote URL or a distributed package. GitHub publication keeps its scoped token.
|
||||
|
||||
After a successful main-push CI run, the workflow downloads that run's complete
|
||||
AtomGit's current Pull-mirror repository rejects new-tag creation with an
|
||||
`image repository` error. The platform's immediate-sync action can supply that
|
||||
tag, after which package publication resumes. The overwrite/force setting did
|
||||
not remove this restriction; disabling synchronization or removing its association
|
||||
has not been verified as a conversion to a writable repository. Keep the existing
|
||||
configuration until a supported replacement is verified. A blocked publication
|
||||
remains unfinished release work, not a successful deferred mirror. Provider-generated
|
||||
source archives are not the canonical source linked in the mirrored release body.
|
||||
|
||||
After a completed main-push CI run, the workflow checks the current stable GitHub
|
||||
release and finds its original publishing CI run, even when the triggering run
|
||||
only updated tooling. A later failed container step does not prevent
|
||||
mirroring already-published packages. It downloads the source run's complete
|
||||
original Server and App artifacts and invokes `scripts/mirror-release.mjs`.
|
||||
It skips runs that did not publish the current GitHub release. GitHub publication
|
||||
and **Website** do not depend on mirror success. An unfinished mirror remains a
|
||||
An authorized release is not complete until its mirror and managed deployments
|
||||
pass their postflight checks. GitHub publication and **Website** can proceed independently,
|
||||
but a failed mirror remains unfinished release work. An unfinished mirror remains a
|
||||
prerelease until every package passes anonymous full-download SHA-256 validation.
|
||||
This includes the original signed APK and its already-built ZIP wrapper.
|
||||
|
||||
Every three hours the same workflow also checks the latest GitHub release's mirror
|
||||
metadata. A stable mirror with the matching source marker and complete package
|
||||
inventory of uploaded attachments needs no further work; provider-generated source
|
||||
archives do not count as packages. A missing or incomplete prerelease resumes
|
||||
publication from original artifacts without reading mirrored commits or tags.
|
||||
Completed mirrors use a sparse tools-only checkout and skip dependency installation
|
||||
and artifact downloads. API failures or conflicting source identities remain failures.
|
||||
|
||||
When ready, recovery locates the completed main-push CI run for that exact source,
|
||||
downloads its original artifacts and resumes the existing publisher. It never
|
||||
builds software. The publisher verifies every package anonymously before marking
|
||||
the mirror stable; the periodic metadata check reuses that completion boundary.
|
||||
Expired original artifacts require retained original build output, not rebuilding
|
||||
the same published version. A stable release missing packages is an explicit
|
||||
integrity failure and is never silently replaced.
|
||||
|
||||
For recovery, rerun **AtomGit mirror** with the original publishing CI run ID:
|
||||
|
||||
```sh
|
||||
gh workflow run atomgit-mirror.yml --repo TNTcraftHIM/Piik --ref main -f run_id=RUN_ID
|
||||
```
|
||||
|
||||
The run ID is optional; without it, the workflow resolves the latest GitHub release.
|
||||
The scheduled check is recovery support, not the release-completion gate. If a
|
||||
scheduled run is delayed or an upload fails, run this recovery during the authorized
|
||||
release instead of assuming a later schedule will finish it.
|
||||
|
||||
The source must be a completed main-push CI run matching the latest published
|
||||
GitHub release. The workflow runs trusted main tooling and treats artifacts only
|
||||
as data. A superseded release cannot complete a new mirror. Both publishers reject
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
|
||||
English · [简体中文](./self-hosting.zh-CN.md) · [Documentation](../guide/README.md)
|
||||
|
||||
Piik Server packages the web interface, room management and optional media
|
||||
forwarding in **one server binary**. Extract and run it; room data is stored in SQLite.
|
||||
Use Piik Server to provide a Piik site at an address you manage. You can try it on the server itself, share it on a private LAN, or publish it at an HTTPS domain. The server includes the web interface and stores room data in SQLite.
|
||||
|
||||
The default P2P configuration handles room management, signaling and STUN; shared
|
||||
video and audio travel between participants. Enabling SFU adds media-forwarding
|
||||
@@ -49,7 +48,7 @@ curl -fsSLo compose.yaml https://raw.githubusercontent.com/TNTcraftHIM/Piik/main
|
||||
curl -fsSLo .env https://raw.githubusercontent.com/TNTcraftHIM/Piik/main/deploy/container/.env.example
|
||||
```
|
||||
|
||||
Replace `share.example.com` in `.env` with your domain, then start Piik:
|
||||
In `.env`, set `PUBLIC_BASE_URL` to the HTTPS address people will open. In `STUN_URLS`, replace `share.example.com` with the domain that resolves directly to the server for UDP traffic. Run the first command to check the settings. If it succeeds, run the second to start Piik.
|
||||
|
||||
```sh
|
||||
docker compose run --rm piik --check-config
|
||||
@@ -180,7 +179,7 @@ See the [complete port table](../standards/configuration.md#public-and-private-p
|
||||
for optional services. Embedded SFU media shares the single UDP port set by
|
||||
`SFU_UDP_PORT`.
|
||||
|
||||
Open `https://share.example.com/healthz`; it should return `{"status":"ok"}`.
|
||||
Open your public HTTPS address with `/healthz` appended. The response should be `{"status":"ok"}`.
|
||||
Then open the site, share a screen and join from another device. This initial
|
||||
configuration uses P2P media, so participants need a usable UDP path.
|
||||
|
||||
@@ -246,12 +245,15 @@ equal `SFU_UDP_PORT`. Do not forward Piik's STUN ports through frp: its UDP prox
|
||||
STUN would report. Restart Piik and check HTTPS health, room access and
|
||||
**Server media** from another network.
|
||||
|
||||
### Forward a Piik App invitation
|
||||
|
||||
First run `piik-app --help` and check for `public-origin`. The published v2.7.0 App lacks this option. With that version, use the Server setup above for a fixed address. In a 2.x App that lists the option, run `piik-app --link --public-origin https://share.example.com --port 8787` on the App computer. Use the public HTTPS reverse proxy described above and only the `piik-web` TCP proxy in frpc, targeting `127.0.0.1:8787`. Start frps and frpc yourself. The Host opens its loopback entry. Viewer invitations and QR codes use the fixed HTTPS domain. Room access settings still apply. App media uses WebRTC P2P. Use `--local` for LAN invitations.
|
||||
|
||||
### Using a managed frp provider
|
||||
|
||||
Services such as SakuraFrp supply the public server and their own client or
|
||||
launcher. Follow the provider's setup instead of copying the private frps token
|
||||
configuration above. Check that the chosen node supports both HTTPS web access
|
||||
with WebSockets and an ordinary UDP tunnel.
|
||||
Follow the [fixed invitation guide](../guide/frp.md) for the website tunnel and
|
||||
SakuraFrp dashboard steps. To relay media from a 2.x Server through the provider,
|
||||
choose a node that also offers UDP tunnels and apply the media settings below.
|
||||
|
||||
| Endpoint | Local target | Piik setting |
|
||||
| --- | --- | --- |
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
|
||||
[English](./self-hosting.md) · 简体中文 · [文档导航](../guide/README.zh-CN.md)
|
||||
|
||||
Piik Server 将网页、房间管理和可选的媒体转发打包在**一个服务端程序**中。
|
||||
解压后即可运行,房间数据保存在 SQLite 中。
|
||||
用 Piik Server 可以在自己管理的地址上提供 Piik 站点。你可以先在服务器本机试用,也可以开放给局域网,或使用公网 HTTPS 域名。服务端自带网页,房间数据保存在 SQLite 中。
|
||||
|
||||
默认的 P2P 配置由服务器负责房间管理、信令和 STUN,画面与声音在参与者之间传输。
|
||||
启用 SFU 后,服务器还会承担媒体转发的带宽和处理开销。配置较低的服务器可以先用默认设置,
|
||||
@@ -44,7 +43,7 @@ curl -fsSLo compose.yaml https://raw.githubusercontent.com/TNTcraftHIM/Piik/main
|
||||
curl -fsSLo .env https://raw.githubusercontent.com/TNTcraftHIM/Piik/main/deploy/container/.env.example
|
||||
```
|
||||
|
||||
将 `.env` 中的 `share.example.com` 换成自己的域名,然后启动:
|
||||
在 `.env` 中,将 `PUBLIC_BASE_URL` 设为参与者打开的 HTTPS 网址。在 `STUN_URLS` 中,将 `share.example.com` 换成直接解析到服务器的域名,以便接收 UDP 流量。先运行第一条命令检查配置,通过后再启动 Piik。
|
||||
|
||||
```sh
|
||||
docker compose run --rm piik --check-config
|
||||
@@ -221,10 +220,14 @@ frpc 的本地与公网 UDP 端口必须都等于 `SFU_UDP_PORT`。
|
||||
[改变 STUN 所观察到的源地址映射](../research/nat-traversal.md#external-forwarding-and-participant-relays)。
|
||||
重启 Piik,从另一网络验证 HTTPS 健康检查、房间访问及**服务器转发**。
|
||||
|
||||
### 转发 Piik App 的公网邀请
|
||||
|
||||
先运行 `piik-app --help`,查看是否有 `public-origin`。已发布的 v2.7.0 App 没有这个选项,需要固定地址时请用上文的 Server 方式。使用包含该选项的 2.x App 时,在电脑上运行 `piik-app --link --public-origin https://share.example.com --port 8787`。公网主机使用上文的 HTTPS 反向代理,frpc 仅配置 `piik-web` TCP 代理并转发至 `127.0.0.1:8787`。自行启动 frps 和 frpc。主持人打开本机回环入口,观众邀请和二维码使用固定的 HTTPS 域名。房间访问设置继续生效,音视频使用 WebRTC P2P。仅在局域网分享时使用 `--local`。
|
||||
|
||||
### 使用托管 frp 服务
|
||||
|
||||
SakuraFrp 等服务会提供公网服务器和自己的客户端或启动器;按服务商教程配置,
|
||||
不必套用上面的自建 frps 令牌配置。先确认所选节点同时支持带 WebSocket 的 HTTPS 网页访问和普通 UDP 隧道。
|
||||
先按[固定公网邀请教程](../guide/frp.zh-CN.md)配置网页入口,里面有樱花映射的面板步骤。
|
||||
2.x Server 如需通过服务商中转媒体,另选支持普通 UDP 隧道的节点,并采用下表的媒体设置。
|
||||
|
||||
| 端点 | 本地目标 | Piik 设置 |
|
||||
| --- | --- | --- |
|
||||
|
||||