Compare commits
No files matched your search
@@ -42,16 +42,10 @@ count. A larger correction is justified when it removes competing writers or
|
||||
finishes the affected flow. Keep readable code and clear boundaries rather than
|
||||
compressing logic into a one-liner or one oversized file.
|
||||
|
||||
Add an abstraction, setting or extension point only for a current responsibility,
|
||||
real consumer or accepted contract. Do not build scaffolding for hypothetical
|
||||
features. Preserve necessary platform adapters; a single implementation alone
|
||||
does not prove an interface is wasteful. Inspect existing protections before
|
||||
removing them, and preserve authorization, data integrity, accessibility and
|
||||
published compatibility.
|
||||
|
||||
Comment non-obvious constraints and reasons at their owner. Avoid slogans,
|
||||
restated code or speculative upgrade plans in comments. Remove replaced private
|
||||
paths within scope; keep useful provenance and required license notices.
|
||||
Apply the shared [implementation rules](../../../docs/standards/engineering.md#implementation-rules)
|
||||
for helper boundaries, typed validation, comments and generated sources rather
|
||||
than maintaining separate coding rules in this skill. Preserve useful provenance
|
||||
and required license notices when removing replaced paths.
|
||||
|
||||
## Verify And Finish
|
||||
|
||||
|
||||
@@ -25,11 +25,6 @@ Piik 是供朋友分享的小项目。优先简单、好用、漂亮和实际效
|
||||
- **让研究产生实现。** 参考相关的一手实现,选出简单、可逆的方案就做对照。
|
||||
一旦信息足够做决定,停止搜集同类材料。上游也有问题不等于只能接受;检查现有配置、
|
||||
接口和小范围补丁。研究或审查任务仍按其授权范围交付,不自动变成实现。
|
||||
- **防御放在真实边界。** 保留鉴权、外部输入校验和必要的资源释放;内部已验证事实直接使用。
|
||||
不逐层重复校验,不用空值、假成功或静默兜底掩盖错误。现有保护的用途不明时先追踪,
|
||||
不能凭“没出过事”删除。新增重试、状态、开关或限制要解决实际问题或已承诺的边界,
|
||||
不必等到事故发生,也不为假想规模或未来消费者铺路。兼容承诺由
|
||||
[版本规范](../../../docs/standards/versioning.md) 决定。
|
||||
- **新机制要验完整。** 沿实际调用链验证预期效果及受影响的主路径,覆盖相关的失败、恢复
|
||||
和生命周期行为;不能用一个 happy path 或孤立单测宣称完成。复用现有检查和复现,缺口
|
||||
补有效回归。小文案、布局和可逆低影响改动不默认新增单元测试;不为每个分支、私有函数
|
||||
@@ -46,16 +41,5 @@ Piik 是供朋友分享的小项目。优先简单、好用、漂亮和实际效
|
||||
不把未知说成已解决,也不把所有未知都变成发布门槛。汇报结果和影响决定的限制即可,
|
||||
不用测试数量、长免责声明、反复道歉或未来待办替代成果。
|
||||
|
||||
## 用在 Piik 上
|
||||
|
||||
| 遇到的问题 | 应采取的动作 |
|
||||
| --- | --- |
|
||||
| 画质恢复慢 | 对比现有适配策略的恢复时间与持续弱网表现;有明确收益就采用。不要仅因上游也慢而停手,也不要另造周期重置器。 |
|
||||
| 小控件错位 | 修布局,查看受影响的尺寸与状态;不启动全仓库网络验收。 |
|
||||
| 同一事实到处加判断 | 修正它的生产者和生命周期,让消费者使用可靠结果;删掉重复分支。 |
|
||||
| 检查已经通过 | 完成当前交付;只有新变化、失败或尚未回答的实际问题才扩大验证。 |
|
||||
|
||||
这些是做判断的尺度,不要求为它们生成清单、报告或新工具。
|
||||
|
||||
参考来源与取舍保留在[上下文治理研究](../../../docs/research/agent-context-governance.md#instructions-and-skills),
|
||||
不作为每次任务必读材料。
|
||||
@@ -5,4 +5,3 @@ project_doc_max_bytes = 32768
|
||||
|
||||
[agents]
|
||||
enabled = true
|
||||
max_concurrent_threads_per_session = 3
|
||||
@@ -44,7 +44,8 @@ ENDPOINT_MEDIA_COPY_CAPACITY=2
|
||||
SFU_UDP_PORT=
|
||||
# IPv4 bind address, independent of HTTP LISTEN_HOST and advertised media IP.
|
||||
SFU_LISTEN_HOST=0.0.0.0
|
||||
# Optional advertised IPv4 override when the listener's address is behind NAT.
|
||||
# Optional advertised IPv4 or DNS hostname when the listener is behind NAT.
|
||||
# Hostnames resolve at startup; restart Piik after the public IPv4 changes.
|
||||
SFU_PUBLIC_IP=
|
||||
# Require server media for every room instead of P2P-first. Requires SFU_UDP_PORT.
|
||||
SFU_ONLY=false
|
||||
|
||||
@@ -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. 可附截图;分享前移除凭据与隐私内容。 -->
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
## Release notes
|
||||
|
||||
<!-- Required for product-changing PRs; omit this section for standalone website/docs/maintenance work. Public copy, automatically published in GitHub Releases. Keep this exact heading; use ### for subsections. Describe user benefits, fixes and required upgrade actions in concise Chinese and English. Omit internal logs, audit prompts and unverified claims. 产品改动需填写公开的中英文更新说明;仅官网、文档或外围维护可删去此节。 -->
|
||||
<!-- Required for product-changing PRs; omit this section for standalone website/docs/maintenance work. Public copy, automatically published in GitHub Releases. Keep this exact heading; use ### for subsections. Describe user benefits, fixes and required upgrade actions in concise English followed by Chinese. Omit internal logs, audit prompts and unverified claims. 产品改动需填写公开更新说明,先英文、后中文;仅官网、文档或外围维护可删去此节。 -->
|
||||
|
||||
<!-- Follow docs/standards/versioning.md#release-notes. Keep the public Release title Piik vX.Y.Z.
|
||||
An optional editorial opening uses a short **bold title** and one plain paragraph explaining its concrete
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
name: Gitee mirror
|
||||
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:
|
||||
@@ -17,7 +19,7 @@ permissions:
|
||||
actions: read
|
||||
|
||||
concurrency:
|
||||
group: gitee-mirror
|
||||
group: atomgit-mirror
|
||||
cancel-in-progress: false
|
||||
queue: max
|
||||
|
||||
@@ -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
|
||||
@@ -72,12 +87,12 @@ jobs:
|
||||
"$RUNNER_TEMP/mirror-release" "$PIIK_RELEASE_VERSION" "$PIIK_RELEASE_REVISION"
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
GITEE_TOKEN: ${{ secrets.GITEE_TOKEN }}
|
||||
ATOMGIT_TOKEN: ${{ secrets.ATOMGIT_TOKEN }}
|
||||
PIIK_RELEASE_VERSION: ${{ steps.source.outputs.version }}
|
||||
PIIK_RELEASE_REVISION: ${{ steps.source.outputs.revision }}
|
||||
- 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
|
||||
@@ -280,8 +282,10 @@ jobs:
|
||||
runner: macos-15
|
||||
- target: darwin-amd64
|
||||
runner: macos-15-intel
|
||||
- target: android-universal
|
||||
runner: ubuntu-24.04
|
||||
runs-on: ${{ matrix.runner }}
|
||||
timeout-minutes: 20
|
||||
timeout-minutes: ${{ matrix.target == 'android-universal' && 45 || 20 }}
|
||||
env:
|
||||
PIIK_BUILD_VERSION: ${{ needs.validate.outputs.version }}
|
||||
steps:
|
||||
@@ -315,16 +319,70 @@ jobs:
|
||||
gstreamer1.0-plugins-bad
|
||||
gstreamer1.0-pulseaudio
|
||||
- name: Download Server release
|
||||
if: matrix.target != 'android-universal'
|
||||
uses: actions/download-artifact@v8
|
||||
with:
|
||||
name: piik-server-${{ github.sha }}
|
||||
path: ${{ runner.temp }}/server-release
|
||||
- name: Build and verify App candidate
|
||||
if: matrix.target != 'android-universal'
|
||||
run: >-
|
||||
node scripts/package-app-candidate.mjs
|
||||
"${{ runner.temp }}/server-release"
|
||||
"${{ matrix.target }}"
|
||||
"${{ runner.temp }}/app-release"
|
||||
- name: Set up Android Java
|
||||
if: matrix.target == 'android-universal'
|
||||
uses: actions/setup-java@v5
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: '17'
|
||||
- name: Set up Android Gradle
|
||||
if: matrix.target == 'android-universal'
|
||||
uses: gradle/actions/setup-gradle@v6
|
||||
with:
|
||||
gradle-version: '8.14.8'
|
||||
cache-provider: basic
|
||||
- name: Install pinned Android build tools
|
||||
if: matrix.target == 'android-universal'
|
||||
run: |
|
||||
"$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" 'platforms;android-35' 'build-tools;35.0.0' 'ndk;30.0.16248370'
|
||||
echo "ANDROID_NDK_HOME=$ANDROID_HOME/ndk/30.0.16248370" >> "$GITHUB_ENV"
|
||||
echo "GRADLE_HOME=$(dirname "$(dirname "$(readlink -f "$(command -v gradle)")")")" >> "$GITHUB_ENV"
|
||||
go install golang.org/x/mobile/cmd/gomobile@v0.0.0-20261011034528-197770444867
|
||||
go install golang.org/x/mobile/cmd/gobind@v0.0.0-20261011034528-197770444867
|
||||
- name: Prepare Android signing
|
||||
if: matrix.target == 'android-universal'
|
||||
env:
|
||||
PIIK_PUBLISH: ${{ needs.validate.outputs.publish }}
|
||||
PIIK_ANDROID_KEYSTORE_BASE64: ${{ secrets.PIIK_ANDROID_KEYSTORE_BASE64 }}
|
||||
PIIK_ANDROID_STORE_PASSWORD: ${{ secrets.PIIK_ANDROID_STORE_PASSWORD }}
|
||||
PIIK_ANDROID_KEY_ALIAS: ${{ secrets.PIIK_ANDROID_KEY_ALIAS }}
|
||||
PIIK_ANDROID_KEY_PASSWORD: ${{ secrets.PIIK_ANDROID_KEY_PASSWORD }}
|
||||
run: |
|
||||
if [ "$PIIK_PUBLISH" = true ]; then
|
||||
for name in PIIK_ANDROID_KEYSTORE_BASE64 PIIK_ANDROID_STORE_PASSWORD PIIK_ANDROID_KEY_ALIAS PIIK_ANDROID_KEY_PASSWORD; do
|
||||
if [ -z "${!name}" ]; then echo "Android publication requires $name" >&2; exit 1; fi
|
||||
done
|
||||
umask 077
|
||||
printf '%s' "$PIIK_ANDROID_KEYSTORE_BASE64" | base64 --decode > "$RUNNER_TEMP/piik-android.keystore"
|
||||
else
|
||||
# Manual candidates exercise the same release variant with a disposable key.
|
||||
keytool -genkeypair -keystore "$RUNNER_TEMP/piik-android.keystore" -storetype PKCS12 \
|
||||
-storepass candidate-password -keypass candidate-password -alias piik-candidate \
|
||||
-keyalg RSA -keysize 3072 -validity 2 -dname 'CN=Piik CI candidate' -noprompt
|
||||
fi
|
||||
- name: Build and verify Android release APK
|
||||
if: matrix.target == 'android-universal'
|
||||
env:
|
||||
PIIK_ANDROID_KEYSTORE: ${{ runner.temp }}/piik-android.keystore
|
||||
PIIK_ANDROID_STORE_PASSWORD: ${{ needs.validate.outputs.publish == 'true' && secrets.PIIK_ANDROID_STORE_PASSWORD || 'candidate-password' }}
|
||||
PIIK_ANDROID_KEY_ALIAS: ${{ needs.validate.outputs.publish == 'true' && secrets.PIIK_ANDROID_KEY_ALIAS || 'piik-candidate' }}
|
||||
PIIK_ANDROID_KEY_PASSWORD: ${{ needs.validate.outputs.publish == 'true' && secrets.PIIK_ANDROID_KEY_PASSWORD || 'candidate-password' }}
|
||||
run: node scripts/build-android.mjs --release --output "$RUNNER_TEMP/app-release"
|
||||
- name: Remove temporary Android signing material
|
||||
if: always() && matrix.target == 'android-universal'
|
||||
run: rm -f -- "$RUNNER_TEMP/piik-android.keystore"
|
||||
- name: Upload App release candidate
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
|
||||
@@ -1 +1 @@
|
||||
24.19.0
|
||||
24.22.3
|
||||
@@ -26,6 +26,11 @@ and [engineering](./docs/standards/engineering.md).
|
||||
- This file owns project-wide constraints; linked standards own domain rules,
|
||||
CONTRIBUTING owns delivery, and skills supply task methods. A skill, reference
|
||||
example or audit suggestion cannot override those owners or authorize extra work.
|
||||
- Do not expand scope for speculative races or security edge cases. Before
|
||||
adding such extra mechanisms, explain the concrete failure, evidence for its
|
||||
likelihood, and added code and maintenance cost; obtain user agreement. Do not
|
||||
invent probabilities. Reachable defects and required authority, lifecycle and
|
||||
resource correctness within authorized work need no extra approval.
|
||||
- Model recovery from the smallest underlying authority and connection state.
|
||||
Restart, crash, timeout, and network loss do not justify parallel states or
|
||||
case-specific fallbacks when their required action is the same.
|
||||
@@ -102,7 +107,7 @@ invocation; follow their relevant guidance without importing unrelated workflows
|
||||
- `main` remains low-frequency: one complete, user-accepted phase per squash PR,
|
||||
with no intermediate release-record or cleanup commits. Keep implementation
|
||||
on worktrees; [CONTRIBUTING.md](./CONTRIBUTING.md#full-integration-and-release-workflow)
|
||||
owns the full workflow and explicit emergency exception.
|
||||
owns the full workflow, focused external contributions and emergency exceptions.
|
||||
- Preserve user work. Branch, truth-checkpoint, PR, release, recovery, and
|
||||
cleanup rules are owned by [CONTRIBUTING.md](./CONTRIBUTING.md); do not mirror
|
||||
that workflow here.
|
||||
|
||||
@@ -27,20 +27,32 @@ valuable. Duplicate work already independently resolved, personal preferences or
|
||||
low-value changes may be declined; merging is not an attribution mechanism.
|
||||
Retain authorship for accepted contributions and credit substantive discoveries
|
||||
accurately, without attributing independently written code to a PR author.
|
||||
Keep contributor patch commits limited to their necessary changes; put maintainer
|
||||
adaptations and unrelated work in separate commits. Preserve a useful original
|
||||
patch commit at integration instead of adding its author as co-author of an
|
||||
entire phase's squash commit.
|
||||
Keep contributor patches limited to their necessary changes. Integrate accepted
|
||||
external contributions through their own focused PRs, preserving their authors
|
||||
separately from a larger maintainer phase. A focused PR may land on `main`
|
||||
without releasing a product version; use the
|
||||
[publication hold](./docs/operations/github.md#enable-automatic-publication-once)
|
||||
before a non-publishing merge. A co-author trailer credits a whole commit, not
|
||||
selected lines; do not use a phase-wide squash to attribute unrelated maintainer work.
|
||||
Check authorship on the final default-branch commit, not only on patch commits
|
||||
that a later squash may discard. Use Git authorship for accepted contributions;
|
||||
do not maintain a separate thanks list or manufacture empty credit commits.
|
||||
评审看实际价值、证据和产品定位,不看代码行数。发现并解决真实问题的小修复同样值得接纳;
|
||||
已经独立解决的重复工作、个人偏好或收益很低的改动可以不合并,不为增加贡献者名单而合并。
|
||||
保留已接纳贡献的作者信息,如实说明有价值的问题发现;独立编写的代码不应冒记为他人共同编写。
|
||||
接纳的外部贡献单独以小范围 PR 合入,保留作者身份,不混入维护者的大批改动。
|
||||
合入 main 不要求立即发版;暂不发布时,合并前先暂停自动发布。共同署名作用于整个提交,不能按行分配;
|
||||
验收署名以最终进入默认分支的提交为准,不另设鸣谢名单或空提交补贡献计数。
|
||||
|
||||
## Lean Workflow
|
||||
|
||||
This is the default for an ordinary scoped implementation or bug fix.
|
||||
|
||||
1. Start a new phase from clean, current canonical `main`; continue scoped work in that phase's existing worktree. Preserve unrelated user work.
|
||||
2. Inspect the affected code, current owner, and reachable evidence. Research primary sources only when the issue is non-trivial or component behavior is uncertain.
|
||||
2. Inspect the affected code, current owner, and reachable evidence. Use the
|
||||
repository's existing tools, commands and workflow; introduce another only
|
||||
when the requested result needs it. Research primary sources when the issue
|
||||
is non-trivial or component behavior is uncertain.
|
||||
3. Make the smallest coherent change under the repo-tracked [`ponytail` skill](./.agents/skills/ponytail/SKILL.md).
|
||||
4. Run the focused tests or checks that exercise the changed behavior, inspect the pending diff, stage requested files, and report the result and evidence.
|
||||
|
||||
@@ -54,13 +66,13 @@ Use this path only when the owner explicitly requests it or when closing a major
|
||||
intermediate implementation, experiments, evidence collection, release notes,
|
||||
and cleanup stay in branches/worktrees. One complete, user-accepted phase lands
|
||||
through one squash PR after its related checks and acceptance are finished;
|
||||
leave `main` alone until the next material phase. Only a user-authorized P0/P1
|
||||
emergency may use a separate PR, and that PR must still contain one coherent
|
||||
fix.
|
||||
leave `main` alone until the next material phase. Accepted external contributions
|
||||
and user-authorized P0/P1 emergencies use separate focused PRs. Each must contain
|
||||
one complete, reviewed change; a contribution merge does not authorize publication.
|
||||
|
||||
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.
|
||||
|
||||
@@ -86,11 +98,21 @@ require a wire bump.
|
||||
|
||||
Clean up worktrees and branches only after semantic review and integration are complete and the normal merged-head, open-reference, clean-tree, and non-following link checks pass. Never merge an old branch wholesale after a newer truth checkpoint.
|
||||
|
||||
For owner-managed manual deletion, collect permitted retired artifacts in
|
||||
`Desktop/Piik-cleanup` with their original paths. Keep worktrees under Git's cleanup
|
||||
workflow. Targets of a policy-rejected cleanup stay in place and go in that path
|
||||
index; do not substitute a move for the rejected deletion.
|
||||
|
||||
## Research Standard
|
||||
|
||||
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.
|
||||
@@ -103,18 +125,61 @@ protocol identifiers; use normal language-specific identifier conventions.
|
||||
their own licenses and notices. GPL/AGPL implementation sources remain
|
||||
study-only unless a separate distribution decision accepts their obligations.
|
||||
|
||||
## Temporary Dependency Patches
|
||||
|
||||
Distinguish an upstream defect from a missing capability or a Piik integration
|
||||
error. Reproduce defects through the dependency's public API without Piik;
|
||||
requiring a new API demonstrates a capability gap, not a broken existing contract.
|
||||
For capability additions, prefer a Piik adapter through existing public extension
|
||||
points. Where those are insufficient, expose a narrow reusable hook and keep
|
||||
application policy outside the dependency. Compare total ownership: moving or
|
||||
duplicating private internals into an adapter does not remove maintenance cost.
|
||||
Evaluate larger feature additions as dependency choices, rather than treating
|
||||
them as small fixes.
|
||||
|
||||
The [dependency provenance](./internal/thirdparty/README.md) owns official
|
||||
baselines, retained patches and removal criteria. Review upstream when changing
|
||||
a patched dependency and before phase acceptance. Do not create a second patch
|
||||
inventory or edit shared package caches.
|
||||
|
||||
Prepare an update from the recorded base and patch head in a new directory:
|
||||
|
||||
```sh
|
||||
node scripts/sync-upstream.mjs --source <fork-url-or-local-clone> --upstream <official-url-or-local-clone> --base <official-base> --head <patch-head> --out build/upstream-candidate
|
||||
```
|
||||
|
||||
The tool fetches official `HEAD` (or `--onto <ref>`) and replays the patch range.
|
||||
It records exact revisions, upstream-equivalent patches and conflicts in
|
||||
`.git/piik-upstream-sync.json`, with the successful range comparison in
|
||||
`.git/piik-upstream-range-diff.txt`. Existing clones, local edits and Piik pins
|
||||
remain unchanged. Conflicts stay in the candidate for review.
|
||||
|
||||
Inspect that comparison, then run the dependency's relevant checks and Piik's
|
||||
existing reproduction or acceptance gate before changing a pin. When upstream
|
||||
covers the retained behavior, remove the replacement. The tool prepares source;
|
||||
it does not publish changes or approve a dependency update.
|
||||
|
||||
## Verification Entrypoints
|
||||
|
||||
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.
|
||||
@@ -200,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
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<p align="center">
|
||||
<a href="https://piik.tv">Website</a> ·
|
||||
<a href="https://github.com/TNTcraftHIM/Piik/releases">Download</a> ·
|
||||
<a href="https://gitee.com/TNTcraftHIM/Piik/releases">Gitee mirror</a> ·
|
||||
<a href="https://atomgit.com/TNTcraftHIM/Piik/releases">AtomGit mirror</a> ·
|
||||
<a href="https://demo.piik.tv">Use online</a> ·
|
||||
<a href="https://piik.tv/docs/?lang=en">Documentation</a>
|
||||
</p>
|
||||
@@ -35,8 +35,8 @@ on your own server.
|
||||
- **Share from Piik App or an existing Piik site.** Choose a screen, window, browser tab or camera; available sources and audio depend on the platform.
|
||||
- **Direct connections first.** Media travels between participants where possible (P2P). A self-hosted server can provide automatic media forwarding (SFU) as a fallback.
|
||||
- **Rooms you control.** Invitations, room codes and optional room passwords, for one host and up to 20 viewers.
|
||||
- **Chat while watching.** Send messages and reactions to friends, with optional on-screen chat.
|
||||
- **Hand control to a friend.** When sharing through Piik App, optionally let one viewer use your keyboard and mouse, and take control back at any time.
|
||||
- **Talk and chat together.** Join room voice, send messages and reactions, or enable on-screen chat.
|
||||
- **Hand control to friends.** Share an App window or screen and approve remote control. Allow friends to play together with shared keyboard/mouse or supported gamepads; take control back at any time. [Setup guide](./docs/guide/remote-control.md).
|
||||
- **Flexible viewing.** Light and dark themes, playback controls, picture-in-picture and a connection topology view.
|
||||
- **One program to host a site.** Web UI, room management and optional media forwarding are packaged together.
|
||||
|
||||
@@ -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 and open the App, choose **Public invite**, then **Open Piik** to create a temporary room. |
|
||||
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.
|
||||
|
||||
@@ -74,32 +66,23 @@ Use **中 / EN / ✦** in the header to switch language or try the visual mode.
|
||||
The App can create a local room or temporary public invitation, and stays
|
||||
available to supply capture for an approved site. Keep it running while sharing.
|
||||
|
||||
Download a ZIP beginning with **`piik-app`**. The filename also identifies the platform:
|
||||
[**Illustrated getting started →**](./docs/guide/getting-started.md) · [**Troubleshooting →**](./docs/guide/troubleshooting.md)
|
||||
|
||||
| Filename contains | Platform |
|
||||
| --- | --- |
|
||||
| `windows-amd64` | Windows x64 |
|
||||
| `darwin-arm64` | Apple silicon; native capture requires macOS 13+ |
|
||||
| `darwin-amd64` | Intel Mac; native capture requires macOS 13+ |
|
||||
| `linux-amd64` | Linux x64 |
|
||||
| `linux-arm64` | Linux ARM64 |
|
||||
Choose a download beginning with **`piik-app`**. The guide covers installation,
|
||||
source selection and invitations.
|
||||
|
||||
[**Getting started →**](./docs/guide/getting-started.md) · [**Troubleshooting →**](./docs/guide/troubleshooting.md)
|
||||
|
||||
Browser capture requires HTTPS or `localhost`. Windows App and desktop browser
|
||||
sharing are the primary tested paths. Physical-device coverage for the macOS and
|
||||
Linux apps is still limited; [test results and feedback are welcome](https://github.com/TNTcraftHIM/Piik/issues).
|
||||
P2P-only modes, including the App's temporary public
|
||||
link and the online version, may not connect on restrictive networks.
|
||||
Browser capture requires HTTPS or `localhost`.
|
||||
The App's temporary public link and the online version use P2P and need a usable
|
||||
UDP connection between participants. For campus
|
||||
networks, failed media connections or virtual LANs, see [network checks and connection options](./docs/guide/network.md).
|
||||
|
||||
## Self-hosting
|
||||
|
||||
To run a site for your group, deploy Piik Server. App users can start with
|
||||
public invitations without a server of their own.
|
||||
Deploy Piik Server to run a site for your group.
|
||||
|
||||
<p><a href="./docs/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 with Docker Compose"></a></p>
|
||||
|
||||
Piik Server is a standalone binary with the web interface built in.
|
||||
Piik Server runs on Windows x64 and Linux x64/ARM64, with the web interface built in.
|
||||
Download the Server package for Linux x64 (`piik-<revision>-runtime.tar.gz`)
|
||||
or ARM64 (`piik-<revision>-linux-arm64-runtime.tar.gz`),
|
||||
extract it, and run:
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<p align="center">
|
||||
<a href="https://piik.tv/?lang=zh-CN">官网</a> ·
|
||||
<a href="https://github.com/TNTcraftHIM/Piik/releases">下载</a> ·
|
||||
<a href="https://gitee.com/TNTcraftHIM/Piik/releases">Gitee 镜像</a> ·
|
||||
<a href="https://atomgit.com/TNTcraftHIM/Piik/releases">AtomGit 镜像</a> ·
|
||||
<a href="https://demo.piik.tv">在线版</a> ·
|
||||
<a href="https://piik.tv/docs/zh/">文档中心</a>
|
||||
</p>
|
||||
@@ -33,8 +33,8 @@ Piik 是一个免费开源的私密屏幕共享工具,适合游戏直播、一
|
||||
- **用 Piik App 或已有 Piik 站点分享。** 支持屏幕、窗口、浏览器标签页和摄像头;可选来源与音频能力取决于平台。
|
||||
- **优先直接连接。** 画面优先在设备之间传输(P2P),自建站点可启用媒体转发(SFU)自动兜底。
|
||||
- **房间由你管理。** 支持邀请链接、房间号和可选的房间密码,一位房主、最多 20 位观众。
|
||||
- **边看边聊。** 发送文字、和朋友互送表情,也可开启弹幕。
|
||||
- **让朋友接手操作。** 通过 Piik App 分享时,可选择让一位观众操作键鼠,随时结束控制。
|
||||
- **边看边聊。** 加入房间语音,发送文字和表情,也可开启弹幕。
|
||||
- **让朋友接手操作。** 通过 Piik App 分享窗口或屏幕并授权远控,也可允许多人共用键鼠或使用受支持的手柄一起玩,随时结束控制。[查看设置方法](./docs/guide/remote-control.zh-CN.md)。
|
||||
- **灵活的观看方式。** 支持深浅主题、播放控制、画中画和连接拓扑查看。
|
||||
- **一个程序就能建站。** 网页、房间管理和可选的媒体转发打包在同一服务端程序中。
|
||||
|
||||
@@ -48,20 +48,14 @@ Piik 是一个免费开源的私密屏幕共享工具,适合游戏直播、一
|
||||
|
||||
## 开始使用
|
||||
|
||||
**观看分享:** 打开朋友发来的邀请链接。画面没有自动播放时,点击**播放**即可。
|
||||
**收到邀请?** 在电脑或手机浏览器打开朋友发来的完整链接即可观看。画面没有自动播放时,点 **播放**。
|
||||
|
||||
**分享画面:** 推荐下载 **Piik App**。想免安装,也可以打开在线版直接创建房间。
|
||||
|
||||
| 从这里开始 | 需要做什么 |
|
||||
| --- | --- |
|
||||
| [使用在线版](https://demo.piik.tv) | 用电脑浏览器分享画面;手机浏览器支持摄像头访问时,也可选择摄像头分享。 |
|
||||
| [下载 Piik App](https://piik.tv/?lang=zh-CN#download) | 解压并启动 Piik App,选择**公网邀请**,点击**进入 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. 点击**复制邀请链接**,发给朋友。分享期间保持标签页打开。
|
||||
|
||||
打开 **互动 → 语音** 即可一起聊天,开播前后都能使用。
|
||||
房主开启语音后,大家自行加入收听,想说话时再打开自己的麦克风。
|
||||
|
||||
@@ -69,30 +63,20 @@ Piik 默认跟随系统语言,中文系统显示简体中文,其他语言显
|
||||
顶部的 **中 / EN / ✦** 可切换中英文或体验纯视觉模式。
|
||||
Piik App 可创建本地房间或临时公网邀请,也能在后台为已授权站点提供采集能力。分享期间需保持 App 运行。
|
||||
|
||||
下载以 **`piik-app`** 开头的 ZIP 压缩包,再按文件名中的平台标识选择:
|
||||
[**图文上手教程 →**](./docs/guide/getting-started.zh-CN.md) · [**问题排查 →**](./docs/guide/troubleshooting.zh-CN.md)
|
||||
|
||||
| 文件名包含 | 适用平台 |
|
||||
| --- | --- |
|
||||
| `windows-amd64` | Windows x64 |
|
||||
| `darwin-arm64` | Apple 芯片;原生采集需 macOS 13 及以上 |
|
||||
| `darwin-amd64` | Intel Mac;原生采集需 macOS 13 及以上 |
|
||||
| `linux-amd64` | Linux x64 |
|
||||
| `linux-arm64` | Linux ARM64 |
|
||||
选择以 **`piik-app`** 开头的程序包;教程介绍安装、选择画面和邀请朋友的完整步骤。
|
||||
|
||||
[**快速上手 →**](./docs/guide/getting-started.zh-CN.md) · [**问题排查 →**](./docs/guide/troubleshooting.zh-CN.md)
|
||||
|
||||
浏览器采集需要 HTTPS 或 `localhost`。目前主要测试 Windows 版 Piik App 和桌面浏览器分享。
|
||||
macOS 和 Linux 版 Piik App 仍需更多实机测试,欢迎有设备的朋友试用并[反馈问题](https://github.com/TNTcraftHIM/Piik/issues)。
|
||||
Piik App 的公网邀请和在线版使用纯 P2P 连接,
|
||||
在受限网络下可能无法连通。
|
||||
浏览器采集需要 HTTPS 或 `localhost`。Piik App 的公网邀请和在线版使用 P2P,
|
||||
参与者之间需要可用的 UDP 通路。校园网、画面连接失败或虚拟局域网的用法,见[网络排查与连接方案](./docs/guide/network.zh-CN.md)。
|
||||
|
||||
## 自行部署
|
||||
|
||||
想为朋友搭建站点时,再部署 Piik Server。使用 App 的公网邀请,无须自行部署服务器。
|
||||
部署 Piik Server,为朋友搭建自己的站点。
|
||||
|
||||
<p><a href="./docs/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"></a></p>
|
||||
|
||||
Piik Server 是一个内置网页界面的独立程序。
|
||||
Piik Server 是内置网页界面的独立程序,支持 Windows x64 和 Linux x64/ARM64。
|
||||
根据服务器架构下载 Linux x64 的 `piik-<revision>-runtime.tar.gz` 或 ARM64 的
|
||||
`piik-<revision>-linux-arm64-runtime.tar.gz`,解压后运行:
|
||||
|
||||
|
||||
@@ -105,6 +105,15 @@ For a native Host smoke run, launch the App and select a window in the Host
|
||||
page, then open its invitation on another device. Choose the mode for that
|
||||
network as described in the [App guide](./README.md#modes).
|
||||
|
||||
### Optional Gamepad Drivers
|
||||
|
||||
App packaging does not download or include optional input SDKs or drivers.
|
||||
The Windows adapter calls an externally installed ViGEmBus through its public
|
||||
bus interface; Linux uses system uinput and macOS uses native virtual HID APIs.
|
||||
Driver availability and permission are checked by the platform adapter.
|
||||
See the [gamepad setup guide](../../docs/guide/remote-control.md#gamepads)
|
||||
for Host requirements and platform support.
|
||||
|
||||
### Desktop Icons
|
||||
|
||||
The Windows App embeds the shared Piik mark through the
|
||||
|
||||
@@ -7,6 +7,10 @@ interface in your system Browser.
|
||||
|
||||
## Run A Package
|
||||
|
||||
For Android APK installation and the shared browser workflow, follow
|
||||
[Getting started](../../docs/guide/getting-started.md#share-with-piik-app).
|
||||
The package, terminal and command-line instructions below apply to desktop App.
|
||||
|
||||
Extract the matching platform bundle in full. On Windows and Linux, keep
|
||||
`runtime` beside the App executable and run `piik-app.exe` or `./piik-app`.
|
||||
On macOS, open `Piik App.app`; you can move the whole `.app` to Applications.
|
||||
@@ -18,73 +22,73 @@ in the [Linux capture guide](../../native/capture/linux/README.md).
|
||||
If the page does not open automatically, open the address shown in the terminal
|
||||
or press **O** there to retry. Keep the App running while using that page.
|
||||
|
||||
Windows App and browser sharing are the primary tested paths. Physical-device
|
||||
coverage for the macOS and Linux apps is still limited; test results and
|
||||
[feedback](https://github.com/TNTcraftHIM/Piik/issues) are welcome. macOS native
|
||||
capture requires macOS 13 or newer on Apple silicon or Intel.
|
||||
macOS native capture requires macOS 13 or newer. Windows App and browser sharing
|
||||
are the primary tested paths; [macOS/Linux feedback is welcome](https://github.com/TNTcraftHIM/Piik/issues).
|
||||
|
||||
## Modes
|
||||
|
||||
- With no mode argument, the App opens its launcher and waits for use by an
|
||||
approved Site. Choose **Local room** or **Public invite** to start a room
|
||||
service on this device and enter the normal Host page.
|
||||
Star an approved Site in the launcher to open it on startup instead;
|
||||
turn the star off to restore the launcher. Replacing or revoking the Site clears this choice.
|
||||
- The launcher remembers the last mode confirmed with **Open Piik**. Without a
|
||||
saved Local/Public choice, it selects Public invite and waits for confirmation.
|
||||
- The default launcher checks official releases after it opens, using GitHub
|
||||
first and Gitee if GitHub is unavailable. Click the update button to download
|
||||
the matching platform ZIP, or open the release page when no package matches.
|
||||
**Release notes** opens separately; a new major version includes an upgrade
|
||||
warning. The App does not install or replace itself.
|
||||
Choose **Local room** or **Public invite**, then **Open Piik**, to start a room
|
||||
service. To supply capture to an existing site, leave the launcher open and
|
||||
[approve that site](#approved-site).
|
||||
|
||||
App remembers the last confirmed room mode. On first use, **Public invite** is
|
||||
selected and waits for confirmation. A starred site opens on startup instead.
|
||||
|
||||
The launcher checks releases through GitHub. Published binaries retain their
|
||||
Gitee fallback; use AtomGit for current manual mirror downloads.
|
||||
Its update button downloads your platform's ZIP, or opens Releases if no package
|
||||
matches. **Release notes** opens the changes; major upgrades show a warning.
|
||||
Follow the [upgrade steps](#upgrading) to replace App.
|
||||
|
||||
### Local Room
|
||||
|
||||
Choose **Local room** for a reachable LAN. Rooms last for this App run.
|
||||
|
||||
For Local invitations, the App automatically selects a sole active address or
|
||||
sole private IPv4. If several addresses remain possible, choose an interface
|
||||
and IP in the launcher. Public invite and use through a Site need no LAN selection.
|
||||
The selected address is checked again at startup;
|
||||
it selects the Local HTTPS entry and invitation address, while ICE selects media paths independently.
|
||||
Local invitations use HTTPS on that address; the Host keeps its HTTP loopback
|
||||
page. First access requires [confirming the local certificate](../../docs/guide/troubleshooting.md#local-https-certificate-warning)
|
||||
against the App terminal. The certificate stays in memory and changes on restart.
|
||||
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.
|
||||
|
||||
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
|
||||
|
||||
For one-link Internet sharing, open the App launcher, choose **Public invite**,
|
||||
create a room in the opened Browser, and send its normal invitation link. The
|
||||
random `trycloudflare.com` origin lasts only for that App run; a later launch
|
||||
creates a new temporary link. Cloudflare Quick Tunnels provide no uptime guarantee;
|
||||
use a configured Site when persistent control availability or SFU fallback matters.
|
||||
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 fixed address, use an existing Piik site or follow the [frp guide for your App version](../../docs/guide/frp.md#desktop-app).
|
||||
|
||||
Public invite uses the packaged Cloudflare Tunnel helper to expose the same
|
||||
room service at a temporary HTTPS address. Picture and sound travel between
|
||||
participants (P2P), outside the tunnel. Local and Public invite both need a usable
|
||||
UDP media path and provide no media-server forwarding (SFU) or TURN relay fallback.
|
||||
The [routing reference](../../docs/standards/routing-transport.md) explains connection setup.
|
||||
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)
|
||||
or TURN relay. If the tunnel or media fails, use the [network checks](../../docs/guide/network.md)
|
||||
and [public-invitation checks](../../docs/guide/troubleshooting.md#public-invitation-fails-or-shows-1033).
|
||||
|
||||
Public invite uses Cloudflare, MiWiFi (Xiaomi) and Bilibili STUN services to
|
||||
discover reachable addresses. Each contacted operator can see your public IP,
|
||||
port and request timing; these requests contain no shared media, chat or room
|
||||
password. NAT enhancement uses the same destinations automatically.
|
||||
port and request timing; these requests contain no media, chat or room password.
|
||||
To choose your own STUN services for public invitations, set `PIIK_STUN_URLS`
|
||||
before starting App; see [App configuration](../../docs/standards/configuration.md#piik-app-configuration).
|
||||
An approved Site supplies its own `STUN_URLS`; App Local rooms configure no public STUN.
|
||||
|
||||
### Approved Site
|
||||
|
||||
To use a Piik Site, keep the App running and click **App** at the top of the Site.
|
||||
Confirm its address on the local approval page. The App remembers one approved
|
||||
Site, which the launcher can open or revoke. Approving another replaces it and
|
||||
ends the previous Site's App connections; Local rooms remain independent.
|
||||
Click the connected **App** button on a Site to reopen the launcher. If the Site
|
||||
will not open, use the **App launcher** address in the App terminal instead.
|
||||
The browser remembers activation, so later visits reuse the running App with
|
||||
that Site's rooms and any enabled SFU fallback. Browser capture remains available
|
||||
without the App; see the
|
||||
[connection steps](../../docs/guide/getting-started.md#use-app-with-an-existing-site).
|
||||
Keep App running, click **App** at the top of the Piik site, and confirm its
|
||||
address on the local approval page. See the [connection steps](../../docs/guide/getting-started.md#use-app-with-an-existing-site).
|
||||
|
||||
The launcher lists approved sites:
|
||||
|
||||
- Click a site to open it. **×** revokes its App connections while other sites and Local rooms continue.
|
||||
- **☆** selects one site to open on startup. Clear the star to restore the launcher;
|
||||
revoking the starred site also clears it. Approving another site keeps existing approvals.
|
||||
- Click a connected site's **App** button to reopen the launcher, or use the
|
||||
**App launcher** address in the terminal.
|
||||
|
||||
The browser remembers activation. Reconnect after changing browsers, using a
|
||||
private window or clearing site data. A new public-invite address needs its own
|
||||
approval. The site continues to own its rooms and enabled SFU forwarding.
|
||||
|
||||
## Capture
|
||||
|
||||
@@ -95,10 +99,7 @@ hardware H264. Source and audio support vary by platform; their setup is covered
|
||||
in the [Windows](../../native/capture/windows/README.md),
|
||||
[macOS](../../native/capture/darwin/README.md) and
|
||||
[Linux](../../native/capture/linux/README.md) capture guides.
|
||||
Native capture uses the Host's current quality settings. The
|
||||
[media-quality reference](../../docs/standards/media-quality.md) owns codec selection,
|
||||
live changes and encoding reuse; [verification status](../../docs/verification-status.md)
|
||||
keeps the measured limits.
|
||||
Adjust native capture through [Sharing settings](../../docs/guide/sharing.md#picture-and-sound-settings).
|
||||
|
||||
When the Windows App's capture runtime supports it, the **Apps / Windows** and
|
||||
**Screens** tabs offer **Show capture border**, off by default. Change it when selecting or switching a
|
||||
@@ -124,6 +125,22 @@ To bypass the launcher in development or automation, select a mode explicitly:
|
||||
| `--link` | Temporary Public invite |
|
||||
| `--site <origin>` | Save and open a Piik Site |
|
||||
|
||||
## Upgrading
|
||||
|
||||
App and site must use the same major version; **2.x and 1.x cannot be used together**.
|
||||
Different 2.x versions preserve established sharing and viewing. New features
|
||||
require support from the relevant App and site.
|
||||
|
||||
1. Read the release notes on [GitHub](https://github.com/TNTcraftHIM/Piik/releases/latest)
|
||||
or [AtomGit](https://atomgit.com/TNTcraftHIM/Piik/releases).
|
||||
2. For Local room or Public invite, stop sharing, close App and extract the
|
||||
complete new package. Start it and send a fresh invitation.
|
||||
3. For a group's site, the administrator [updates Server](../../docs/operations/service-management.md)
|
||||
first. Then update connected Apps and refresh all sharing/viewing pages.
|
||||
|
||||
The launcher update button downloads the package; the
|
||||
[AtomGit mirror](https://atomgit.com/TNTcraftHIM/Piik/releases) is an alternative source. Restarting App or Server interrupts active shares.
|
||||
|
||||
## Terminal And Shutdown
|
||||
|
||||
The terminal shows the current mode, entry links and startup state; its language
|
||||
@@ -140,11 +157,9 @@ redirected or automated runs exit directly.
|
||||
|
||||
### Chromium WebRTC Connections
|
||||
|
||||
**Why can the page open, or screen capture succeed, while sharing or viewing fails?**
|
||||
|
||||
Browser settings, extensions or managed policies can block WebRTC UDP, including
|
||||
the local Browser-to-App media connection. Follow the documentation center's
|
||||
[browser WebRTC checks](../../docs/guide/troubleshooting.md#browser-webrtc-restrictions).
|
||||
[browser WebRTC checks](../../docs/guide/network.md#browser-webrtc-restrictions).
|
||||
For codec-specific failures, see [Windows H264 troubleshooting](../../docs/guide/troubleshooting.md#h264-sharing-fails-on-windows).
|
||||
|
||||
### Diagnostics
|
||||
|
||||
@@ -6,6 +6,9 @@ Piik App 通过系统浏览器中的 Piik 网页界面,提供本地房间与
|
||||
|
||||
## 运行程序包
|
||||
|
||||
安卓 APK 安装与共用的浏览器操作流程见[上手指南](../../docs/guide/getting-started.zh-CN.md#用-piik-app-分享)。
|
||||
下方程序包、终端与命令行说明适用于桌面 App。
|
||||
|
||||
完整解压对应平台的程序包。Windows 和 Linux 保留 App 程序旁的 `runtime` 目录,
|
||||
分别运行 `piik-app.exe` 或 `./piik-app`。
|
||||
macOS 打开 `Piik App.app`,也可以将整个 `.app` 移到「应用程序」。
|
||||
@@ -16,58 +19,62 @@ macOS 打开 `Piik App.app`,也可以将整个 `.app` 移到「应用程序」
|
||||
网页没有自动打开时,可手动打开终端中显示的地址,或在终端按 **O** 重试。
|
||||
使用网页期间,请保持 App 运行。
|
||||
|
||||
目前主要测试 Windows 版 Piik App 和浏览器分享。macOS 与 Linux 版 Piik App 仍需更多实机测试,
|
||||
欢迎试用并[反馈结果](https://github.com/TNTcraftHIM/Piik/issues)。macOS 原生采集需要
|
||||
Apple 芯片或 Intel Mac,以及 macOS 13 或更新版本。
|
||||
macOS 原生采集需要 macOS 13 或更新版本。目前主要测试 Windows App 与浏览器分享,
|
||||
欢迎 macOS/Linux 用户[反馈使用结果](https://github.com/TNTcraftHIM/Piik/issues)。
|
||||
|
||||
## 运行模式
|
||||
|
||||
- 不传模式参数时,App 打开启动页,等待已授权站点使用。选择 **本地房间** 或
|
||||
**公网邀请**,可在这台设备上启动房间服务,进入通常的房主页面。
|
||||
在启动页点亮已授权站点旁的星标,下次就会直接打开该站点;取消星标后恢复启动页。
|
||||
替换站点或取消授权也会清除星标。
|
||||
- 启动页会记住上次点击 **进入 Piik** 确认的模式。
|
||||
没有已保存的本地/公网选择时,默认选中公网邀请;确认后才启动。
|
||||
- 默认启动页打开后会检查官方发布,优先使用 GitHub,GitHub 不可用时使用 Gitee。
|
||||
点击更新按钮下载对应平台的 ZIP,没有匹配包时打开发布页。
|
||||
**版本说明** 可单独查看;发现新的大版本时会显示升级提示。App 不会自行安装或替换程序。
|
||||
选择 **本地房间** 或 **公网邀请**,点击 **进入 Piik** 启动房间服务。
|
||||
搭配已有站点使用采集时,保持启动页打开,[授权该站点](#已授权站点)即可。
|
||||
|
||||
App 会记住上次确认的房间模式。首次使用默认选中 **公网邀请**,确认后才启动;
|
||||
有收藏站点时,启动后直接打开该站点。
|
||||
|
||||
启动页通过 GitHub 检查更新;已发布客户端仍内置 Gitee 备用来源,当前手动备用下载请使用 AtomGit。
|
||||
没有匹配包时打开发布页。**版本说明** 可查看改动,大版本升级会另行提示。
|
||||
替换 App 的操作见[升级步骤](#升级)。
|
||||
|
||||
### 本地房间
|
||||
|
||||
选择 **本地房间**,在设备间可互相访问的局域网中使用。房间仅在本次 App 运行期间有效。
|
||||
|
||||
本地邀请会自动选择唯一的活动地址或唯一的私有 IPv4 地址。仍有多个可能地址时,
|
||||
请在启动页选择网卡和 IP。公网邀请和搭配站点使用时无需选择局域网地址。
|
||||
App 会在启动时再次检查所选地址;它用于本地 HTTPS 入口和邀请链接,媒体路径仍由 ICE 独立选择。
|
||||
房主继续使用 HTTP 本机页面;朋友首次打开 HTTPS 邀请时,需与 App 终端核对
|
||||
[本地证书](../../docs/guide/troubleshooting.zh-CN.md#本地-https-证书提示)。证书只保存在内存中,重启后更换。
|
||||
App 自动选择唯一的活动地址或私有 IPv4;有多个地址时,在启动页的 **局域网邀请地址** 中选择。
|
||||
使用[虚拟局域网](../../docs/guide/network.zh-CN.md#可选虚拟局域网)时,选择对应的虚拟 IPv4。
|
||||
|
||||
在运行 App 的电脑上打开本机页面,把所选局域网地址对应的 HTTPS 邀请发给朋友。
|
||||
朋友首次打开邀请时,请一起核对朋友设备上显示的证书指纹和你电脑上 App 终端里的指纹,
|
||||
一致后再[确认证书](../../docs/guide/troubleshooting.zh-CN.md#本地-https-证书提示)。App 重启后需重新确认。
|
||||
|
||||
### 公网邀请
|
||||
|
||||
临时公网分享时,打开 App 启动页,选择 **公网邀请**,在随后打开的浏览器中创建房间,
|
||||
发送通常的邀请链接即可。随机的 `trycloudflare.com` 来源仅在本次 App 运行期间有效,
|
||||
下次启动会创建新链接。Cloudflare Quick Tunnels 不保证持续可用;
|
||||
需要持久的控制服务或 SFU 兜底时,请使用配置好的站点。
|
||||
选择 **公网邀请**,在打开的浏览器中创建房间,再发送邀请链接。
|
||||
程序包中的 Cloudflare Tunnel 提供临时 `trycloudflare.com` HTTPS 地址,App 关闭后失效,
|
||||
下次启动会生成新地址。需要固定地址时,可以使用已有 Piik 站点,也可以按 [frp 指南](../../docs/guide/frp.zh-CN.md#桌面-app)查看当前 App 版本的设置方式。
|
||||
|
||||
公网邀请通过程序包中的 Cloudflare Tunnel 辅助程序,为同一个房间服务提供临时 HTTPS 地址。
|
||||
画面和声音在参与者之间传输(P2P),不经过隧道。本地房间和公网邀请都需要可用的 UDP 媒体路径,
|
||||
没有媒体服务器转发(SFU)或 TURN 中继兜底。连接机制见
|
||||
[路由参考](../../docs/standards/routing-transport.md)。
|
||||
本地房间和公网邀请的画面、声音通过 P2P 传输,不经过网页隧道;需要可用的 UDP 媒体路径,
|
||||
没有服务器媒体转发(SFU)或 TURN 中继。隧道或媒体连接失败时,查看
|
||||
[网络排查](../../docs/guide/network.zh-CN.md)与[公网邀请排查](../../docs/guide/troubleshooting.zh-CN.md#公网邀请创建失败或出现-1033)。
|
||||
|
||||
公网邀请使用 Cloudflare、小米和 Bilibili 的 STUN 服务发现可连接地址。
|
||||
被联系的服务商能看到你的公网 IP、端口和请求时间;这些请求不包含分享画面、声音、
|
||||
聊天或房间密码。NAT 增强会自动使用同一组地址。公网邀请可在启动 App 前通过
|
||||
聊天或房间密码。公网邀请可在启动 App 前通过
|
||||
`PIIK_STUN_URLS` 替换 STUN 服务,示例见 [App 配置](../../docs/standards/configuration.md#piik-app-configuration)。
|
||||
搭配已授权站点时使用站点的 `STUN_URLS`;App 本地房间不配置公共 STUN。
|
||||
|
||||
### 已授权站点
|
||||
|
||||
使用 Piik 站点时,保持 App 运行,点击站点顶部的 **App**,在本机确认页核对网址并允许使用。
|
||||
App 记住一个已授权站点,可在启动页打开或取消授权。允许另一个站点会替换旧站点,
|
||||
结束旧站点的 App 连接;本地房间不受影响。点击站点上已连接的 **App** 按钮可重开启动页;
|
||||
站点打不开时,可使用 App 终端中的 **App 启动页** 地址。同一浏览器记住启用选择,
|
||||
之后访问站点即可继续使用 App,同时使用该站点的房间和已启用的 SFU 兜底。
|
||||
没有 App 时仍可使用浏览器采集,详见[连接步骤](../../docs/guide/getting-started.zh-CN.md#通过已有站点使用-app)。
|
||||
保持 App 运行,点击 Piik 站点顶部的 **App**,在本机确认页核对网址并允许使用。
|
||||
详细操作见[连接步骤](../../docs/guide/getting-started.zh-CN.md#通过已有站点使用-app)。
|
||||
|
||||
启动页会列出已授权站点:
|
||||
|
||||
- 点击站点打开,**×** 取消该站点的 App 连接,其他站点与本地房间继续运行。
|
||||
- **☆** 选择一个下次启动时打开的站点;取消星标可恢复启动页,撤销对应授权也会清除星标。
|
||||
授权新站点会保留已有授权。
|
||||
- 点击站点上已连接的 **App** 按钮可重开启动页,也可使用终端中的 **App 启动页** 地址。
|
||||
|
||||
浏览器会记住启用选择;换浏览器、使用无痕窗口或清除站点数据后需重新连接。
|
||||
新的公网邀请网址需要单独授权。房间与已启用的 SFU 转发仍由站点提供。
|
||||
|
||||
## 采集
|
||||
|
||||
@@ -76,9 +83,7 @@ Windows 原生采集提供 VP8/Auto/H264,Auto 会为本次分享选定一种
|
||||
macOS 和 Linux 原生采集需要硬件 H264。可选来源与音频支持取决于平台,设置要求见
|
||||
[Windows](../../native/capture/windows/README.md)、[macOS](../../native/capture/darwin/README.md)
|
||||
和 [Linux](../../native/capture/linux/README.md) 采集指南。
|
||||
原生采集使用房主当前的画质设置;编码选择、分享中修改设置与编码复用由
|
||||
[媒体质量参考](../../docs/standards/media-quality.md)说明,实测边界见
|
||||
[验证状态](../../docs/verification-status.md)。
|
||||
原生采集的画质可在[分享设置](../../docs/guide/sharing.zh-CN.md#画面与声音设置)中调整。
|
||||
|
||||
Windows App 检测到采集能力支持时,选源器的 **程序 / 窗口** 和 **屏幕** 页会出现
|
||||
**显示采集边框** 开关,默认关闭。
|
||||
@@ -101,6 +106,20 @@ App 配置保存可选的本地站点口令。留空表示本地站点开放进
|
||||
| `--link` | 临时公网邀请 |
|
||||
| `--site <origin>` | 保存并打开 Piik 站点 |
|
||||
|
||||
## 升级
|
||||
|
||||
App 与站点需要使用同一大版本,**2.x 与 1.x 不能混用**。
|
||||
不同 2.x 版本保留已有的分享和观看功能,新功能需要相关 App 与站点支持。
|
||||
|
||||
1. 查看 [GitHub](https://github.com/TNTcraftHIM/Piik/releases/latest) 或
|
||||
[AtomGit](https://atomgit.com/TNTcraftHIM/Piik/releases) 上的版本说明。
|
||||
2. 使用本地房间或公网邀请时,停止分享并关闭 App,完整解压新版程序包,重新启动后发送新邀请。
|
||||
3. 使用已有站点时,由管理员先[更新 Server](../../docs/operations/service-management.zh-CN.md),
|
||||
再更新连接的 App,并刷新所有分享与观看页面。
|
||||
|
||||
启动页的更新按钮可下载程序包;[AtomGit 镜像](https://atomgit.com/TNTcraftHIM/Piik/releases)提供当前备用下载。
|
||||
重启 App 或 Server 会中断当前分享。
|
||||
|
||||
## 终端与关闭
|
||||
|
||||
终端显示当前模式、入口链接与启动状态,语言跟随启动页和已启用 App 的页面。
|
||||
@@ -113,10 +132,8 @@ App 在独立 Windows 控制台中启动时,启动或运行错误会保留在
|
||||
|
||||
### Chromium WebRTC 连接
|
||||
|
||||
**为什么网页能打开、屏幕也能采集,却无法分享或观看?**
|
||||
|
||||
浏览器设置、扩展或管理策略可能阻止 WebRTC UDP,包括本机网页与 App 之间的媒体连接。
|
||||
按文档中心的 [浏览器 WebRTC 排查](../../docs/guide/troubleshooting.zh-CN.md#浏览器限制了-webrtc)操作。
|
||||
按文档中心的 [浏览器 WebRTC 排查](../../docs/guide/network.zh-CN.md#浏览器限制了-webrtc)操作。
|
||||
特定编码失败时,另见 [Windows H264 排查](../../docs/guide/troubleshooting.zh-CN.md#windows-上-h264-分享失败)。
|
||||
|
||||
### 诊断
|
||||
|
||||
@@ -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{})
|
||||
@@ -158,10 +157,14 @@ func serve(debug bool) (returnedErr error) {
|
||||
stop()
|
||||
<-releaseChecked
|
||||
}()
|
||||
<-ctx.Done()
|
||||
var serveErr error
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
case serveErr = <-server.Done():
|
||||
}
|
||||
shutdownCtx, cancel := context.WithTimeout(context.Background(), shutdownTimeout)
|
||||
defer cancel()
|
||||
return server.Close(shutdownCtx)
|
||||
return errors.Join(serveErr, server.Close(shutdownCtx))
|
||||
}
|
||||
|
||||
func serverDebugEnabled(value string) bool {
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ This page indexes developer and maintainer references.
|
||||
| Task | Guide |
|
||||
| --- | --- |
|
||||
| Try or change the source code | [Run from source](#run-from-source) |
|
||||
| Find a directory or the module responsible for a behavior | [Repository layout and module map](./standards/engineering.md#repository-layout) |
|
||||
| Find a module, interface, lifecycle or source entry point | [Engineering maps and source index](./standards/engineering.md#repository-layout) |
|
||||
| Find the shared product, design and lifecycle rules | [Standards index](./standards/README.md) |
|
||||
| Deploy or configure a service | [Self-hosting](./operations/self-hosting.md) · [Configuration](./standards/configuration.md) · [Service management](./operations/service-management.md) |
|
||||
| Build App packages and native capture | [App development](../cmd/piik-app/DEVELOPMENT.md) |
|
||||
|
||||
@@ -84,7 +84,7 @@ Peer relay is part of the deployed Browser route owned by ADR-0005. This ADR
|
||||
retains only the experiment evidence used to evaluate that route; its historical
|
||||
policy and gates do not independently authorize current behavior.
|
||||
|
||||
The current accepted endpoint rule is one server-authoritative downstream
|
||||
The current ordinary endpoint rule is one server-authoritative downstream
|
||||
capacity for every non-server endpoint, default `2` and statically configurable
|
||||
as `1`, `2`, or `3`; upstream receive is free and role or user agent does not
|
||||
create an exception. ADR-0005 owns the implemented and deployed Browser route
|
||||
@@ -113,8 +113,9 @@ Negative:
|
||||
- ADR-0001 remains the direct browser P2P baseline.
|
||||
- ADR-0005 owns current automatic routing and capacity invariants.
|
||||
- ADR-0007 owns path-quality evidence and representation behavior.
|
||||
- A future native shared-encode sender or relay requires its own decision and
|
||||
evidence; this experiment does not pre-approve it.
|
||||
- [ADR-0013](./0013-embedded-node-local-media.md) and
|
||||
[ADR-0014](./0014-browser-node-local-encoding-pool.md) own accepted encoding
|
||||
reuse; this experiment does not define that behavior.
|
||||
|
||||
## References
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
- Date: 2026-08-20
|
||||
- Last updated: 2026-08-30
|
||||
|
||||
The current candidate replaces this ADR's external LiveKit room/token lifecycle
|
||||
ADR-0013 replaces this ADR's external LiveKit room/token lifecycle
|
||||
with admitted in-process SFU resources under [ADR-0013](./0013-embedded-node-local-media.md).
|
||||
Exact physical subscription closure now releases its reservation. The graph,
|
||||
capacity and serial-operation decisions below remain; external-service details
|
||||
@@ -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.
|
||||
|
||||
The room-voice candidate 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
|
||||
|
||||
@@ -84,9 +81,9 @@ relay or a relay with reduced capacity accepts no new children; only its
|
||||
deterministic overflow children are reassigned. A relay whose ingress fails is
|
||||
itself reparented while its descendants remain attached.
|
||||
|
||||
### Room Media Lifetime (Candidate)
|
||||
### Room Media Lifetime
|
||||
|
||||
The room-voice candidate keeps this graph at room lifetime, with independent
|
||||
Room voice keeps this graph at room lifetime, with independent
|
||||
picture generations and voice publications. Its existing serial operation also
|
||||
owns video attachment and composite picture/voice readiness; physical facets
|
||||
have distinct identities so retiring one cannot remove the others. The
|
||||
@@ -148,6 +145,10 @@ and pending route revisions, and one candidate connection identity. SFU routes
|
||||
also carry a publication generation. Duplicate current messages are idempotent;
|
||||
stale asynchronous results fail closed.
|
||||
|
||||
Revision allocation belongs to the room's lifetime, including stopped shares and
|
||||
replacement controllers. Releasing a controller does not make its revisions
|
||||
available again; ending room authority releases the sequence.
|
||||
|
||||
The old committed route remains authoritative while the candidate prepares.
|
||||
Parent and child prepare the same server-issued connection identity. Standard
|
||||
ICE connected is progress only. For availability work, the exact candidate child
|
||||
|
||||
@@ -30,8 +30,8 @@ connection acquisition reuses the route controller's existing opportunity ledger
|
||||
2. An enabled Site derives ports 3479 and 3480 from its first ordinary STUN
|
||||
authority on UDP 3478. Public-link App mode supplies three ordinary public
|
||||
STUN destinations, reusing the same set for its prediction survey; disabling
|
||||
prediction retains ordinary discovery redundancy. Pure LAN mode supplies
|
||||
none. The same accepted share policy and ICE configuration cover every
|
||||
prediction retains ordinary discovery redundancy. LAN mode uses its local
|
||||
STUN endpoint without a prediction survey. The same accepted share policy and ICE configuration cover every
|
||||
Browser or Native P2P edge. SFU PeerConnections remain unchanged.
|
||||
3. For one ICE gathering generation, the adapter observes only UDP `srflx`
|
||||
candidates belonging to the exact three-destination survey set. Browser
|
||||
@@ -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
|
||||
|
||||
@@ -44,7 +44,7 @@ topologies and makes a saved Site unavailable while another room source runs.
|
||||
3. Discovery returns a per-process `instanceToken`. The WebSocket subprotocol
|
||||
echoes it so the Browser connects to the process it discovered. This value is
|
||||
public process identity, not authentication. The listener accepts the current
|
||||
Local Host origin and the one user-saved Site origin. Origin and Host
|
||||
Local Host origin and individually approved Site origins. Origin and Host
|
||||
validation plus the Browser's local-network permission own this boundary.
|
||||
4. Native control starts with a strict `hello` handshake. Up to two participant
|
||||
control sessions may coexist; each retains its own share and media lifetime.
|
||||
@@ -139,8 +139,8 @@ topologies and makes a saved Site unavailable while another room source runs.
|
||||
added. Only a consumed App-launch marker travels in the URL fragment.
|
||||
Exact target identity travels over loopback.
|
||||
9. The App uses the system Browser as its only UI. It remains available to the
|
||||
saved Site before a room mode is chosen. Its persistent launcher offers Local
|
||||
and public link, shows the approved Site and allows revocation. Starting a
|
||||
approved Sites before a room mode is chosen. Its persistent launcher offers Local
|
||||
and public link, lists approved Sites and allows independent revocation. Starting a
|
||||
Local/public room does not disable that Site's native access or approval UI;
|
||||
neither visiting the launcher nor approving a Site creates a room. Command-line
|
||||
entry selectors remain automation inputs rather than the normal interface. An
|
||||
@@ -154,18 +154,17 @@ topologies and makes a saved Site unavailable while another room source runs.
|
||||
A participant on an approved Site consumes that Site's
|
||||
configured STUN survey. Both feed the same connection-local prediction
|
||||
adapter; Native additionally owns its UDP socket and best-effort port mapping.
|
||||
11. One App configuration owns the optional Site origin and an optional,
|
||||
11. One App configuration owns approved Site origins and an optional,
|
||||
user-chosen Local access password. A blank value leaves the Local site open;
|
||||
a value gates that site through the existing SiteAccess authority. The
|
||||
App bootstraps a selected page through a fragment consumed before
|
||||
authentication; the page retains only the non-secret App opt-in at its
|
||||
origin. Friends use the existing room invitation grant. No App-specific
|
||||
room authorization system is added. Site replacement/revocation uses this
|
||||
same configuration owner, immediately denies new control requests from the
|
||||
old origin and cancels its existing sessions. Retirement is bounded and does
|
||||
not wait for unrelated Local sessions. Cleanup failure never restores the
|
||||
revoked permission; concurrent approval pages must review a changed Site
|
||||
before replacing it.
|
||||
room authorization system is added. Adding a Site preserves other approvals.
|
||||
Revoking an origin through that same configuration owner immediately denies
|
||||
its new control requests and cancels only its existing sessions. Retirement
|
||||
is bounded and does not wait for unrelated Local or Site sessions. Cleanup
|
||||
failure never restores revoked permission.
|
||||
12. Local authority shutdown first ends every in-memory room through the current
|
||||
`room-closed` path, then closes signaling and HTTP. The App cancels the
|
||||
server context, calls that end-then-close sequence under one bounded
|
||||
@@ -179,8 +178,7 @@ topologies and makes a saved Site unavailable while another room source runs.
|
||||
Git revision and an explicit supported target. The Go binary embeds that
|
||||
release's built Browser assets and the package `REVISION` records the same
|
||||
revision; a revision mismatch fails rather than loading a stale private
|
||||
contract. App-scoped pull requests build every
|
||||
target and must start the assembled Local authority, pass `/healthz`, and
|
||||
contract. App package acceptance must start the assembled Local authority, pass `/healthz`, and
|
||||
stop it cleanly before the candidate is accepted.
|
||||
14. The root package manifest is the single dependency contract for the Browser
|
||||
bundle and repository tooling. No host installs packages to run Piik, so
|
||||
|
||||
@@ -48,9 +48,10 @@ acceptance. Mature simulcast implementations provide the starting model.
|
||||
forwarding every downstream request. Do not require server transcoding or
|
||||
recursive subtree demand to ship a forwarding SFU.
|
||||
8. Embed library-level STUN, preserving Binding and the three NAT-survey
|
||||
destinations without enabling TURN allocations. Evaluate an embedded SFU
|
||||
library through a narrow adapter. `inlivedev/sfu` is a candidate, not an
|
||||
irrevocable selection or authorization for a deep fork.
|
||||
destinations without enabling TURN allocations. Embed Pion transport and
|
||||
LiveKit media-core components through the shared forwarding adapter. The
|
||||
[library evaluation](../research/embedded-media.md) retains the candidate
|
||||
comparison and selection rationale.
|
||||
9. Pure Browser peers retain normal WebRTC capture/senders and can consume the
|
||||
same H264/VP8 output. No Browser encoded-passthrough promise, new codec family
|
||||
or application transport is introduced by this architecture.
|
||||
|
||||
@@ -14,7 +14,9 @@ producer's encoded payload/type and exposed codec metadata, with the outgoing
|
||||
stream's RTP clock. It avoids making one downstream
|
||||
connection the shared encoding authority. Small carrier encodes and local
|
||||
transport/decoder work remain real costs. Measured savings and recovery vary
|
||||
by codec; the prototype is not production acceptance.
|
||||
by codec. The initial prototype established feasibility; the subsequent
|
||||
implementation evidence and its physical limits remain in the linked research
|
||||
and [verification status](../verification-status.md).
|
||||
|
||||
This decision extends [ADR-0007](./0007-path-isolated-representation-quality.md)
|
||||
and [ADR-0013](./0013-embedded-node-local-media.md) for eligible Browser outputs.
|
||||
|
||||
|
After Width: | Height: | Size: 9.8 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 11 KiB |
@@ -0,0 +1,89 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="600" height="502" viewBox="0 0 600 502" role="img" aria-labelledby="title desc"><title id="title">Shared sound and room voice</title><desc id="desc">Source audio and the optional share microphone follow the picture and playback volume. Room voice uses its separate listening controls.</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;
|
||||
--wall: #f3f5f8;
|
||||
--wall-2: #e5eaf2;
|
||||
--paper-rgb: 255 254 251;
|
||||
--paper: rgb(var(--paper-rgb));
|
||||
--paper-translucent: rgb(var(--paper-rgb) / .84);
|
||||
--ink: #29374a;
|
||||
/* Opaque sRGB roles also work in WebViews without color-mix. */
|
||||
--muted: rgb(94.5 104.75 118.25);
|
||||
--line: rgb(212.2 214.2 215.6);
|
||||
/* Primary actions keep their identity; selection/focus follows the theme. */
|
||||
--primary: #2765ce;
|
||||
--primary-ink: #fff;
|
||||
--action: #3478e5;
|
||||
--action-deep: var(--primary);
|
||||
--action-ink: var(--primary-ink);
|
||||
--action-text: #2055b2;
|
||||
--idle: #8ea3b8;
|
||||
--busy: #3478e5;
|
||||
--live: #2fa66a;
|
||||
--warn: #d98e04;
|
||||
--danger: #d64541;
|
||||
--control-hover: #eef3ff;
|
||||
--control-selected: #e5efff;
|
||||
--control-selected-ink: #214c9b;
|
||||
--control-edge: rgb(133.02 140.57 150.11);
|
||||
--surface-rim: rgb(255 255 255 / .95);
|
||||
--surface-shade-rgb: 36 53 78;
|
||||
--surface-shade-alpha: .18;
|
||||
--surface-shade: rgb(var(--surface-shade-rgb) / var(--surface-shade-alpha));
|
||||
--surface-glaze: linear-gradient(165deg, rgb(255 255 255 / .6), transparent 65%, rgb(51 89 147 / .025));
|
||||
--control-shadow: 0 3px 0 var(--surface-shade), 0 5px 10px rgb(var(--surface-shade-rgb) / calc(var(--surface-shade-alpha) * .45));
|
||||
--panel-shadow: inset 0 1px 0 var(--surface-rim), 0 3px 0 var(--surface-shade), 0 16px 36px rgb(var(--surface-shade-rgb) / calc(var(--surface-shade-alpha) * .55));
|
||||
--piik-dark-wall: #242a34;
|
||||
--piik-dark-wall-2: #2c3543;
|
||||
--piik-dark-paper-rgb: 53 65 83;
|
||||
--piik-dark-paper: rgb(var(--piik-dark-paper-rgb));
|
||||
--piik-dark-ink: #f6f3eb;
|
||||
--piik-dark-muted: rgb(197.75 198.5 197);
|
||||
--piik-dark-line: rgb(91.6 100.6 113.4);
|
||||
--piik-dark-control-edge: rgb(145.64 150.44 155.96);
|
||||
--piik-dark-surface-rim: rgb(222 234 255 / .12);
|
||||
--piik-dark-surface-shade-rgb: 6 12 22;
|
||||
--piik-dark-surface-shade-alpha: .38;
|
||||
--piik-dark-surface-glaze: linear-gradient(165deg, rgb(224 237 255 / .06), transparent 65%, rgb(0 0 0 / .035));
|
||||
--piik-dark-action: #f6f3eb;
|
||||
--piik-dark-action-ink: #29374a;
|
||||
--piik-dark-action-text: var(--piik-dark-action);
|
||||
--piik-dark-hover: #414f67;
|
||||
--piik-dark-selected: var(--piik-dark-action);
|
||||
--piik-dark-selected-ink: var(--piik-dark-action-ink);
|
||||
}
|
||||
@media (prefers-color-scheme: dark) { :root {
|
||||
--wall: var(--piik-dark-wall);
|
||||
--wall-2: var(--piik-dark-wall-2);
|
||||
--paper-rgb: var(--piik-dark-paper-rgb);
|
||||
--paper: var(--piik-dark-paper);
|
||||
--ink: var(--piik-dark-ink);
|
||||
--muted: var(--piik-dark-muted);
|
||||
--line: var(--piik-dark-line);
|
||||
--busy: #82b1ff;
|
||||
--live: #3fb97a;
|
||||
--warn: #e8a33d;
|
||||
--danger: #e25a52;
|
||||
--action: var(--piik-dark-action);
|
||||
--action-deep: var(--piik-dark-action);
|
||||
--action-ink: var(--piik-dark-action-ink);
|
||||
--action-text: var(--piik-dark-action-text);
|
||||
--control-hover: var(--piik-dark-hover);
|
||||
--control-selected: var(--piik-dark-selected);
|
||||
--control-selected-ink: var(--piik-dark-selected-ink);
|
||||
--control-edge: var(--piik-dark-control-edge);
|
||||
--surface-rim: var(--piik-dark-surface-rim);
|
||||
--surface-shade-rgb: var(--piik-dark-surface-shade-rgb);
|
||||
--surface-shade-alpha: var(--piik-dark-surface-shade-alpha);
|
||||
--surface-glaze: var(--piik-dark-surface-glaze);
|
||||
} }
|
||||
|
||||
text { fill: var(--ink); font: 600 26px system-ui, -apple-system, 'Segoe UI', 'Microsoft YaHei', sans-serif; text-anchor: middle; }
|
||||
.node { fill: var(--paper); stroke: var(--control-edge); stroke-width: 2; }
|
||||
.input { fill: var(--control-selected); }
|
||||
.glyph { color: var(--ink); }
|
||||
.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="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>
|
||||
|
After Width: | Height: | Size: 7.5 KiB |
@@ -0,0 +1,89 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="600" height="502" viewBox="0 0 600 502" role="img" aria-labelledby="title desc"><title id="title">分享声音与房间语音</title><desc id="desc">来源声音与可选的分享麦克风跟随画面,由播放音量控制。房间语音使用独立的收听音量。</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;
|
||||
--wall: #f3f5f8;
|
||||
--wall-2: #e5eaf2;
|
||||
--paper-rgb: 255 254 251;
|
||||
--paper: rgb(var(--paper-rgb));
|
||||
--paper-translucent: rgb(var(--paper-rgb) / .84);
|
||||
--ink: #29374a;
|
||||
/* Opaque sRGB roles also work in WebViews without color-mix. */
|
||||
--muted: rgb(94.5 104.75 118.25);
|
||||
--line: rgb(212.2 214.2 215.6);
|
||||
/* Primary actions keep their identity; selection/focus follows the theme. */
|
||||
--primary: #2765ce;
|
||||
--primary-ink: #fff;
|
||||
--action: #3478e5;
|
||||
--action-deep: var(--primary);
|
||||
--action-ink: var(--primary-ink);
|
||||
--action-text: #2055b2;
|
||||
--idle: #8ea3b8;
|
||||
--busy: #3478e5;
|
||||
--live: #2fa66a;
|
||||
--warn: #d98e04;
|
||||
--danger: #d64541;
|
||||
--control-hover: #eef3ff;
|
||||
--control-selected: #e5efff;
|
||||
--control-selected-ink: #214c9b;
|
||||
--control-edge: rgb(133.02 140.57 150.11);
|
||||
--surface-rim: rgb(255 255 255 / .95);
|
||||
--surface-shade-rgb: 36 53 78;
|
||||
--surface-shade-alpha: .18;
|
||||
--surface-shade: rgb(var(--surface-shade-rgb) / var(--surface-shade-alpha));
|
||||
--surface-glaze: linear-gradient(165deg, rgb(255 255 255 / .6), transparent 65%, rgb(51 89 147 / .025));
|
||||
--control-shadow: 0 3px 0 var(--surface-shade), 0 5px 10px rgb(var(--surface-shade-rgb) / calc(var(--surface-shade-alpha) * .45));
|
||||
--panel-shadow: inset 0 1px 0 var(--surface-rim), 0 3px 0 var(--surface-shade), 0 16px 36px rgb(var(--surface-shade-rgb) / calc(var(--surface-shade-alpha) * .55));
|
||||
--piik-dark-wall: #242a34;
|
||||
--piik-dark-wall-2: #2c3543;
|
||||
--piik-dark-paper-rgb: 53 65 83;
|
||||
--piik-dark-paper: rgb(var(--piik-dark-paper-rgb));
|
||||
--piik-dark-ink: #f6f3eb;
|
||||
--piik-dark-muted: rgb(197.75 198.5 197);
|
||||
--piik-dark-line: rgb(91.6 100.6 113.4);
|
||||
--piik-dark-control-edge: rgb(145.64 150.44 155.96);
|
||||
--piik-dark-surface-rim: rgb(222 234 255 / .12);
|
||||
--piik-dark-surface-shade-rgb: 6 12 22;
|
||||
--piik-dark-surface-shade-alpha: .38;
|
||||
--piik-dark-surface-glaze: linear-gradient(165deg, rgb(224 237 255 / .06), transparent 65%, rgb(0 0 0 / .035));
|
||||
--piik-dark-action: #f6f3eb;
|
||||
--piik-dark-action-ink: #29374a;
|
||||
--piik-dark-action-text: var(--piik-dark-action);
|
||||
--piik-dark-hover: #414f67;
|
||||
--piik-dark-selected: var(--piik-dark-action);
|
||||
--piik-dark-selected-ink: var(--piik-dark-action-ink);
|
||||
}
|
||||
@media (prefers-color-scheme: dark) { :root {
|
||||
--wall: var(--piik-dark-wall);
|
||||
--wall-2: var(--piik-dark-wall-2);
|
||||
--paper-rgb: var(--piik-dark-paper-rgb);
|
||||
--paper: var(--piik-dark-paper);
|
||||
--ink: var(--piik-dark-ink);
|
||||
--muted: var(--piik-dark-muted);
|
||||
--line: var(--piik-dark-line);
|
||||
--busy: #82b1ff;
|
||||
--live: #3fb97a;
|
||||
--warn: #e8a33d;
|
||||
--danger: #e25a52;
|
||||
--action: var(--piik-dark-action);
|
||||
--action-deep: var(--piik-dark-action);
|
||||
--action-ink: var(--piik-dark-action-ink);
|
||||
--action-text: var(--piik-dark-action-text);
|
||||
--control-hover: var(--piik-dark-hover);
|
||||
--control-selected: var(--piik-dark-selected);
|
||||
--control-selected-ink: var(--piik-dark-selected-ink);
|
||||
--control-edge: var(--piik-dark-control-edge);
|
||||
--surface-rim: var(--piik-dark-surface-rim);
|
||||
--surface-shade-rgb: var(--piik-dark-surface-shade-rgb);
|
||||
--surface-shade-alpha: var(--piik-dark-surface-shade-alpha);
|
||||
--surface-glaze: var(--piik-dark-surface-glaze);
|
||||
} }
|
||||
|
||||
text { fill: var(--ink); font: 600 26px system-ui, -apple-system, 'Segoe UI', 'Microsoft YaHei', sans-serif; text-anchor: middle; }
|
||||
.node { fill: var(--paper); stroke: var(--control-edge); stroke-width: 2; }
|
||||
.input { fill: var(--control-selected); }
|
||||
.glyph { color: var(--ink); }
|
||||
.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="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>
|
||||
|
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 |
@@ -0,0 +1,89 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="600" height="340" viewBox="0 0 600 340" role="img" aria-labelledby="title desc"><title id="title">Web and media use separate connections</title><desc id="desc">The Host and friend connect to the Piik site for the web page and chat. Picture and sound need a separate media connection, directly or through forwarding.</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;
|
||||
--wall: #f3f5f8;
|
||||
--wall-2: #e5eaf2;
|
||||
--paper-rgb: 255 254 251;
|
||||
--paper: rgb(var(--paper-rgb));
|
||||
--paper-translucent: rgb(var(--paper-rgb) / .84);
|
||||
--ink: #29374a;
|
||||
/* Opaque sRGB roles also work in WebViews without color-mix. */
|
||||
--muted: rgb(94.5 104.75 118.25);
|
||||
--line: rgb(212.2 214.2 215.6);
|
||||
/* Primary actions keep their identity; selection/focus follows the theme. */
|
||||
--primary: #2765ce;
|
||||
--primary-ink: #fff;
|
||||
--action: #3478e5;
|
||||
--action-deep: var(--primary);
|
||||
--action-ink: var(--primary-ink);
|
||||
--action-text: #2055b2;
|
||||
--idle: #8ea3b8;
|
||||
--busy: #3478e5;
|
||||
--live: #2fa66a;
|
||||
--warn: #d98e04;
|
||||
--danger: #d64541;
|
||||
--control-hover: #eef3ff;
|
||||
--control-selected: #e5efff;
|
||||
--control-selected-ink: #214c9b;
|
||||
--control-edge: rgb(133.02 140.57 150.11);
|
||||
--surface-rim: rgb(255 255 255 / .95);
|
||||
--surface-shade-rgb: 36 53 78;
|
||||
--surface-shade-alpha: .18;
|
||||
--surface-shade: rgb(var(--surface-shade-rgb) / var(--surface-shade-alpha));
|
||||
--surface-glaze: linear-gradient(165deg, rgb(255 255 255 / .6), transparent 65%, rgb(51 89 147 / .025));
|
||||
--control-shadow: 0 3px 0 var(--surface-shade), 0 5px 10px rgb(var(--surface-shade-rgb) / calc(var(--surface-shade-alpha) * .45));
|
||||
--panel-shadow: inset 0 1px 0 var(--surface-rim), 0 3px 0 var(--surface-shade), 0 16px 36px rgb(var(--surface-shade-rgb) / calc(var(--surface-shade-alpha) * .55));
|
||||
--piik-dark-wall: #242a34;
|
||||
--piik-dark-wall-2: #2c3543;
|
||||
--piik-dark-paper-rgb: 53 65 83;
|
||||
--piik-dark-paper: rgb(var(--piik-dark-paper-rgb));
|
||||
--piik-dark-ink: #f6f3eb;
|
||||
--piik-dark-muted: rgb(197.75 198.5 197);
|
||||
--piik-dark-line: rgb(91.6 100.6 113.4);
|
||||
--piik-dark-control-edge: rgb(145.64 150.44 155.96);
|
||||
--piik-dark-surface-rim: rgb(222 234 255 / .12);
|
||||
--piik-dark-surface-shade-rgb: 6 12 22;
|
||||
--piik-dark-surface-shade-alpha: .38;
|
||||
--piik-dark-surface-glaze: linear-gradient(165deg, rgb(224 237 255 / .06), transparent 65%, rgb(0 0 0 / .035));
|
||||
--piik-dark-action: #f6f3eb;
|
||||
--piik-dark-action-ink: #29374a;
|
||||
--piik-dark-action-text: var(--piik-dark-action);
|
||||
--piik-dark-hover: #414f67;
|
||||
--piik-dark-selected: var(--piik-dark-action);
|
||||
--piik-dark-selected-ink: var(--piik-dark-action-ink);
|
||||
}
|
||||
@media (prefers-color-scheme: dark) { :root {
|
||||
--wall: var(--piik-dark-wall);
|
||||
--wall-2: var(--piik-dark-wall-2);
|
||||
--paper-rgb: var(--piik-dark-paper-rgb);
|
||||
--paper: var(--piik-dark-paper);
|
||||
--ink: var(--piik-dark-ink);
|
||||
--muted: var(--piik-dark-muted);
|
||||
--line: var(--piik-dark-line);
|
||||
--busy: #82b1ff;
|
||||
--live: #3fb97a;
|
||||
--warn: #e8a33d;
|
||||
--danger: #e25a52;
|
||||
--action: var(--piik-dark-action);
|
||||
--action-deep: var(--piik-dark-action);
|
||||
--action-ink: var(--piik-dark-action-ink);
|
||||
--action-text: var(--piik-dark-action-text);
|
||||
--control-hover: var(--piik-dark-hover);
|
||||
--control-selected: var(--piik-dark-selected);
|
||||
--control-selected-ink: var(--piik-dark-selected-ink);
|
||||
--control-edge: var(--piik-dark-control-edge);
|
||||
--surface-rim: var(--piik-dark-surface-rim);
|
||||
--surface-shade-rgb: var(--piik-dark-surface-shade-rgb);
|
||||
--surface-shade-alpha: var(--piik-dark-surface-shade-alpha);
|
||||
--surface-glaze: var(--piik-dark-surface-glaze);
|
||||
} }
|
||||
|
||||
text { fill: var(--ink); font: 600 26px system-ui, -apple-system, 'Segoe UI', 'Microsoft YaHei', sans-serif; text-anchor: middle; }
|
||||
.node { fill: var(--paper); stroke: var(--control-edge); stroke-width: 2; }
|
||||
.input { fill: var(--control-selected); }
|
||||
.glyph { color: var(--ink); }
|
||||
.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><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>
|
||||
|
After Width: | Height: | Size: 6.1 KiB |
@@ -0,0 +1,89 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="600" height="340" viewBox="0 0 600 340" role="img" aria-labelledby="title desc"><title id="title">网页与媒体使用不同的连接</title><desc id="desc">房主和朋友通过 Piik 站点访问网页与聊天;画面和声音需要另建媒体连接,可通过直连或服务器转发传输。</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;
|
||||
--wall: #f3f5f8;
|
||||
--wall-2: #e5eaf2;
|
||||
--paper-rgb: 255 254 251;
|
||||
--paper: rgb(var(--paper-rgb));
|
||||
--paper-translucent: rgb(var(--paper-rgb) / .84);
|
||||
--ink: #29374a;
|
||||
/* Opaque sRGB roles also work in WebViews without color-mix. */
|
||||
--muted: rgb(94.5 104.75 118.25);
|
||||
--line: rgb(212.2 214.2 215.6);
|
||||
/* Primary actions keep their identity; selection/focus follows the theme. */
|
||||
--primary: #2765ce;
|
||||
--primary-ink: #fff;
|
||||
--action: #3478e5;
|
||||
--action-deep: var(--primary);
|
||||
--action-ink: var(--primary-ink);
|
||||
--action-text: #2055b2;
|
||||
--idle: #8ea3b8;
|
||||
--busy: #3478e5;
|
||||
--live: #2fa66a;
|
||||
--warn: #d98e04;
|
||||
--danger: #d64541;
|
||||
--control-hover: #eef3ff;
|
||||
--control-selected: #e5efff;
|
||||
--control-selected-ink: #214c9b;
|
||||
--control-edge: rgb(133.02 140.57 150.11);
|
||||
--surface-rim: rgb(255 255 255 / .95);
|
||||
--surface-shade-rgb: 36 53 78;
|
||||
--surface-shade-alpha: .18;
|
||||
--surface-shade: rgb(var(--surface-shade-rgb) / var(--surface-shade-alpha));
|
||||
--surface-glaze: linear-gradient(165deg, rgb(255 255 255 / .6), transparent 65%, rgb(51 89 147 / .025));
|
||||
--control-shadow: 0 3px 0 var(--surface-shade), 0 5px 10px rgb(var(--surface-shade-rgb) / calc(var(--surface-shade-alpha) * .45));
|
||||
--panel-shadow: inset 0 1px 0 var(--surface-rim), 0 3px 0 var(--surface-shade), 0 16px 36px rgb(var(--surface-shade-rgb) / calc(var(--surface-shade-alpha) * .55));
|
||||
--piik-dark-wall: #242a34;
|
||||
--piik-dark-wall-2: #2c3543;
|
||||
--piik-dark-paper-rgb: 53 65 83;
|
||||
--piik-dark-paper: rgb(var(--piik-dark-paper-rgb));
|
||||
--piik-dark-ink: #f6f3eb;
|
||||
--piik-dark-muted: rgb(197.75 198.5 197);
|
||||
--piik-dark-line: rgb(91.6 100.6 113.4);
|
||||
--piik-dark-control-edge: rgb(145.64 150.44 155.96);
|
||||
--piik-dark-surface-rim: rgb(222 234 255 / .12);
|
||||
--piik-dark-surface-shade-rgb: 6 12 22;
|
||||
--piik-dark-surface-shade-alpha: .38;
|
||||
--piik-dark-surface-glaze: linear-gradient(165deg, rgb(224 237 255 / .06), transparent 65%, rgb(0 0 0 / .035));
|
||||
--piik-dark-action: #f6f3eb;
|
||||
--piik-dark-action-ink: #29374a;
|
||||
--piik-dark-action-text: var(--piik-dark-action);
|
||||
--piik-dark-hover: #414f67;
|
||||
--piik-dark-selected: var(--piik-dark-action);
|
||||
--piik-dark-selected-ink: var(--piik-dark-action-ink);
|
||||
}
|
||||
@media (prefers-color-scheme: dark) { :root {
|
||||
--wall: var(--piik-dark-wall);
|
||||
--wall-2: var(--piik-dark-wall-2);
|
||||
--paper-rgb: var(--piik-dark-paper-rgb);
|
||||
--paper: var(--piik-dark-paper);
|
||||
--ink: var(--piik-dark-ink);
|
||||
--muted: var(--piik-dark-muted);
|
||||
--line: var(--piik-dark-line);
|
||||
--busy: #82b1ff;
|
||||
--live: #3fb97a;
|
||||
--warn: #e8a33d;
|
||||
--danger: #e25a52;
|
||||
--action: var(--piik-dark-action);
|
||||
--action-deep: var(--piik-dark-action);
|
||||
--action-ink: var(--piik-dark-action-ink);
|
||||
--action-text: var(--piik-dark-action-text);
|
||||
--control-hover: var(--piik-dark-hover);
|
||||
--control-selected: var(--piik-dark-selected);
|
||||
--control-selected-ink: var(--piik-dark-selected-ink);
|
||||
--control-edge: var(--piik-dark-control-edge);
|
||||
--surface-rim: var(--piik-dark-surface-rim);
|
||||
--surface-shade-rgb: var(--piik-dark-surface-shade-rgb);
|
||||
--surface-shade-alpha: var(--piik-dark-surface-shade-alpha);
|
||||
--surface-glaze: var(--piik-dark-surface-glaze);
|
||||
} }
|
||||
|
||||
text { fill: var(--ink); font: 600 26px system-ui, -apple-system, 'Segoe UI', 'Microsoft YaHei', sans-serif; text-anchor: middle; }
|
||||
.node { fill: var(--paper); stroke: var(--control-edge); stroke-width: 2; }
|
||||
.input { fill: var(--control-selected); }
|
||||
.glyph { color: var(--ink); }
|
||||
.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><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>
|
||||
|
After Width: | Height: | Size: 6.1 KiB |
|
After Width: | Height: | Size: 46 KiB |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 43 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 37 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 |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 42 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 |
@@ -0,0 +1,89 @@
|
||||
<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;
|
||||
--wall: #f3f5f8;
|
||||
--wall-2: #e5eaf2;
|
||||
--paper-rgb: 255 254 251;
|
||||
--paper: rgb(var(--paper-rgb));
|
||||
--paper-translucent: rgb(var(--paper-rgb) / .84);
|
||||
--ink: #29374a;
|
||||
/* Opaque sRGB roles also work in WebViews without color-mix. */
|
||||
--muted: rgb(94.5 104.75 118.25);
|
||||
--line: rgb(212.2 214.2 215.6);
|
||||
/* Primary actions keep their identity; selection/focus follows the theme. */
|
||||
--primary: #2765ce;
|
||||
--primary-ink: #fff;
|
||||
--action: #3478e5;
|
||||
--action-deep: var(--primary);
|
||||
--action-ink: var(--primary-ink);
|
||||
--action-text: #2055b2;
|
||||
--idle: #8ea3b8;
|
||||
--busy: #3478e5;
|
||||
--live: #2fa66a;
|
||||
--warn: #d98e04;
|
||||
--danger: #d64541;
|
||||
--control-hover: #eef3ff;
|
||||
--control-selected: #e5efff;
|
||||
--control-selected-ink: #214c9b;
|
||||
--control-edge: rgb(133.02 140.57 150.11);
|
||||
--surface-rim: rgb(255 255 255 / .95);
|
||||
--surface-shade-rgb: 36 53 78;
|
||||
--surface-shade-alpha: .18;
|
||||
--surface-shade: rgb(var(--surface-shade-rgb) / var(--surface-shade-alpha));
|
||||
--surface-glaze: linear-gradient(165deg, rgb(255 255 255 / .6), transparent 65%, rgb(51 89 147 / .025));
|
||||
--control-shadow: 0 3px 0 var(--surface-shade), 0 5px 10px rgb(var(--surface-shade-rgb) / calc(var(--surface-shade-alpha) * .45));
|
||||
--panel-shadow: inset 0 1px 0 var(--surface-rim), 0 3px 0 var(--surface-shade), 0 16px 36px rgb(var(--surface-shade-rgb) / calc(var(--surface-shade-alpha) * .55));
|
||||
--piik-dark-wall: #242a34;
|
||||
--piik-dark-wall-2: #2c3543;
|
||||
--piik-dark-paper-rgb: 53 65 83;
|
||||
--piik-dark-paper: rgb(var(--piik-dark-paper-rgb));
|
||||
--piik-dark-ink: #f6f3eb;
|
||||
--piik-dark-muted: rgb(197.75 198.5 197);
|
||||
--piik-dark-line: rgb(91.6 100.6 113.4);
|
||||
--piik-dark-control-edge: rgb(145.64 150.44 155.96);
|
||||
--piik-dark-surface-rim: rgb(222 234 255 / .12);
|
||||
--piik-dark-surface-shade-rgb: 6 12 22;
|
||||
--piik-dark-surface-shade-alpha: .38;
|
||||
--piik-dark-surface-glaze: linear-gradient(165deg, rgb(224 237 255 / .06), transparent 65%, rgb(0 0 0 / .035));
|
||||
--piik-dark-action: #f6f3eb;
|
||||
--piik-dark-action-ink: #29374a;
|
||||
--piik-dark-action-text: var(--piik-dark-action);
|
||||
--piik-dark-hover: #414f67;
|
||||
--piik-dark-selected: var(--piik-dark-action);
|
||||
--piik-dark-selected-ink: var(--piik-dark-action-ink);
|
||||
}
|
||||
@media (prefers-color-scheme: dark) { :root {
|
||||
--wall: var(--piik-dark-wall);
|
||||
--wall-2: var(--piik-dark-wall-2);
|
||||
--paper-rgb: var(--piik-dark-paper-rgb);
|
||||
--paper: var(--piik-dark-paper);
|
||||
--ink: var(--piik-dark-ink);
|
||||
--muted: var(--piik-dark-muted);
|
||||
--line: var(--piik-dark-line);
|
||||
--busy: #82b1ff;
|
||||
--live: #3fb97a;
|
||||
--warn: #e8a33d;
|
||||
--danger: #e25a52;
|
||||
--action: var(--piik-dark-action);
|
||||
--action-deep: var(--piik-dark-action);
|
||||
--action-ink: var(--piik-dark-action-ink);
|
||||
--action-text: var(--piik-dark-action-text);
|
||||
--control-hover: var(--piik-dark-hover);
|
||||
--control-selected: var(--piik-dark-selected);
|
||||
--control-selected-ink: var(--piik-dark-selected-ink);
|
||||
--control-edge: var(--piik-dark-control-edge);
|
||||
--surface-rim: var(--piik-dark-surface-rim);
|
||||
--surface-shade-rgb: var(--piik-dark-surface-shade-rgb);
|
||||
--surface-shade-alpha: var(--piik-dark-surface-shade-alpha);
|
||||
--surface-glaze: var(--piik-dark-surface-glaze);
|
||||
} }
|
||||
|
||||
text { fill: var(--ink); font: 600 26px system-ui, -apple-system, 'Segoe UI', 'Microsoft YaHei', sans-serif; text-anchor: middle; }
|
||||
.node { fill: var(--paper); stroke: var(--control-edge); stroke-width: 2; }
|
||||
.input { fill: var(--control-selected); }
|
||||
.glyph { color: var(--ink); }
|
||||
.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: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>
|
||||
|
After Width: | Height: | Size: 6.6 KiB |
@@ -0,0 +1,89 @@
|
||||
<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">通过虚拟局域网使用 Piik</title><desc id="desc">加入同一虚拟网络: 房主和朋友都保持组网工具运行. 选择虚拟地址: 本地房间 → 局域网邀请地址. 发送完整邀请链接: 朋友核对本地证书,进入房间</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;
|
||||
--wall: #f3f5f8;
|
||||
--wall-2: #e5eaf2;
|
||||
--paper-rgb: 255 254 251;
|
||||
--paper: rgb(var(--paper-rgb));
|
||||
--paper-translucent: rgb(var(--paper-rgb) / .84);
|
||||
--ink: #29374a;
|
||||
/* Opaque sRGB roles also work in WebViews without color-mix. */
|
||||
--muted: rgb(94.5 104.75 118.25);
|
||||
--line: rgb(212.2 214.2 215.6);
|
||||
/* Primary actions keep their identity; selection/focus follows the theme. */
|
||||
--primary: #2765ce;
|
||||
--primary-ink: #fff;
|
||||
--action: #3478e5;
|
||||
--action-deep: var(--primary);
|
||||
--action-ink: var(--primary-ink);
|
||||
--action-text: #2055b2;
|
||||
--idle: #8ea3b8;
|
||||
--busy: #3478e5;
|
||||
--live: #2fa66a;
|
||||
--warn: #d98e04;
|
||||
--danger: #d64541;
|
||||
--control-hover: #eef3ff;
|
||||
--control-selected: #e5efff;
|
||||
--control-selected-ink: #214c9b;
|
||||
--control-edge: rgb(133.02 140.57 150.11);
|
||||
--surface-rim: rgb(255 255 255 / .95);
|
||||
--surface-shade-rgb: 36 53 78;
|
||||
--surface-shade-alpha: .18;
|
||||
--surface-shade: rgb(var(--surface-shade-rgb) / var(--surface-shade-alpha));
|
||||
--surface-glaze: linear-gradient(165deg, rgb(255 255 255 / .6), transparent 65%, rgb(51 89 147 / .025));
|
||||
--control-shadow: 0 3px 0 var(--surface-shade), 0 5px 10px rgb(var(--surface-shade-rgb) / calc(var(--surface-shade-alpha) * .45));
|
||||
--panel-shadow: inset 0 1px 0 var(--surface-rim), 0 3px 0 var(--surface-shade), 0 16px 36px rgb(var(--surface-shade-rgb) / calc(var(--surface-shade-alpha) * .55));
|
||||
--piik-dark-wall: #242a34;
|
||||
--piik-dark-wall-2: #2c3543;
|
||||
--piik-dark-paper-rgb: 53 65 83;
|
||||
--piik-dark-paper: rgb(var(--piik-dark-paper-rgb));
|
||||
--piik-dark-ink: #f6f3eb;
|
||||
--piik-dark-muted: rgb(197.75 198.5 197);
|
||||
--piik-dark-line: rgb(91.6 100.6 113.4);
|
||||
--piik-dark-control-edge: rgb(145.64 150.44 155.96);
|
||||
--piik-dark-surface-rim: rgb(222 234 255 / .12);
|
||||
--piik-dark-surface-shade-rgb: 6 12 22;
|
||||
--piik-dark-surface-shade-alpha: .38;
|
||||
--piik-dark-surface-glaze: linear-gradient(165deg, rgb(224 237 255 / .06), transparent 65%, rgb(0 0 0 / .035));
|
||||
--piik-dark-action: #f6f3eb;
|
||||
--piik-dark-action-ink: #29374a;
|
||||
--piik-dark-action-text: var(--piik-dark-action);
|
||||
--piik-dark-hover: #414f67;
|
||||
--piik-dark-selected: var(--piik-dark-action);
|
||||
--piik-dark-selected-ink: var(--piik-dark-action-ink);
|
||||
}
|
||||
@media (prefers-color-scheme: dark) { :root {
|
||||
--wall: var(--piik-dark-wall);
|
||||
--wall-2: var(--piik-dark-wall-2);
|
||||
--paper-rgb: var(--piik-dark-paper-rgb);
|
||||
--paper: var(--piik-dark-paper);
|
||||
--ink: var(--piik-dark-ink);
|
||||
--muted: var(--piik-dark-muted);
|
||||
--line: var(--piik-dark-line);
|
||||
--busy: #82b1ff;
|
||||
--live: #3fb97a;
|
||||
--warn: #e8a33d;
|
||||
--danger: #e25a52;
|
||||
--action: var(--piik-dark-action);
|
||||
--action-deep: var(--piik-dark-action);
|
||||
--action-ink: var(--piik-dark-action-ink);
|
||||
--action-text: var(--piik-dark-action-text);
|
||||
--control-hover: var(--piik-dark-hover);
|
||||
--control-selected: var(--piik-dark-selected);
|
||||
--control-selected-ink: var(--piik-dark-selected-ink);
|
||||
--control-edge: var(--piik-dark-control-edge);
|
||||
--surface-rim: var(--piik-dark-surface-rim);
|
||||
--surface-shade-rgb: var(--piik-dark-surface-shade-rgb);
|
||||
--surface-shade-alpha: var(--piik-dark-surface-shade-alpha);
|
||||
--surface-glaze: var(--piik-dark-surface-glaze);
|
||||
} }
|
||||
|
||||
text { fill: var(--ink); font: 600 26px system-ui, -apple-system, 'Segoe UI', 'Microsoft YaHei', sans-serif; text-anchor: middle; }
|
||||
.node { fill: var(--paper); stroke: var(--control-edge); stroke-width: 2; }
|
||||
.input { fill: var(--control-selected); }
|
||||
.glyph { color: var(--ink); }
|
||||
.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: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>
|
||||
|
After Width: | Height: | Size: 6.7 KiB |
@@ -1,10 +1,92 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="900" height="192" viewBox="0 0 900 192" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Pick a screen, send an invitation, watch together</title>
|
||||
<desc id="desc">Three illustrated steps: choose a window, send its room invitation, and join friends on the sofa. Each loop pauses to let the scene settle.</desc>
|
||||
<style data-guide-palette="true">
|
||||
/* Shared theme for the App, website and documentation. Status and selection
|
||||
have separate roles; illustrations keep their own colours. */
|
||||
:root {
|
||||
--person-ink: #263b43;
|
||||
--wall: #f3f5f8;
|
||||
--wall-2: #e5eaf2;
|
||||
--paper-rgb: 255 254 251;
|
||||
--paper: rgb(var(--paper-rgb));
|
||||
--paper-translucent: rgb(var(--paper-rgb) / .84);
|
||||
--ink: #29374a;
|
||||
/* Opaque sRGB roles also work in WebViews without color-mix. */
|
||||
--muted: rgb(94.5 104.75 118.25);
|
||||
--line: rgb(212.2 214.2 215.6);
|
||||
/* Primary actions keep their identity; selection/focus follows the theme. */
|
||||
--primary: #2765ce;
|
||||
--primary-ink: #fff;
|
||||
--action: #3478e5;
|
||||
--action-deep: var(--primary);
|
||||
--action-ink: var(--primary-ink);
|
||||
--action-text: #2055b2;
|
||||
--idle: #8ea3b8;
|
||||
--busy: #3478e5;
|
||||
--live: #2fa66a;
|
||||
--warn: #d98e04;
|
||||
--danger: #d64541;
|
||||
--control-hover: #eef3ff;
|
||||
--control-selected: #e5efff;
|
||||
--control-selected-ink: #214c9b;
|
||||
--control-edge: rgb(133.02 140.57 150.11);
|
||||
--surface-rim: rgb(255 255 255 / .95);
|
||||
--surface-shade-rgb: 36 53 78;
|
||||
--surface-shade-alpha: .18;
|
||||
--surface-shade: rgb(var(--surface-shade-rgb) / var(--surface-shade-alpha));
|
||||
--surface-glaze: linear-gradient(165deg, rgb(255 255 255 / .6), transparent 65%, rgb(51 89 147 / .025));
|
||||
--control-shadow: 0 3px 0 var(--surface-shade), 0 5px 10px rgb(var(--surface-shade-rgb) / calc(var(--surface-shade-alpha) * .45));
|
||||
--panel-shadow: inset 0 1px 0 var(--surface-rim), 0 3px 0 var(--surface-shade), 0 16px 36px rgb(var(--surface-shade-rgb) / calc(var(--surface-shade-alpha) * .55));
|
||||
--piik-dark-wall: #242a34;
|
||||
--piik-dark-wall-2: #2c3543;
|
||||
--piik-dark-paper-rgb: 53 65 83;
|
||||
--piik-dark-paper: rgb(var(--piik-dark-paper-rgb));
|
||||
--piik-dark-ink: #f6f3eb;
|
||||
--piik-dark-muted: rgb(197.75 198.5 197);
|
||||
--piik-dark-line: rgb(91.6 100.6 113.4);
|
||||
--piik-dark-control-edge: rgb(145.64 150.44 155.96);
|
||||
--piik-dark-surface-rim: rgb(222 234 255 / .12);
|
||||
--piik-dark-surface-shade-rgb: 6 12 22;
|
||||
--piik-dark-surface-shade-alpha: .38;
|
||||
--piik-dark-surface-glaze: linear-gradient(165deg, rgb(224 237 255 / .06), transparent 65%, rgb(0 0 0 / .035));
|
||||
--piik-dark-action: #f6f3eb;
|
||||
--piik-dark-action-ink: #29374a;
|
||||
--piik-dark-action-text: var(--piik-dark-action);
|
||||
--piik-dark-hover: #414f67;
|
||||
--piik-dark-selected: var(--piik-dark-action);
|
||||
--piik-dark-selected-ink: var(--piik-dark-action-ink);
|
||||
}
|
||||
@media (prefers-color-scheme: dark) { :root {
|
||||
--wall: var(--piik-dark-wall);
|
||||
--wall-2: var(--piik-dark-wall-2);
|
||||
--paper-rgb: var(--piik-dark-paper-rgb);
|
||||
--paper: var(--piik-dark-paper);
|
||||
--ink: var(--piik-dark-ink);
|
||||
--muted: var(--piik-dark-muted);
|
||||
--line: var(--piik-dark-line);
|
||||
--busy: #82b1ff;
|
||||
--live: #3fb97a;
|
||||
--warn: #e8a33d;
|
||||
--danger: #e25a52;
|
||||
--action: var(--piik-dark-action);
|
||||
--action-deep: var(--piik-dark-action);
|
||||
--action-ink: var(--piik-dark-action-ink);
|
||||
--action-text: var(--piik-dark-action-text);
|
||||
--control-hover: var(--piik-dark-hover);
|
||||
--control-selected: var(--piik-dark-selected);
|
||||
--control-selected-ink: var(--piik-dark-selected-ink);
|
||||
--control-edge: var(--piik-dark-control-edge);
|
||||
--surface-rim: var(--piik-dark-surface-rim);
|
||||
--surface-shade-rgb: var(--piik-dark-surface-shade-rgb);
|
||||
--surface-shade-alpha: var(--piik-dark-surface-shade-alpha);
|
||||
--surface-glaze: var(--piik-dark-surface-glaze);
|
||||
} }
|
||||
|
||||
</style>
|
||||
<style>
|
||||
:root { --drawing:#22303e; --panel:#fafaf3; --line:#c6d6cc; --label:#256b47; --art-mint:#c4e3ce; --art-paper:#fffdf4; --art-blue:#a2c8e8; --art-yellow:#f5d37a; --art-orange:#ee8955; --art-pink:#e9b1bb; --couch:#e9ad63; --couch-dark:#cd8845; }
|
||||
@media (prefers-color-scheme:dark) { :root { --panel:#1b2d34; --line:#3b5155; --label:#9bdbb2; } }
|
||||
text { fill:var(--label); font:600 13px system-ui,sans-serif; letter-spacing:2px; }
|
||||
:root { --drawing:#22303e; --art-mint:#c4e3ce; --art-paper:#fffdf4; --art-blue:#a2c8e8; --art-yellow:#f5d37a; --art-orange:#ee8955; --art-pink:#e9b1bb; --couch:#e9ad63; --couch-dark:#cd8845; }
|
||||
text { fill:var(--muted); font:600 13px system-ui,sans-serif; letter-spacing:2px; }
|
||||
@media (prefers-reduced-motion:no-preference) {
|
||||
g[class] { transform-box:fill-box; transform-origin:center; }
|
||||
.screen-cursor { animation:choose-screen 6.4s ease-in-out infinite both; }
|
||||
@@ -30,7 +112,7 @@
|
||||
@keyframes take-a-seat { 0% { transform: translateY(-8px); } 22% { transform: translateY(2px); } 32%, 100% { transform: none; } }
|
||||
</style>
|
||||
<g transform="translate(0 2)">
|
||||
<rect x="1" y="1" width="278" height="186" rx="18" fill="var(--panel)" stroke="var(--line)" stroke-width="1.5"/>
|
||||
<rect x="1" y="1" width="278" height="186" rx="18" fill="var(--paper)" stroke="var(--line)" stroke-width="1.5"/>
|
||||
<text x="20" y="28">01</text>
|
||||
<g transform="translate(15 40)"><g fill="none" stroke="var(--drawing)" stroke-width="3" stroke-linejoin="round">
|
||||
<rect x="47" y="17" width="141" height="90" rx="12" fill="var(--art-mint)"/><path d="M105 108v14m-20 0h65"/>
|
||||
@@ -40,7 +122,7 @@
|
||||
</g><path d="m33 35-8-4m12-8-4-8m169 22 9-5" stroke="var(--drawing)" stroke-width="3" stroke-linecap="round"/></g>
|
||||
</g>
|
||||
<g transform="translate(310 2)">
|
||||
<rect x="1" y="1" width="278" height="186" rx="18" fill="var(--panel)" stroke="var(--line)" stroke-width="1.5"/>
|
||||
<rect x="1" y="1" width="278" height="186" rx="18" fill="var(--paper)" stroke="var(--line)" stroke-width="1.5"/>
|
||||
<text x="20" y="28">02</text>
|
||||
<g transform="translate(15 40)"><g stroke="var(--drawing)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
|
||||
<g class="invite-note"><rect x="44" y="31" width="143" height="73" rx="16" fill="var(--art-paper)" transform="rotate(-5 115 67)"/><path d="m80 77-6-6a13 13 0 0 1 0-18l10-10a13 13 0 0 1 18 0l6 6m-10 8 6 6a13 13 0 0 1 0 18L94 91a13 13 0 0 1-18 0l-6-6m11-10 16-16" fill="none"/><path d="M125 58h38m-38 15h24"/></g>
|
||||
@@ -49,7 +131,7 @@
|
||||
</g></g>
|
||||
</g>
|
||||
<g transform="translate(620 2)">
|
||||
<rect x="1" y="1" width="278" height="186" rx="18" fill="var(--panel)" stroke="var(--line)" stroke-width="1.5"/>
|
||||
<rect x="1" y="1" width="278" height="186" rx="18" fill="var(--paper)" stroke="var(--line)" stroke-width="1.5"/>
|
||||
<text x="20" y="28">03</text>
|
||||
<g transform="translate(15 40)"><g stroke="var(--drawing)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M55 112v9m139-9v9"/><rect x="46" y="63" width="157" height="50" rx="17" fill="var(--couch)" stroke="none"/>
|
||||
@@ -59,5 +141,5 @@
|
||||
<g class="sofa-spark"><path d="m185 20 3 8 8 3-8 3-3 8-3-8-8-3 8-3Z" fill="var(--art-yellow)"/></g>
|
||||
</g></g>
|
||||
</g>
|
||||
<path d="M288 102h15m-5-5 5 5-5 5m300-5h15m-5-5 5 5-5 5" fill="none" stroke="var(--label)" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M288 102h15m-5-5 5 5-5 5m300-5h15m-5-5 5 5-5 5" fill="none" stroke="var(--muted)" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 8.6 KiB |
|
Before Width: | Height: | Size: 185 KiB After Width: | Height: | Size: 105 KiB |
|
Before Width: | Height: | Size: 184 KiB After Width: | Height: | Size: 103 KiB |
|
Before Width: | Height: | Size: 186 KiB After Width: | Height: | Size: 105 KiB |
|
Before Width: | Height: | Size: 184 KiB After Width: | Height: | Size: 103 KiB |
@@ -145,7 +145,8 @@ the same pair and artifact hashes. The [version policy](./standards/versioning.m
|
||||
owns ordering and first-public-release readiness.
|
||||
|
||||
The default App launcher starts immediately, then checks GitHub Releases in the
|
||||
background, falling back to the Gitee mirror if GitHub is unavailable. The
|
||||
background. Published binaries still fall back to Gitee if GitHub is unavailable;
|
||||
current manual downloads use AtomGit. The
|
||||
[release-source policy](./standards/versioning.md#release-sources) owns selection
|
||||
and provenance checks. It shows a link only when
|
||||
the latest stable release is newer, the same version has a known different source
|
||||
@@ -223,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,45 +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">
|
||||
|
||||
Share your screen with friends, or open their invitation to watch in your browser.
|
||||
Choose a guide for what you want to do.
|
||||
# Piik Documentation
|
||||
|
||||
## Start using Piik
|
||||
Try searching for “can’t join”, “no sound”, or “joystick”.
|
||||
|
||||
- **Watch a friend:** [open an invitation](./getting-started.md#join-a-friends-room); no installation needed.
|
||||
- **Share my screen:** [download Piik App](https://piik.tv/?lang=en#download), then follow [the App steps](./getting-started.md#share-with-piik-app).
|
||||
- **Use Piik without installing:** [open the online site](https://demo.piik.tv) and follow [the online guide](./getting-started.md#use-piik-online).
|
||||
- **Use my group's Piik site:** [connect the App or share in a browser](./getting-started.md#share-from-an-existing-site).
|
||||
<HelpSearch />
|
||||
|
||||
## Use the room tools
|
||||
</header>
|
||||
|
||||
- [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.
|
||||
- [App reference](../../cmd/piik-app/README.md): saved modes, site access, command-line options and diagnostics.
|
||||
<div class="help-sections">
|
||||
|
||||
## Get help
|
||||
<section class="help-actions">
|
||||
|
||||
[Troubleshooting](./troubleshooting.md) groups checks by what is failing:
|
||||
opening Piik or an invitation, starting a share, picture and sound, or the media connection.
|
||||
Start with that symptom; advanced network checks come after the basic steps.
|
||||
## Start here
|
||||
|
||||
Still stuck? [Report a problem](https://github.com/TNTcraftHIM/Piik/issues/new/choose)
|
||||
with your version, system, browser and reproduction steps. The
|
||||
[diagnostic guide](../../cmd/piik-app/README.md#diagnostics) explains how to collect useful reports.
|
||||
- [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.
|
||||
|
||||
## Run a site for your group
|
||||
</section>
|
||||
|
||||
<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>
|
||||
<section class="help-issues">
|
||||
|
||||
Self-hosting is an advanced option. Public sites need a reachable address, HTTPS
|
||||
and network configuration; App users do not need to deploy a server.
|
||||
## Fix a problem
|
||||
|
||||
- [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).
|
||||
- [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)
|
||||
|
||||
## Help improve Piik
|
||||
[Troubleshooting](./troubleshooting.md) · [Reporting a problem](./troubleshooting.md#reporting-a-problem)
|
||||
|
||||
[Translate Piik](./translating.md), [contribute](../../CONTRIBUTING.md), or explore the
|
||||
[developer and maintainer documentation](../README.md).
|
||||
</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>
|
||||
|
||||
[简体中文](./README.zh-CN.md) · [Help translate Piik](./translating.md) · [Piik website](https://piik.tv/?lang=en)
|
||||
@@ -1,43 +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">
|
||||
|
||||
## 开始使用
|
||||
|
||||
- **看朋友的分享:** [打开邀请链接](./getting-started.zh-CN.md#加入朋友的房间),无须安装。
|
||||
- **分享自己的屏幕:** [下载 Piik App](https://piik.tv/?lang=zh-CN#download),再按 [App 使用步骤](./getting-started.zh-CN.md#用-piik-app-分享)操作。
|
||||
- **免安装使用:** 打开[在线版](https://demo.piik.tv),参阅[在线版教程](./getting-started.zh-CN.md#使用在线版)。
|
||||
- **使用已有的 Piik 站点:** [配合 App 使用,或直接在浏览器中分享](./getting-started.zh-CN.md#使用已有站点分享)。
|
||||
- [加入朋友的房间](./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>
|
||||
请求控制,用屏幕上的摇杆操作朋友的游戏。
|
||||
|
||||
## 使用房间工具
|
||||
</section>
|
||||
|
||||
- [分享与播放](./sharing.zh-CN.md):画质、摄像头、来源声音与观看控制。
|
||||
- [聊天、语音与远程控制](./room-tools.zh-CN.md):表情互动、聊天,或让朋友接手操作。
|
||||
- [App 使用参考](../../cmd/piik-app/README.zh-CN.md):模式记忆、站点授权、命令行参数与诊断。
|
||||
<section class="help-issues">
|
||||
|
||||
## 遇到问题
|
||||
|
||||
[问题排查](./troubleshooting.zh-CN.md)按打不开 App 或邀请、无法开始分享、画面与声音、
|
||||
媒体连接等现象分类。先看对应的常规步骤,需要时再进入进阶网络排查。
|
||||
- [进房后没画面](./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),
|
||||
附上版本、系统、浏览器和复现步骤。需要收集报告时,参阅
|
||||
[诊断说明](../../cmd/piik-app/README.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">
|
||||
|
||||
自部署属于进阶操作;公网服务需要可访问的地址、HTTPS 与网络配置,普通 App 用户无须部署。
|
||||
## 房间里可以做什么
|
||||
|
||||
- [部署 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,76 +1,67 @@
|
||||
# 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 shares one person's screen with up to 20 invited viewers. This guide covers
|
||||
watching, using Piik online, using Piik App and sharing through an existing site.
|
||||
|
||||
[Join a room](#join-a-friends-room) · [Use online](#use-piik-online) ·
|
||||
[Piik App](#share-with-piik-app) · [Existing site](#share-from-an-existing-site) ·
|
||||
[Room tools](./room-tools.md) · [Troubleshooting](./troubleshooting.md)
|
||||
|
||||
Viewers need a browser and an invitation. To start sharing, download Piik App
|
||||
and choose **Public invite**. To share without installing, open
|
||||
[Piik online](https://demo.piik.tv) and create a room in your browser.
|
||||
- [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.
|
||||
Use the playback button to pause or resume; on a computer, double-click the picture to enter or
|
||||
leave fullscreen where supported. On a phone, tap the picture to show the bar
|
||||
and use its buttons. Safari may show system controls in video fullscreen.
|
||||
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.
|
||||
|
||||
See [playback controls](./sharing.md#playback-controls) for display and sound options.
|
||||

|
||||

|
||||
|
||||
With just a four-digit room code, open the same Piik site and choose
|
||||
**Join a room**. You may need the site's passphrase and the room's password.
|
||||
The host decides whether code entry is available; ask for an invitation link if
|
||||
you cannot join by code.
|
||||

|
||||

|
||||
|
||||
Hosts can turn off **Skip passwords** beside the link to copy the ordinary room
|
||||
address. Visitors follow the site's and room's access checks; invite-only rooms
|
||||
require the invitation credential. This switch does not revoke existing invites.
|
||||
[Get help joining or watching](./troubleshooting.md#common-problems).
|
||||
|
||||
If an old link no longer works, ask the host for the current invitation.
|
||||
App Local rooms and temporary public invitations end when that App run stops.
|
||||
<a id="use-piik-online"></a>
|
||||
|
||||
## Use Piik online
|
||||
## Share your screen in a browser
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
The online version is provided by the project. Media travels only between participants (P2P);
|
||||
restrictive networks may load the page but block video.
|
||||
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
|
||||
|
||||
1. Download a **`piik-app`** archive for your platform from
|
||||
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
|
||||
[Gitee mirror](https://gitee.com/TNTcraftHIM/Piik/releases). Extract the whole
|
||||
archive and keep its directory structure intact.
|
||||
[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.
|
||||
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.
|
||||
|
||||

|
||||

|
||||
|
||||
If macOS blocks the first launch, follow the [Mac opening steps](./troubleshooting.md#macos-blocks-first-launch).
|
||||
|
||||
Click the launcher's update button to download the new App. **Gitee mirror**
|
||||
provides an alternative if the download is slow or unavailable. A new major
|
||||
version includes a compatibility warning that links to the upgrade instructions;
|
||||
read them before replacing your App.
|
||||
<details>
|
||||
<summary>Which download should I choose?</summary>
|
||||
|
||||
| Filename contains | Platform |
|
||||
| --- | --- |
|
||||
@@ -79,37 +70,46 @@ read them before replacing your App.
|
||||
| `darwin-amd64` | Intel Mac; native capture requires macOS 13+ |
|
||||
| `linux-amd64` | Linux x64 |
|
||||
| `linux-arm64` | Linux ARM64 |
|
||||
| `android-universal` | Android 10+; ARM64 and x64 in one APK |
|
||||
|
||||
Windows App and browser sharing are the primary tested paths. Physical-device
|
||||
coverage for the macOS and Linux apps is still limited;
|
||||
[test results and feedback are welcome](https://github.com/TNTcraftHIM/Piik/issues).
|
||||
Linux native capture also needs [system components](../../native/capture/linux/README.md).
|
||||
See the [App guide](../../cmd/piik-app/README.md) for package and runtime details.
|
||||
|
||||
</details>
|
||||
|
||||
### Choose an App mode
|
||||
|
||||
| Mode | When to choose it | What to keep in mind |
|
||||
| --- | --- | --- |
|
||||
| **Local room** | Friends are on the same local network. | With multiple interfaces, expand **Local invitation address** and select the interface and IP on your friends' network. Your computer must be reachable from theirs. A local site passphrase is optional. |
|
||||
| **Public invite** | Friends are elsewhere and you want a temporary invitation. | Needs Internet access. The public address lasts for this App run. |
|
||||

|
||||

|
||||
|
||||
- **Public invite:** send a temporary web link to friends elsewhere. It needs
|
||||
Internet access and lasts until you close the App.
|
||||
- **Local room:** friends are on the same LAN or virtual LAN. Your computer
|
||||
must be reachable from theirs. If needed, expand **Local invitation address**
|
||||
and select the network interface your friends use.
|
||||
|
||||
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>
|
||||
|
||||
Once the room service starts, click the connected **App** button at the top right
|
||||
to return to the launcher, manage site access or reopen the room. The App terminal
|
||||
also keeps an **App launcher** address. To change between Local room and Public
|
||||
invite, close and reopen the App, then choose again. This ends the previous room
|
||||
and generates a new public-invitation address.
|
||||
|
||||
</details>
|
||||
|
||||
### Use App with an existing site
|
||||
|
||||
1. Keep Piik App running and open the Piik site in your browser. Enter its site
|
||||
passphrase if asked; [Piik online](https://demo.piik.tv) needs no site passphrase.
|
||||
No room mode needs to be selected in the App launcher.
|
||||
2. Click **App** at the top. Allow local-network access if the browser asks.
|
||||
When App is found, choose **Open App page**.
|
||||
3. Check the site address on the local confirmation page, then choose **Allow access**.
|
||||
4. Return to the site, choose **Start sharing**, then **Apps / Windows** or **Screens**.
|
||||
Select a source and send the new room invitation to your friends.
|
||||
@@ -119,49 +119,24 @@ selector; its list updates as soon as the connection completes.
|
||||
If connection fails, the App button offers **Retry** and **Download App**.
|
||||
You can still share and watch in your browser.
|
||||
|
||||
The browser remembers the connection to an approved site. Reconnect after
|
||||
changing browsers, using a private window or clearing site data. In the App
|
||||
launcher, **×** revokes a site and **☆** makes it open next time; approving a
|
||||
different site replaces the previous one. See the [App reference](../../cmd/piik-app/README.md#modes)
|
||||
for these options and returning to the launcher. A new public-invite address needs
|
||||
its own approval.
|
||||
|
||||
**A page that opens does not guarantee a video connection.** Public invite gives
|
||||
your room a temporary web address; picture and sound still travel between
|
||||
participants. This mode has no media-server fallback, and the temporary address
|
||||
has no uptime guarantee. All modes need a working UDP media path.
|
||||
The [App guide](../../cmd/piik-app/README.md#modes) explains the connection setup.
|
||||
Manage [approved sites and the startup favorite](../../cmd/piik-app/README.md#approved-site)
|
||||
in the App launcher. If video cannot connect, use the [network guide](./network.md).
|
||||
|
||||
### Upgrading
|
||||
|
||||
**Piik 2.x and 1.x cannot be used together.** The App and the site it connects to
|
||||
need the same major version. Different 2.x versions preserve established sharing
|
||||
and viewing; new features require support from the relevant App and site.
|
||||
Read the release notes on
|
||||
[GitHub](https://github.com/TNTcraftHIM/Piik/releases/latest) or
|
||||
[Gitee](https://gitee.com/TNTcraftHIM/Piik/releases) before upgrading.
|
||||
|
||||
- **Local room or Public invite:** stop sharing, close the old App and extract
|
||||
the complete new package. Start the new App and send a fresh invitation.
|
||||
- **An existing site:** the administrator updates the Server first, following
|
||||
the [update guide](../operations/service-management.md). Then update the Apps
|
||||
connecting to that site and refresh all sharing and viewing pages.
|
||||
|
||||
Restarting an App or Server interrupts active shares.
|
||||
App and site must use the same major version; **2.x and 1.x cannot be used together**.
|
||||
To replace App or update a group's site, follow the [upgrade steps](../../cmd/piik-app/README.md#upgrading).
|
||||
|
||||
## Share from an existing site
|
||||
|
||||
You need an existing HTTPS site running Piik Server, provided by a friend or
|
||||
administrator. You can also use [Piik online](#use-piik-online)
|
||||
or [Piik App](#share-with-piik-app). Hosting a site yourself is an advanced option:
|
||||
follow the [self-hosting guide](../operations/self-hosting.md) for server, HTTPS
|
||||
and network setup.
|
||||
Use an HTTPS Piik site provided by your group or administrator.
|
||||
To run your own site, follow [self-hosting](../operations/self-hosting.md).
|
||||
|
||||
1. Open your group's Piik site. Enter its site passphrase if asked.
|
||||
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.
|
||||
|
||||
@@ -171,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,68 +1,66 @@
|
||||
# 第一次用 Piik
|
||||
|
||||
[English](./getting-started.md) · 简体中文 · [回到 Piik](../../README.zh-CN.md)
|
||||
[English](./getting-started.md) · 简体中文 · [文档中心](./README.zh-CN.md)
|
||||
|
||||
Piik 支持一位房主分享屏幕,最多 20 位受邀观众通过浏览器观看。
|
||||
本指南介绍加入房间、使用在线版、使用 Piik App,以及通过已有站点分享的方法。
|
||||
|
||||
[加入房间](#加入朋友的房间) · [在线版](#使用在线版) ·
|
||||
[Piik App](#用-piik-app-分享) · [已有站点](#使用已有站点分享) ·
|
||||
[房间工具](./room-tools.zh-CN.md) · [问题排查](./troubleshooting.zh-CN.md)
|
||||
|
||||
观众只需要浏览器和邀请链接。
|
||||
分享画面推荐下载 Piik App,选择 **公网邀请**。
|
||||
想免安装,可以打开[在线版](https://demo.piik.tv),直接在浏览器里创建房间并分享。
|
||||
- [观看朋友的分享](#加入朋友的房间)
|
||||
- [用浏览器分享](#用浏览器分享屏幕)或[用 Piik App 分享](#用-piik-app-分享)
|
||||
|
||||
## 加入朋友的房间
|
||||
|
||||
1. 用电脑或手机浏览器打开朋友发来的邀请链接。
|
||||
2. 等待画面出现。如果浏览器没有自动播放,点击 **播放**。
|
||||
3. 将鼠标移到画面上,或轻点画面,显示播放控制栏。
|
||||
1. 用手机或电脑的浏览器打开朋友发来的邀请链接。观看无需安装 Piik App,也无需注册。
|
||||
2. 如果打开链接就看到 **站点口令**,请向朋友索取这个站点的口令。如果房间显示 **输入房间密码**,点击按钮,填入这个房间的密码,再点击 **加入**。朋友发来的是 **免密邀请** 时,打开链接即可进房。
|
||||
3. 如果朋友的画面上有 **播放** 按钮,点击它。轻点画面或将鼠标移到画面上,可以打开[播放控制栏](./sharing.zh-CN.md#播放控制)。
|
||||
|
||||
播放控制栏只改变你自己看到的画面和听到的声音。
|
||||
点击播控栏的按钮可暂停或继续;电脑上双击画面可进入或退出全屏(浏览器支持时)。
|
||||
手机上轻点画面唤出控制栏,再使用其中的按钮。Safari 的视频全屏可能使用系统播控。
|
||||
如果朋友只发了四位房间号,先问对方要 Piik 站点地址。打开该地址,按提示输入 **站点口令**,再点击 **加入房间**,填入四位房间号并点击箭头。如果提示输入房间密码,向朋友索取密码;如果房间只接受邀请,请朋友发完整邀请链接。
|
||||
|
||||
画面显示与音量选项见[播放控制](./sharing.zh-CN.md#播放控制)。
|
||||

|
||||

|
||||
|
||||
只有四位房间号时,打开同一个 Piik 站点,选择 **加入房间**。
|
||||
你可能需要站点口令和房间密码。能否通过房间号加入由房主决定;
|
||||
无法加入时,请朋友发邀请链接。
|
||||

|
||||

|
||||
|
||||
房主可关闭链接旁的 **免密邀请**,复制普通房间地址。访客打开地址后按站点和房间设置
|
||||
验证口令或密码;仅限邀请的房间需保留凭证。这个开关不会撤销已发出的邀请。
|
||||
[加入或观看遇到问题](./troubleshooting.zh-CN.md#常见问题)。
|
||||
|
||||
旧链接失效了,就请房主重新发一份当前邀请。
|
||||
App 的本地房间和临时公网邀请会随本次 App 退出而结束。
|
||||
<a id="使用在线版"></a>
|
||||
|
||||
## 使用在线版
|
||||
## 用浏览器分享屏幕
|
||||
|
||||
1. 在浏览器中打开 [demo.piik.tv](https://demo.piik.tv)。
|
||||
2. 点击 **开始分享**,选择 **浏览器** 分享屏幕、窗口或标签页;也可在电脑或手机上选择
|
||||
**摄像头**(需浏览器支持访问)。如需来源声音且选择器提供该选项,启用音频。
|
||||
3. 确认预览后,点击 **复制邀请链接**,用另一台设备打开,或发送给朋友。
|
||||
4. 分享结束后,点击 **停止分享**。
|
||||
1. 用浏览器打开 [demo.piik.tv](https://demo.piik.tv)。无需注册或下载就能分享。
|
||||
2. 点击 **开始分享**。选择 **浏览器** 可以分享屏幕、窗口或标签页,选择 **摄像头** 可以分享镜头画面。选好要分享的画面,如果选择器提供音频选项,可按需开启。
|
||||
3. 预览出现画面后,在 **准入方式** 里点 **复制**,把邀请链接发给朋友。朋友在旁边时,可以点链接旁的 **二维码** 让对方扫码。
|
||||
4. 朋友观看时,保持分享标签页打开。结束时点击 **停止分享**。
|
||||
|
||||
在线版由项目提供,画面仅通过设备间直连(P2P)传输。
|
||||
在受限网络下,可能出现页面能打开、画面无法连接的情况。
|
||||
使用 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) 或
|
||||
[Gitee 镜像](https://gitee.com/TNTcraftHIM/Piik/releases)下载以 **`piik-app`** 开头、
|
||||
对应平台的压缩包,完整解压并保留目录结构。
|
||||
[AtomGit 镜像](https://atomgit.com/TNTcraftHIM/Piik/releases)下载以 **`piik-app`** 开头、
|
||||
对应平台的程序包。安卓手机或平板直接安装 APK。
|
||||
桌面端完整解压并保留目录结构。
|
||||
2. Windows 打开 `piik-app.exe`,macOS 打开 `Piik App.app`,Linux 运行 `./piik-app`。
|
||||
启动页会在系统浏览器里打开。
|
||||
安卓手机或平板安装后打开 Piik。启动页会在系统浏览器里打开。
|
||||
3. 邀请不在同一局域网的朋友时,选择 **公网邀请**,再点击 **进入 Piik**。
|
||||
其他模式的用途见下表。
|
||||
其他模式的用途见下方说明。
|
||||
4. 点击 **开始分享**,按可用选项选择 **浏览器**、**摄像头**、**程序 / 窗口** 或 **屏幕**,
|
||||
然后选定要分享的画面与声音。
|
||||
5. 复制房间邀请发给朋友。分享期间保持 App 和分享标签页打开。
|
||||
选好要分享的画面。想让朋友听到声音时,可按需开启声音选项。
|
||||
5. 点击邀请链接旁的 **复制**,把邀请链接发给朋友。分享期间保持 App 和分享标签页打开。
|
||||
|
||||

|
||||

|
||||
|
||||
macOS 首次打开被拦截时,按 [Mac 打开说明](./troubleshooting.zh-CN.md#macos-提示已损坏或无法验证开发者)处理。
|
||||
|
||||
点击启动页的更新按钮即可下载新版 App;下载慢或无法下载时,可使用下方的 **Gitee 备用下载**。
|
||||
跨大版本更新会显示兼容性提醒,点击提醒可查看升级说明;替换 App 前,请先阅读。
|
||||
<details>
|
||||
<summary>该下载哪个程序包?</summary>
|
||||
|
||||
| 文件名包含 | 适用平台 |
|
||||
| --- | --- |
|
||||
@@ -71,31 +69,40 @@ macOS 首次打开被拦截时,按 [Mac 打开说明](./troubleshooting.zh-CN.
|
||||
| `darwin-amd64` | Intel Mac;原生采集需 macOS 13 及以上 |
|
||||
| `linux-amd64` | Linux x64 |
|
||||
| `linux-arm64` | Linux ARM64 |
|
||||
| `android-universal` | Android 10 及以上;一个 APK 包含 ARM64 和 x64 |
|
||||
|
||||
目前主要测试 Windows 版 Piik App 和浏览器分享。macOS 和 Linux 版 Piik App 仍需更多实机测试,
|
||||
欢迎有设备的朋友试用并[反馈问题](https://github.com/TNTcraftHIM/Piik/issues)。
|
||||
Linux 原生采集还需要[系统组件](../../native/capture/linux/README.md)。
|
||||
程序包与启动参数的细节见 [App 指南](../../cmd/piik-app/README.zh-CN.md)。
|
||||
|
||||
</details>
|
||||
|
||||
### 选择 App 模式
|
||||
|
||||
| 模式 | 什么时候用 | 需要知道 |
|
||||
| --- | --- | --- |
|
||||
| **本地房间** | 朋友和你在同一个局域网。 | 多网卡时展开「局域网邀请地址」,选择与朋友同一网络的网卡和 IP。对方需要能连接到你的电脑,可以设置本地站点口令。 |
|
||||
| **公网邀请** | 朋友在别处,想临时发个邀请。 | 需要互联网连接;公网地址只在本次 App 运行期间有效。 |
|
||||

|
||||

|
||||
|
||||
- **公网邀请:** 给异地朋友发一个临时网页链接。需要互联网连接,关闭 App 后链接失效。
|
||||
- **本地房间:** 朋友在同一局域网或虚拟局域网,对方需要能连接到你的电脑。
|
||||
多网卡时,可展开 **局域网邀请地址**,选择朋友所在的网络。
|
||||
|
||||
本地房间和公网邀请可展开 **站点口令** 设置可选的访问口令。
|
||||
本地邀请使用 HTTPS;首次访问时,先与房主的 App 终端核对本地证书,再继续进入,
|
||||
操作见[证书确认说明](./troubleshooting.zh-CN.md#本地-https-证书提示)。
|
||||
如果浏览器弹出警告,请先向房主确认本地邀请再继续。[如何确认本地邀请](./troubleshooting.zh-CN.md#本地-https-证书提示)
|
||||
|
||||
<details>
|
||||
<summary>回到启动页或更换模式</summary>
|
||||
|
||||
房间服务启动后,点击网页右上角已就绪的 **App**,可回到启动页管理授权或重新进入房间;
|
||||
App 终端也保留 **App 启动页** 地址。更换本地房间/公网邀请模式时,关闭并重新打开 App 后选择。
|
||||
这会结束原有房间,公网邀请地址也会重新生成。
|
||||
|
||||
</details>
|
||||
|
||||
### 通过已有站点使用 App
|
||||
|
||||
1. 保持 Piik App 运行,在浏览器打开 Piik 站点。如果站点要求口令,先输入口令;
|
||||
项目提供的[在线版](https://demo.piik.tv)无需站点口令。App 启动页无需选择房间模式。
|
||||
2. 点击站点顶部的 **App**。浏览器询问本地网络权限时,请允许访问。
|
||||
找到 App 后,点击 **打开 App 页面**。
|
||||
3. 在本机确认页核对站点网址,点击 **允许使用**。
|
||||
4. 返回站点,点击 **开始分享**,选择 **程序 / 窗口** 或 **屏幕**,
|
||||
选好来源后,将新房间的邀请链接发给朋友。
|
||||
@@ -103,40 +110,22 @@ App 终端也保留 **App 启动页** 地址。更换本地房间/公网邀请
|
||||
也可以在 **开始分享** 的选源窗口里点击 **连接 Piik App**,连接后列表会直接显示 App 来源。
|
||||
连接失败时,App 按钮旁会提供 **重试** 和 **下载 App**;仍可继续使用浏览器分享和观看。
|
||||
|
||||
浏览器会记住已授权站点的连接;换浏览器、使用无痕窗口或清除站点数据后,重新连接即可。
|
||||
App 启动页的 **×** 可取消站点授权,**☆** 可设为下次启动时打开的站点;允许新站点会替换旧站点。
|
||||
这些选项与返回启动页的方法见 [App 使用参考](../../cmd/piik-app/README.zh-CN.md#运行模式)。
|
||||
朋友的新公网邀请地址需要单独授权。
|
||||
|
||||
**网页能打开,不代表视频一定能连通。** 公网邀请为房间提供临时网页地址,
|
||||
画面和声音仍靠参与者之间的连接传输。此模式没有媒体服务器兜底,
|
||||
临时地址也不保证持续可用。所有模式都需要可用的 UDP 媒体路径。
|
||||
具体连接方式见 [App 指南](../../cmd/piik-app/README.zh-CN.md#运行模式)。
|
||||
已授权站点与启动收藏可在[App 启动页管理](../../cmd/piik-app/README.zh-CN.md#已授权站点)。
|
||||
画面连不上时,查看[网络排查指南](./network.zh-CN.md)。
|
||||
|
||||
### 版本升级
|
||||
|
||||
**Piik 2.x 与 1.x 不能混用。** App 与连接的站点需要使用同一大版本。
|
||||
不同 2.x 版本保留已有的分享和观看功能;新功能需要相关 App 与站点支持。
|
||||
升级前,请先查看 [GitHub](https://github.com/TNTcraftHIM/Piik/releases/latest) 或
|
||||
[Gitee](https://gitee.com/TNTcraftHIM/Piik/releases) 上的版本说明。
|
||||
|
||||
- **本地房间或公网邀请:** 停止分享并关闭旧 App,完整解压新版程序包,
|
||||
启动后重新发送邀请链接。
|
||||
- **已有站点:** 管理员先按[更新指南](../operations/service-management.zh-CN.md)升级 Server,
|
||||
然后更新连接该站点的 App,并刷新所有分享与观看页面。
|
||||
|
||||
重启 App 或 Server 会中断正在进行的分享。
|
||||
App 与站点需要使用同一大版本,**2.x 与 1.x 不能混用**。
|
||||
替换 App 或更新已有站点时,按[升级步骤](../../cmd/piik-app/README.zh-CN.md#升级)操作。
|
||||
|
||||
## 使用已有站点分享
|
||||
|
||||
需要先有一个运行 Piik Server 的 HTTPS 站点,可以使用朋友或管理员提供的地址。
|
||||
也可以使用项目提供的[在线版](#使用在线版)或 [Piik App](#用-piik-app-分享)。
|
||||
自建站点属于进阶操作,服务器、HTTPS 和网络端口的配置步骤见[部署指南](../operations/self-hosting.zh-CN.md)。
|
||||
使用朋友或管理员提供的 HTTPS Piik 站点。自行搭建时,按[自部署指南](../operations/self-hosting.zh-CN.md)操作。
|
||||
|
||||
1. 打开 Piik 站点。如果站点设置了口令,先输入口令。
|
||||
2. 点击 **开始分享**,选择 **浏览器** 后在浏览器弹窗里选择屏幕、窗口或标签页;
|
||||
浏览器支持时,电脑和手机也可选择 **摄像头**。如需来源声音且选择器提供该选项,启用音频。
|
||||
3. 确认预览画面后,点击 **复制邀请链接** 发给朋友。
|
||||
3. 预览出现画面后,点击邀请链接旁的 **复制**,把邀请链接发给朋友。
|
||||
4. 保持分享标签页打开。需要时使用 **暂停分享**、**切换来源** 或 **停止分享**。
|
||||
|
||||
浏览器屏幕采集需要 HTTPS 站点或 `localhost`。
|
||||
@@ -145,8 +134,7 @@ App 启动页的 **×** 可取消站点授权,**☆** 可设为下次启动时
|
||||
|
||||
想在同一站点使用 App 采集,可按[通过已有站点使用 App](#通过已有站点使用-app)的步骤操作。
|
||||
站点负责房间与邀请,App 提供原生采集。
|
||||
如果管理员已启用 SFU 转发,房主可在开始分享前关闭 **隐私模式**,允许使用这条兜底线路。
|
||||
项目提供的在线版仅使用 P2P。
|
||||
如果站点能为无法直连的观众转发画面,房主可在开始分享前关闭 **隐私模式** 来允许转发。
|
||||
|
||||
## 接下来可以做什么
|
||||
|
||||
|
||||
@@ -0,0 +1,131 @@
|
||||
# Advanced network checks
|
||||
|
||||
English · [简体中文](./network.zh-CN.md) · [Troubleshooting](./troubleshooting.md)
|
||||
|
||||
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.
|
||||
|
||||
- **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).
|
||||
|
||||
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:
|
||||
|
||||

|
||||
|
||||
## Campus networks and strict NAT
|
||||
|
||||
**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 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**.
|
||||
|
||||
<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
|
||||
|
||||
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>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
|
||||
browser switch. Vivaldi provides **Settings → Privacy and Security → WebRTC IP
|
||||
Handling → Broadcast IP for Best WebRTC Performance**.
|
||||
|
||||
Direct connections can expose network addresses to peers. Change the setting
|
||||
that blocks UDP, keeping other privacy settings as needed. See
|
||||
[Chrome's policy reference](https://developer.chrome.com/docs/extensions/reference/api/privacy#property-network)
|
||||
and [Vivaldi's privacy settings](https://help.vivaldi.com/desktop/privacy/privacy-settings/).
|
||||
|
||||
</details>
|
||||
|
||||
## STUN, IPv6 and router checks
|
||||
|
||||
These checks are for App users reading logs and people who manage a site or router.
|
||||
Only change the parts you manage.
|
||||
|
||||
<details>
|
||||
<summary>STUN discovery and settings</summary>
|
||||
|
||||
STUN discovers the addresses devices can use to connect. App Public invite tries
|
||||
several services; if discovery fails, replace the built-in addresses with
|
||||
[`PIIK_STUN_URLS`](../standards/configuration.md#piik-app-configuration) before
|
||||
starting Public invite. Site operators should check that `STUN_URLS` points to
|
||||
reachable UDP services; an HTTP reverse proxy does not forward STUN.
|
||||
|
||||
Choose trusted services: they receive participants' public IP addresses. The
|
||||
[WebRTC connection guide](https://webrtc.org/getting-started/peer-connections)
|
||||
explains discovery.
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Check IPv6 connectivity</summary>
|
||||
|
||||
When the provider, router and both devices have usable IPv6, Piik can try it
|
||||
alongside IPv4. Keep IPv4 enabled too; IPv6 still obeys firewall rules.
|
||||
Router menus vary; consult your manufacturer's
|
||||
[IPv6 guidance](https://support.google.com/googlehome/answer/6361450).
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Router mappings and shared addresses</summary>
|
||||
|
||||
Supported UPnP, PCP or NAT-PMP can let App's native media path request port
|
||||
mappings; browser-only capture does not request them. If both modem and router
|
||||
perform NAT, your model's bridge/AP-mode instructions may remove a layer.
|
||||
Back up settings first. Carrier-grade NAT is upstream; ask your provider about
|
||||
public IPv4 or IPv6.
|
||||
|
||||
See manufacturer guidance on [UPnP](https://support.google.com/googlehome/answer/6274337)
|
||||
and [double NAT](https://www.tp-link.com/us/support/faq/3113/).
|
||||
|
||||
</details>
|
||||
|
||||
## Optional: a virtual LAN
|
||||
|
||||
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.
|
||||
- **[UU (Chinese guide)](https://uu.163.com/blog/lan-multiplayer-guide-net.html):** use the general-purpose LAN option and join the same room. In Piik, select the Host's UU virtual IPv4 address.
|
||||
|
||||

|
||||
|
||||
1. **Join the same network.** The Host and friends run the tool and join the same virtual LAN.
|
||||
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.
|
||||
- **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.
|
||||
|
||||
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.
|
||||
@@ -0,0 +1,121 @@
|
||||
# 进阶网络排查
|
||||
|
||||
[English](./network.md) · 简体中文 · [问题排查](./troubleshooting.zh-CN.md)
|
||||
|
||||
房间能打开,但看不到朋友分享的画面?从[进房后没画面](./no-media-route.zh-CN.md)开始。如果你已经试过其他浏览器或网络,可以直接选对应的情况。
|
||||
|
||||
- **同一邀请在别的浏览器里正常:** [检查浏览器限制](#浏览器限制了-webrtc)。
|
||||
- **换成热点就能看。** [原来的网络连不上时怎么办](#校园网或严格-nat)
|
||||
- **异地朋友打不开你的本地邀请:** [通过虚拟局域网连接](#可选虚拟局域网)。
|
||||
- **日志提到 STUN,或准备检查自家路由器:** [地址发现与路由器](#stunipv6-与路由器检查)。
|
||||
|
||||
如果是[公网邀请网页打不开](./troubleshooting.zh-CN.md#公网邀请创建失败或出现-1033),或[有画面但模糊、卡顿](./troubleshooting.zh-CN.md#画面模糊卡顿或中断),先按对应症状排查。
|
||||
|
||||
网页与聊天、画面与声音使用不同的连接:
|
||||
|
||||

|
||||
|
||||
## 校园网或严格 NAT
|
||||
|
||||
**如果用的是公网邀请,先换手机热点打开同一链接。** 如果能看,可以继续用热点,也可以请管理原来网络的人帮忙。
|
||||
|
||||
需要长期使用时,可以选择以下方案:
|
||||
|
||||
- **有可用的 Piik 站点:** 请管理员确认站点已开启画面和声音转发。房主在该站点关闭 **隐私模式** 后开始分享,再把新房间的邀请发给观众。直连失败时,Piik 会尝试通过站点转发。[管理员设置](../operations/self-hosting.zh-CN.md#可选启用媒体兜底) · [用 App 在已有站点分享](./getting-started.zh-CN.md#通过已有站点使用-app)
|
||||
- **没有可用的转发站点,直连仍然失败:** 可尝试[虚拟局域网](#可选虚拟局域网)。朋友们加入同一个虚拟网络,再通过 App 的 **本地房间** 分享。
|
||||
|
||||
<details>
|
||||
<summary>站点管理员可选读 · 转发画面和声音</summary>
|
||||
|
||||
**媒体需要 UDP。** `demo.piik.tv` 和 App 的 **公网邀请** 使用纯 P2P。
|
||||
服务器转发需要站点启用 SFU,并且 UDP 端点可达。
|
||||
|
||||
</details>
|
||||
|
||||
## 浏览器限制了 WebRTC
|
||||
|
||||
1. 用另一款浏览器打开同一邀请。如果那里能看到画面,可以直接用它观看。
|
||||
2. 想继续使用原浏览器,可以先用默认设置的新浏览器配置打开邀请。如果能看,检查原配置的隐私扩展。如果两款浏览器都看不到,公网邀请可以换手机热点再试。本地邀请需要让两台设备都留在同一个局域网或虚拟局域网内。
|
||||
|
||||
<details>
|
||||
<summary>进阶 · Chrome 或 Vivaldi 的隐私设置</summary>
|
||||
|
||||
浏览器或 VPN 的 WebRTC 策略可能阻止画面连接,也可能影响同一台电脑上的 App 采集。检查原配置中的 **WebRTC** 或 **IP 泄露保护**。学校或公司统一管理的设备,请联系管理员。
|
||||
|
||||
`disable_non_proxied_udp` 表示限制未经代理的 UDP,可先与浏览器默认策略对照。
|
||||
Chrome 的扩展可能控制此策略,即使浏览器没有显式开关。
|
||||
Vivaldi 在 **设置 → 隐私和安全 → WebRTC IP 处理** 中提供 **广播 IP 以获得最佳 WebRTC 性能**。
|
||||
|
||||
直连可能向对端暴露网络地址。调整阻止 UDP 的设置,其他隐私设置可按需保留。
|
||||
参考 [Chrome 策略说明](https://developer.chrome.com/docs/extensions/reference/api/privacy#property-network)
|
||||
与 [Vivaldi 隐私设置](https://help.vivaldi.com/desktop/privacy/privacy-settings/)(英文)。
|
||||
|
||||
</details>
|
||||
|
||||
## STUN、IPv6 与路由器检查
|
||||
|
||||
这部分适合查看日志的 App 用户,以及可以管理站点或路由器的人。只检查你能够管理的部分。
|
||||
|
||||
<details>
|
||||
<summary>STUN:地址发现与服务配置</summary>
|
||||
|
||||
STUN 用于发现设备可连接的地址。App 公网邀请会尝试多个服务;地址发现失败时,
|
||||
在启动公网邀请前设置 [`PIIK_STUN_URLS`](../standards/configuration.md#piik-app-configuration),替换内置地址。
|
||||
自部署管理员应检查 `STUN_URLS` 是否指向可达的 UDP 服务;HTTP 反向代理不能转发 STUN。
|
||||
|
||||
STUN 服务会接收到参与者的公网 IP,请选择信任的服务。
|
||||
[WebRTC 连接说明](https://webrtc.org/getting-started/peer-connections)介绍了地址发现的作用(英文)。
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>IPv6:检查双方网络</summary>
|
||||
|
||||
宽带、路由器和双方设备都有可用 IPv6 时,Piik 可以在 IPv4 之外尝试这条路径。
|
||||
同时保留 IPv4;IPv6 仍受防火墙约束。路由器菜单因型号而异,参考厂商的
|
||||
[IPv6 配置说明](https://support.google.com/googlehome/answer/6361450?hl=zh-Hans)。
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>路由器:端口映射与共享地址</summary>
|
||||
|
||||
支持的 UPnP、PCP 或 NAT-PMP 可以让 App 原生媒体连接申请端口映射;纯浏览器采集不会申请。
|
||||
光猫和路由器都做 NAT 时,可按对应型号的桥接或 AP 模式说明减少一层,修改前先备份配置。
|
||||
运营商共享公网地址(CGNAT)位于上游,需向运营商咨询公网 IPv4 或 IPv6 服务。
|
||||
|
||||
参考厂商的 [UPnP 说明](https://support.google.com/googlehome/answer/6274337?hl=zh-Hans)
|
||||
和[双重 NAT 示例](https://www.tp-link.com/us/support/faq/3113/)(英文)。
|
||||
|
||||
</details>
|
||||
|
||||
## 可选:虚拟局域网
|
||||
|
||||
朋友在外地,也可以用组网工具把设备连到同一个虚拟局域网,再用 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`)。
|
||||
- **[ZeroTier](https://docs.zerotier.com/quickstart/)(英文教程):** 各设备加入同一个网络 ID,再在管理页面授权这些设备。在 Piik 中选择分配给房主的虚拟 IPv4 地址。
|
||||
|
||||

|
||||
|
||||
1. **加入同一网络。** 房主和朋友都运行组网工具,进入同一个虚拟局域网。
|
||||
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)。
|
||||
- **不能开麦或远控:** 使用 App 生成的 HTTPS 邀请,确认证书,再查[浏览器权限](./troubleshooting.zh-CN.md#无法使用麦克风或远程控制)。支持的浏览器无需公网隧道即可使用这些功能,普通局域网同样适用。
|
||||
|
||||
仅与信任的朋友组网。
|
||||
|
||||
如果需要 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).
|
||||