Compare commits

...
  • fix(linux): retry KDE remote control with a temporary session
    ## Problem and outcome / 问题与结果
    
    Enabling remote control on KDE Plasma Wayland stops native capture even though screen and system-audio sharing were already working. The capture process exits with status 2, and the remote-control request fails because the capture profile never becomes ready. The remote-desktop open asks for transient persistence and passes a restore token. KDE's portal answers with InvalidArgument because remote desktop sessions cannot persist, and that error is treated as a failed capture open.
    
    When a remote-input create fails with that persistence error and has not already been retried, the error is freed and session creation runs again with persist mode none and a null restore token. The retry flag allows only one attempt, so a second rejection still fails the request.
    
    The Linux native check compiles and runs a headless portal regression that rejects the first remote-desktop create with that error and expects the second create to use persist mode none and no token, and the README lists that regression with the other headless checks.
    
    Refs #549
    
    ## Release notes
    
    ### English
    
    On KDE Plasma Wayland, enabling remote control now retries with a temporary session when the desktop rejects permission persistence.
    
    ### 中文
    
    在 KDE Plasma Wayland 中开启远程控制时,如果桌面环境拒绝记住授权,Piik 会改用临时会话重试。
    
    ## Verification / 验证
    
    npx --no-install vitest run tests/release-automation.test.ts finished with 6 passing tests in 1 file.
    The tests passed with the Piik change applied; a run with it reverted gave no clear result, so no test is shown to catch this bug.
    The new test native/capture/linux/portal.test.c did not run here: no test runner for it was available.
    
    Maintainer verification on Alpine Linux with libportal 0.9.1 and GStreamer 1.28.3 passed the Linux capture build and headless Portal tests.
    
    ## Impact / 影响
    
    Scoped to the files listed above; no other caller or consumer changes.
  • fix(linux): open KDE remote-desktop sessions without persistence
    When a remote-input create fails with that persistence error and has not
    already been retried, the error is freed and session creation runs again
    with persist mode none and a null restore token. The retry flag allows
    only one attempt, so a second rejection still fails the request. The
    Linux native check compiles and runs a headless portal regression that
    rejects the first remote-desktop create with that error and expects the
    second create to use persist mode none and no token, and the README
    lists that regression with the other headless checks.
    
    Fixes #549
    
    (cherry picked from commit 1e9fda9f41)
  • fix(release): authenticate mirror preparation reads
    ## Problem and outcome / 问题与结果
    
    Preparing the missing v2.7.0 mirror fetched AtomGit repository metadata
    anonymously and failed with HTTP 401 before reaching tag creation.
    Publication preparation now uses the configured token for its GET
    requests, including the repository endpoint, while the public read-only
    readiness helper remains anonymous.
    
    GET 404 still means absent. Preparation uses one HTTP owner, and
    mutation errors are not retried.
    
    ## Verification / 验证
    
    - The new mocked endpoint regression reproduces the original 401 before
    the change and passes afterward; it also checks that public readiness
    remains anonymous.
    - Publisher, preparation/readiness and source tests: 65 passed.
    TypeScript, diff and repository hygiene checks passed.
    - Actual changed paths are release tooling and tests only:
    `hasProductChanges(e25bd009, HEAD)` is false. With the published v2.7.0
    tag fetched, the planner returns `publish: false`; the existing v2.7.0
    packages are not rebuilt or replaced.
    
    ## Impact / 影响
    
    No App/Server behavior, dependencies, wire or data format changes.
    Recovery continues from the original v2.7.0 CI artifacts and source
    marker. AtomGit's separate Pull-mirror tag restriction may remain the
    next platform blocker; this repair does not bypass it.
  • feat(maintenance): improve invitations and playback controls
    ## Problem and outcome / 问题与结果
    
    Inviting another device, changing sources and adjusting playback should preserve the selected access and accepted settings. This update adds local QR invitations, optional translations and a video buffer setting, and repairs App discovery, source retirement, shared controls, remote-input geometry and audio reporting within the existing 2.x contracts.
    
    ## Release notes
    
    ### English
    
    This update makes invitations easier to share and playback easier to adjust, while improving App connection, source switching and everyday controls. It also adds optional interface translations and more useful audio diagnostics.
    
    - Show the current invitation as a locally generated QR code for another device to scan, preserving the selected access information.
    - Add optional Traditional Chinese, Japanese and Korean translations. Chinese and English remain direct choices; the third menu includes extra languages and visual mode. Missing translations use English.
    - Add an **Increase playback buffering** switch with an adjustable target. More buffering may reduce stalls from uneven packet arrival, at the cost of added viewing delay. Automatic remains the default.
    - Ignore remote-control clicks on blank space outside a zoomed or rotated video.
    - Check for a local Piik App once when a site opens. Automatic discovery respects local-network permission; explicit connection keeps approval under your control, and passive failures stay quiet.
    - Keep a pending Browser screen or camera selection when the previous Native source ends or the App disconnects. Release the old source while allowing the new selection to finish; cancellation and Stop still end the operation correctly.
    - Improve App-to-App connections when port mappings shift during setup.
    - Keep playback hints clear of sharing controls, selection indicators inside their tracks, disabled action icons visible, and numeric settings aligned with accepted values.
    - Use receiver audio reports for outgoing shared-sound loss statistics, and add opt-in Windows capture-progress diagnostics to help locate missing audio.
    
    Existing 2.x App/site compatibility, saved room data and invitation privacy are preserved. Update the App for Native changes. After updating a hosted Server, refresh open site pages; App-local pages use the Web UI included in the updated App package.
    
    ### 中文
    
    本次更新让邀请分享和播放调整更方便,并改善 App 连接、切换来源及日常控件。同时增加可选界面译文和更有帮助的音频诊断。
    
    - 将当前邀请在本地生成二维码,保留所选访问凭证,方便另一台设备扫码加入。
    - 增加繁体中文、日语和韩语可选译文。中英文保留快捷入口,第三个菜单提供附加语言与纯视觉模式;缺少的译文回退英文。
    - 增加 **增加播放缓冲** 开关,并可调整目标值。更多缓冲可减少数据到达不均造成的停顿,但会增加观看延迟;默认仍由系统自动决定。
    - 缩放或旋转画面后,不再把画面外空白区域的点击误传给远端。
    - 打开站点时检查一次本地 Piik App。自动发现遵循本地网络权限,主动连接时才由你批准访问;被动发现失败保持安静。
    - 旧 Native 来源结束或 App 断开时,保留正在进行的浏览器屏幕或摄像头选择。释放旧来源后仍可完成新选择;取消或主动停止时正确收尾。
    - 改善建立连接时端口映射变化情况下的 App 间连接。
    - 避免播放提示遮挡分享控件,让选中指示保持在轨道内,保留禁用按钮图标,并让数值设置显示实际接受的值。
    - 共享声音的发送端丢包统计改用接收方音频报告,并增加可选的 Windows 采集进度诊断,帮助定位无声发生在哪一段。
    
    保留现有 2.x App/站点兼容性、已保存的房间数据和邀请隐私。Native 改动需要更新 App。托管 Server 更新后请刷新已打开的页面;App 本地页面使用新版 App 包内的网页。
    
    ## Verification / 验证
    
    - Complete frontend check: TypeScript, 110 test files / 2001 tests, Web build. Go core check: format, tests, vet and supported cross-target builds; macOS App builds require their native SDK.
    - QR invitations passed independent local decoding, credential/rotation checks and short-window layout. Language/visual menus and guidance passed native and forced-polyfill Browser checks.
    - Native preparation passed actual Pion socket adoption, VP8 SRTP and reverse SRTCP controls. Remote-input geometry and accepted numeric settings have focused regressions.
    - Optional buffer transitions passed real P2P and actual SFU subscriber receiver-API controls for automatic to 300 ms to automatic. The SFU control used a Browser mock upstream rather than the embedded backend; Native preview delegation has unit coverage only.
    - Windows diagnostics passed strict translation compilation, counter tests and stderr-to-diagnostic-ZIP verification. Physical capture, optical QR scanning and a public-network success-rate improvement are not claimed.
    
    ## Impact / 影响
    
    Compatible 2.x update: Browser/server v24, Native control v10, capture v7 and SQLite schema 2 remain unchanged. Optional translations preserve English fallback and the independent visual preference. Playback buffer is a local viewing preference and leaves the default automatic. Existing room authority and invitation handling are preserved.
    
    The HTTP compression dependency receives a compatible patch update. Mirror preparation detects a rejected missing tag before original-artifact downloads; the platform restriction remains open, with original-package validation and continuation rules intact. This does not establish fixes for #499, #502, #529 or #534.
  • docs(release): distinguish mirror settings from write access
    ## Problem and outcome / 问题与结果
    
    The mirror runbook prescribed removing the Pull association as a
    verified way to restore write access. Only rejection of new tags and
    successful publication after source synchronization have been observed;
    changing the overwrite setting did not make tags writable, and disabling
    synchronization has not been tested.
    
    Keep the existing configuration, document immediate synchronization as
    the working recovery path, and retain the supported platform integration
    as unfinished work. Release completion still requires the complete
    verified attachment mirror.
    
    ## Verification / 验证
    
    Repository hygiene and documentation checks passed. Live checks
    confirmed the current Pull configuration and the rejected temporary-tag
    creation; no temporary tag or new Release was created by that check. The
    existing v2.6.3 release remains complete.
    
    ## Impact / 影响
    
    Documentation correction only. No runtime, publication script, package,
    version or repository setting changes.
  • fix(release): decouple download mirrors from source synchronization
    ## Problem and outcome / 问题与结果
    
    A published GitHub release could remain missing from AtomGit while the
    mirror workflow reported a successful deferral, because it required the
    mirrored Git commit and tag first. Package distribution now depends on
    the canonical GitHub release and original artifacts. A missing mirror
    proceeds to publication; only a matching stable release with its
    complete attachment inventory counts as complete.
    
    Release creation uses the mirror's default branch to satisfy AtomGit's
    local tag requirement. The release body identifies GitHub as the source
    authority, and the publisher retains full anonymous size/SHA-256
    verification before marking the mirror stable. The operations guide
    makes verified mirror publication part of release completion and
    documents the read-only Pull-mirror restriction.
    
    ## Verification / 验证
    
    - 58 release publication/readiness/source tests, tooling type checks and
    repository hygiene passed.
    - Workflow lint passed with the existing unsupported `concurrency.queue`
    diagnostic excluded.
    - Recovered the original v2.6.3 artifacts without rebuilding: all ten
    packages (331,048,966 bytes) were uploaded, anonymously downloaded and
    matched against their original SHA-256 values; AtomGit now reports
    v2.6.3 as stable/latest.
    - The platform's Pull association still needs to permit new local tags
    independently of source synchronization; this remains an explicit
    operator follow-up.
    
    ## Impact / 影响
    
    Release tooling and its operating contract only; no App/Server version
    or compatibility change. Scheduled retries remain recovery support and
    no longer report missing source synchronization as successful
    completion.
  • chore: inherit agent capacity and clarify public references
    Remove the project's hardcoded agent concurrency override so user-level settings determine the available parallelism.
    
    Clarify that external citations use publicly published, verifiable sources. Existing interoperability guidance, compatibility notes, attribution and licenses remain intact.
    
    Validation: repository hygiene and documentation checks passed. The diff changes only project tooling configuration and contributor guidance; it does not create a product release.
  • test(signal): await the committed source-path failure
    The retained-child restart test could consume the prepare message from the child's earlier admission while intending to wait for a later source-path failure. Its assertions then raced the failure handler. Wait for the committed route revision after that failure, and identify the retired relay-to-Host edge directly in the rejection check.
    
    All retained-edge, full-path-readiness and restart-authorization assertions remain. Production routing is unchanged. The renamed test reflects source-path recovery, which can repair a descendant first rather than preparing a new relay ingress.
    
    Validation: the focused regression passed 20 repetitions, then the complete signal package passed. An independent review confirmed the matching-event and authorization boundaries. Full local Go checks passed, including formatting, all package tests, vet and Windows/Linux builds; macOS builds remain with their native CI runners. This continues the approved, unpublished v2.6.3 release.
    
    ## Release notes
    
    ### Verification / 验证
    
    - Make the route-recovery release check wait for the matching state update. This changes verification only, not runtime routing.
    - 路由恢复验收改为等待对应的状态更新;此项仅修正验证时序,不改变运行时路由。
  • fix(capture): preserve buffered output after process exit
    When a native capture helper exits, `exec.Cmd.Wait` closes a `StdoutPipe` even if the stream consumer has not finished reading buffered output. The full v2.6.3 regression exposed this as `file already closed` in place of EOF. The same ordering can discard the final frame.
    
    Give the existing Stream its own `os.Pipe` read end. The child owns the writer after startup, and Stream closes the reader only after its existing shutdown drain completes. Process waiting and typed error reporting keep their current owners; no retry, new state machine or relaxed assertion is added.
    
    Validation: Go 1.27.4, rebuilt nativecapture and nativehost package tests passed from stable local binary paths. The new deterministic regression waits for the helper to exit before reading its buffered frame and EOF; existing process-cause, cancellation and backpressure tests remain unchanged. The 3.0 Rust capture path already transfers stdout to its reader task and joins it before retirement, so it needs no matching change.
    
    This repairs the remaining full-check failure before the approved v2.6.3 publication. No packages from earlier attempts were published.
    
    ## Release notes
    
    ### Capture reliability / 采集稳定性
    
    - Preserve buffered capture output when the native helper exits, so closing the process cannot discard its final frame or replace the original failure with a closed-pipe error.
    - 保留原生采集进程退出时尚未读取的数据,避免提前关闭管道丢失尾帧,或将原始失败变成“管道已关闭”。
  • build: check dependency advisories before packaging
    The v2.6.3 publishing run stopped at the reachable-vulnerability check because Go 1.27.3 includes GO-2026-6859. Use the official Go 1.27.4 security patch, and run the existing Go advisory check before the full Go build. The affected Piik handlers read and respond sequentially; this change does not claim an independently reproduced concurrent-header exploit in Piik.
    
    Check locked npm dependencies for high/critical advisories before building, and make official dependency releases and retained-patch review part of release preparation. A newer version alone does not block release. No new checker library, scheduled build or dependency-update framework is introduced.
    
    Validation: Go 1.27.4 `check:go-vuln` reports zero reachable vulnerabilities; npm audit reports zero advisories. Full build/platform checks run once on the final publishing revision. This continues the approved, still-unpublished v2.6.3 release.
    
    ## Release notes
    
    ### Security / 安全更新
    
    - Build App and Server with Go 1.27.4, including the upstream HTTP request-body security correction (GO-2026-6859).
    - App 和 Server 升级至 Go 1.27.4 构建,包含上游 HTTP 请求体处理安全修复(GO-2026-6859)。
  • fix(app): restore hosted-site startup and Windows H264 capture
    Saving an App-hosted public site as the startup destination currently reopens its expired address after restart. Persist the hosting selection instead and enter the current ready address. External sites retain their existing fixed-address preference and approval checks.
    
    The Windows MFT request also uses ordinary Baseline while Piik negotiates Constrained Baseline, causing the AMD startup rejection in #538. Request and validate Constrained Baseline without weakening the emitted-stream check. This phase also clears obsolete launcher errors after readiness and restores compact-menu labels.
    
    Refs #538. Review the issue for closure after the release is published; merging this PR alone must not close it.
    
    Validation:
    
    - Web type-check, 108 test files / 1960 tests, production build, and repository hygiene passed. Actual 390px menu layout and the production launcher component's error-to-ready transition passed; the latter used controlled API responses.
    - Affected Go App, config, launcher and mobile bridge package tests and Go vet passed.
    - The current Windows App completed two real Cloudflare startup cycles: it stored the hosting mode rather than the address, restored it without a new launch request, entered the fresh loopback page in Chrome and created a room. Both cycles retired their ports and processes. Public HTTPS requests from this runner failed with TLS IOException / ECONNRESET, so public reachability is not claimed by this test.
    - The Windows hardware H.264 fixture passed on an RTX 4070 SUPER with 360/360 frames, bitrate down/up recovery, and unchanged SPS validation. The affected RX 7800 XT is covered by the reporter's controlled profile comparison and Browser decode evidence. The local integrated AMD adapter failed during MFT activation, before the profile request; it is not a passing AMD regression test.
    
    No wire-version change, dependency update, room-data migration or automatic App-discovery feature is included.
    
    ## Release notes
    
    ### English
    
    This maintenance update fixes Windows H.264 startup and reopening App-hosted sites.
    
    - Request the H.264 profile that Piik actually negotiates. This fixes the AMD encoder startup rejection reported in #538 without loosening the encoded-stream checks or changing the negotiated profile.
    - When an App-hosted site is saved as the startup destination, restart its Local or public-invitation mode instead of reopening an expired temporary address. This applies to desktop and Android Apps.
    - Clear a stale startup error once the site is ready, and restore only startup modes available in the current App.
    - Keep action labels visible in compact header menus on narrow screens.
    
    Existing 2.x App/site compatibility and saved room data are preserved. Update the App for the Windows encoder and startup fixes. Refresh open site pages after updating a hosted Server; App-local pages use the Web UI included in the updated App package.
    
    If a temporary invitation address was saved before this update, start the site again from the App launcher and select “Open this site when Piik App starts” again. Previously saved addresses do not identify which App created them.
    
    ### 中文
    
    本次维护更新修复 Windows H.264 启动失败,以及 App 自托管站点的再次打开问题。
    
    - 让 H.264 编码器请求与 Piik 实际协商的编码规格一致,修复 #538 报告的 AMD 编码器启动被拒绝问题;不放宽码流检查,也不改变协商规格。
    - 将 App 自己托管的站点设为启动入口后,下次启动会恢复局域网或公网邀请模式,不再打开已经失效的临时网址。桌面和 Android App 均适用。
    - 站点已经就绪时清除过期的启动错误,只恢复当前 App 可用的启动模式。
    - 保留窄屏顶部菜单中的操作文字,避免按钮只剩图标。
    
    保留现有 2.x App/站点兼容性及已保存的房间数据。Windows 编码器和启动修复需要更新 App。托管 Server 更新后请刷新已打开的页面;App 本地页面使用新版 App 包内的网页。
    
    曾保存过旧临时网址的用户,请从 App 启动页重新开启站点,并重新勾选一次“启动 App 时打开此站点”。旧记录无法判断这个临时网址由哪个 App 创建。
  • fix(routing): restore room creation after relay disconnects
    Fix a room-creation stall caused by repeated publication attachment attempts, and preserve healthy relay subtrees when capacity is reduced. This maintenance update also fixes two UI details and clarifies audio troubleshooting.
    
    ## Release notes
    
    **Piik, now in your pocket.**
    
    Piik App supports Android screen sharing, with touch controls for a friend's computer.
    
    **手机,也能开播。**
    
    Piik App 支持 Android 屏幕分享,也能用手机控制朋友的电脑。
    
    ### English
    
    This maintenance update restores room creation after an interrupted relay connection and improves relay-limit changes and controls.
    
    - Fix a disconnected relay causing room creation and routing to become unresponsive (#536).
    - Preserve healthy relay subtrees when reducing capacity; move a feasible viewer before retiring the relay branch.
    - Keep resolution inputs focused when their values update, so editing can continue normally.
    - Keep participant headsets visible in both light and dark themes.
    - Clarify how virtual audio outputs affect screen-sharing sound and how to check the selected output device.
    
    Existing 2.x App/site compatibility and saved room data are preserved. Refresh open site pages after the update. App-local users need the updated App bundle for its included Web fixes. A hosted-service restart reconnects active rooms.
    
    ### 中文
    
    本次维护更新修复转发连接中断后无法创建房间的问题,并改善转发上限调整和控件操作。
    
    - 修复转发节点断线后,房间创建和线路分配可能卡住的问题(#536)。
    - 降低转发容量时保留正常的下游分支,优先迁移可迁移的观众,避免直接拆掉整条转发分支。
    - 修复分辨率数值更新时输入框失去焦点的问题,保持连续编辑。
    - 改善亮色与暗色主题下人物耳机状态的可见性。
    - 补充虚拟音频输出与屏幕共享声音的排查说明,帮助确认实际使用的输出设备。
    
    保留现有 2.x App/站点兼容性及已保存的房间数据。站点更新后请刷新已打开的页面;App 本地分享用户需更新 App,才能获得包内网页修复。托管服务重启时,活动房间会重新连接。
    
    ## Validation
    
    - `npm run check`: typecheck, 108 test files / 1953 tests, and the standard Web build passed on clean `e49b66497bf452268a3cb75a70d740fbe2eed072`.
    - Existing route, signal, Server and HTTP App Go package checks passed, including the #536 regression and capacity subtree cases.
    - The standard local Linux amd64 candidate from this revision passed archive/manifest/hash checks and actual execution on the owned Linux VM: configuration checks, health, served Web source identity, two create/authenticate/abandon cycles, and graceful shutdown. This was an explicitly identified development candidate; final v2.6.2 packages remain the release pipeline's output.
    - Actual maintenance-branch component previews confirmed resolution input DOM identity/focus after external updates and headset visibility in both themes, including mute/deafen states.
    
    No native platform matrix was rerun for these changes.
    
    ## Impact
    
    Browser/server v24, Native control v10, capture v7 and SQLite schema 2 are unchanged. Deployment uses the existing atomic wrapper and scoped postflight; it does not change proxy, firewall or persistence configuration.
  • fix(release): resume pending mirrors from original artifacts
    ## Problem and outcome / 问题与结果
    
    An otherwise published release could leave its AtomGit downloads incomplete when the platform had not yet synchronized its Git tag, or when a larger package exceeded the upload deadline. Recovery previously required a manual workflow run.
    
    The existing mirror workflow now checks every three hours and after CI completion. It only resumes the latest published release, locates its original CI artifacts, and retains the existing full-download checksum verification. Complete or deferred mirrors use a sparse tooling checkout and skip dependency installation and artifact downloads. Git synchronization remains entirely with AtomGit; publication waits for the matching synchronized commit and tag and never creates or changes Git references.
    
    Increase only the signed upload deadline from three to ten minutes, following the observed 51 MB APK timeout. Metadata/read timeouts, retry counts and the workflow's 30-minute limit remain unchanged.
    
    ## Verification / 验证
    
    - 58 focused mirror/publisher tests, TypeScript, documentation and diff checks passed.
    - Actual AtomGit readiness was checked against the v2.6.1 source and tag. Fixtures include the provider's four automatic source archives and distinguish them from uploaded packages.
    - The release planner returns `publish: false`. This workflow resumes existing verified packages and performs no software build.
    
    ## Impact / 影响
    
    Release automation only. Source synchronization belongs to AtomGit; Release and attachment completion belong to this workflow. Missing original artifacts or conflicting source identities remain explicit failures and never cause a published version to be rebuilt or overwritten.
  • fix(release): inspect the requested container platform
    ## Problem and outcome / 问题与结果
    
    When Docker retains both platforms for a multi-platform tag, an image inspection without a platform selects the host architecture. The v2.6.1 publisher consequently inspected AMD64 after pulling ARM64 and stopped before updating `latest`.
    
    Inspect the requested platform explicitly. The publisher test now models a store that retains both variants, so it catches this failure instead of assuming the last pull replaces the tag's architecture.
    
    ## Verification / 验证
    
    - The corrected model reproduced the failure before the change; all 17 publisher tests pass with the fix.
    - TypeScript and diff checks pass.
    - Independent registry checks verified both published v2.6.1 configurations, their source/package identities, and all referenced blobs. Recovery moved the existing index bytes to `latest` without rebuilding packages or replacing the version tag.
    
    ## Impact / 影响
    
    Publication tooling only. The release planner returns `publish: false`; this does not create another product version or change v2.6.1 artifacts.
  • fix(app): stabilize authorization and compact room controls
    ## Problem and outcome / 问题与结果
    
    App authorization could stay busy after a stalled save, a pending microphone request could survive a capture-source handoff, and compact room controls could lose focus, position or readable names. This maintenance phase corrects those owners and makes connection help easier to find.
    
    ## Verification / 验证
    
    Validation: the exact candidate tree passed all 1,943 Web tests and documentation checks. Its unchanged product source has passed TypeScript and a production Web build. Controlled UI checks cover delayed microphone permission, stalled approval responses, keyboard viewport changes, rapid floating-panel hide/show and narrow nickname layouts. Published 2.x wire, native control and storage contracts are unchanged.
    
    ## Impact / 影响
    
    Compatible 2.x maintenance release. Existing App, site and persisted room contracts are retained. Matching packages, download mirrors and both managed sites are verified through the normal release workflow.
    
    ## Release notes
    
    **Piik, now in your pocket.**
    
    Piik App supports Android screen sharing, with touch controls for a friend's computer.
    
    **手机,也能开播。**
    
    Piik App 支持 Android 屏幕分享,也能用手机控制朋友的电脑。
    
    ### English
    
    This maintenance update improves App authorization, capture-source switching and controls on smaller screens.
    
    - Fix commentary controls remaining busy after switching from Browser capture to the App.
    - Let App site approval recover from a stalled save, keeping access already granted.
    - Preserve numeric-input focus when the mobile keyboard resizes the page, and provide increase/decrease buttons. Keep interaction windows at their remembered position after rapid hide/show actions.
    - Give nicknames readable space on smaller screens, while retaining edit controls and accessible labels. Keep launcher diagnostics inside the shared Help menu.
    - Make room-connection help easier to find, and clarify Safari screen-sharing and sound support.
    - Complete package mirroring after a later CI publication step fails, and verify managed-service deployments against the intended source revision.
    
    This maintenance update preserves the established 2.x room, invitation, media,
    App-control and storage contracts. Refresh a site's open pages after it is
    updated. App-local users need the updated App bundle to receive its included
    Web fixes. Existing compatible 2.x App/site workflows remain supported.
    
    ### 中文
    
    本次维护更新改善 App 授权、切换分享源和小屏操作。
    
    - 修复浏览器切换为 App 采集后,分享麦克风控制一直处于忙碌状态的问题。
    - App 站点授权不再因保存卡住而一直转圈;可以重试,已批准的授权也会保留。
    - 手机键盘改变页面尺寸时保留数字输入焦点,并提供增减按钮;互动窗口快速隐藏再打开后保留记忆位置。
    - 小屏上为昵称保留可读空间,同时保留编辑入口与无障碍名称;启动页诊断统一收进帮助菜单。
    - 更容易找到房间连接问题的排查入口,并说明 Safari 屏幕分享与声音的支持情况。
    - 发布流程后续步骤失败时,仍可补全已经发布的程序包镜像;部署核验明确比对预期源码版本。
    
    本维护更新保留既有 2.x 房间、邀请、媒体、App 控制与存储契约。
    站点更新后请刷新已打开的网页;App 本地使用者需更新程序包,才能使用其中的新网页修复。
    已有兼容的 2.x App/站点使用方式继续支持。
  • fix(ops): verify the expected revision on managed services (#528)
    The Demo and managed private service were still serving older releases after v2.6.0 packages and the website had been published. A healthy response alone did not detect the missed service cutover.
    
    Add an optional `server-check --revision FULL_SOURCE_SHA` to verify the actual running package against the release descriptor, and make both managed-service postflight checks explicit in the deployment runbook. Existing health-only checks remain available. This changes operator tooling and documentation only; it does not publish another product version.
    
    Validation: both managed services pass with the v2.6.0 source revision; a check against the previous Demo revision exits with failure. JavaScript syntax, diff, documentation and repository hygiene checks pass. Both sites have separately been deployed using the original v2.6.0 artifacts.
  • fix(ci): inspect raw OCI indexes when publishing containers (#527)
    `docker manifest inspect` reconstructs an image index and drops descriptor annotations. The v2.6.0 registry index correctly marks its BuildKit attestation, but the transformed CLI output loses that marker and the publisher counts `unknown/unknown` as another runnable platform.
    
    Read the original index with `docker buildx imagetools inspect --raw`. Keep the explicit attestation filter, exact runnable-platform set and image/source/archive checks. Treat only an exact missing-reference error as absence; permission, network and missing-blob errors still stop publication.
    
    The regression now distinguishes the old CLI's annotation loss from the raw index response. Container/package publisher and mirror-source checks pass (65 tests), including new/retained attestation indexes, unmarked unknown platforms and lookup failures.
    
    The actual v2.6.0 index and both image configs were read anonymously. Their version, source SHA and Server archive digests match the published release. The original index bytes were used to finish the `latest` alias; the version tag, images and release attachments were not rebuilt or replaced. This is a publishing-tool correction and does not create another product version.
    
    Primary references: [Docker CLI descriptor reconstruction](https://github.com/docker/cli/blob/master/cli/command/manifest/push.go#L132), [Buildx raw inspection](https://docs.docker.com/reference/cli/docker/buildx/imagetools/inspect/).
  • fix(preview): narrow the popover target before opening settings (#526)
    The automatic relay-settings preview treats a button's popover target as a generic Element, so the release TypeScript check rejects the call to showPopover. Narrow the actual target to HTMLElement before opening it. This changes only the development preview's automatic opening behavior.
    
    Validation: the complete local Web type check, all 1,936 tests and the production build pass. The live room and personal relay controls keep their previously accepted implementation. v2.6.0 remains unpublished; this corrects the release-blocking preview compilation error.
    
    ## Release notes
    
    **Piik, now in your pocket.**
    
    Piik App supports Android screen sharing, with touch controls for a friend's computer.
    
    **手机,也能开播。**
    
    Piik App 支持 Android 屏幕分享,也能用手机控制朋友的电脑。
    
    ### Developer previews / 开发预览
    
    - Open the room and viewer relay-setting previews directly with their controls expanded.
    - 房间与观众的转发设置预览支持直接展开,方便检查控件。
  • fix(deps): update compress to resolve GO-2026-6865 (#525)
    The v2.6.0 release check stopped on GO-2026-6865 in klauspost/compress v1.20.1 before any packages were published. Update only this dependency to the upstream v1.20.2 patch. Piik uses the module through its existing HTTP asset compression wrapper.
    
    The upstream advisory describes a panic when decoding a crafted two-block zstd frame: https://github.com/klauspost/compress/security/advisories/GHSA-fpmh-frq8-7rj8 . This change takes the upstream repair without changing Piik's compression or media policy.
    
    Validation: the Linux amd64 App/Server reachable-vulnerability scan reports zero affected vulnerabilities; existing HTTP/Web asset and Server App tests pass. The diff is limited to go.mod and its generated checksums. This unblocks the already approved v2.6.0 release; it does not create a second release version.
    
    ## Release notes
    
    **Piik, now in your pocket.**
    
    Piik App supports Android screen sharing, with touch controls for a friend's computer.
    
    **手机,也能开播。**
    
    Piik App 支持 Android 屏幕分享,也能用手机控制朋友的电脑。
    
    ### Security / 安全更新
    
    - Update the compression library to include the upstream fix for GO-2026-6865.
    - 更新压缩库,纳入上游对 GO-2026-6865 的修复。
  • feat: tune relay limits and improve sharing recovery (#524)
    Room defaults and personal relay limits now use the existing route controller. Hosts can set the room default; viewers can follow it or select a lower or higher personal limit, including zero. Lowering a limit uses the existing handoff, and retired connection attempts no longer consume a later viewer's opportunity.
    
    The candidate also preserves native sharing when its local preview fails, prefers a preview-compatible codec in Auto mode when the App supports it, and improves terminal shutdown, input failure feedback and attached-menu positioning.
    
    Validation: Web type checks, 1,936 frontend tests and the production Web build pass. Server, routing, Native host and media-edge tests and vet pass. Real three-viewer browser checks cover default/override synchronization, receive-only, signaling reconnect, downscaling to a chain and automatic recovery after increasing an exhausted route's limit. Narrow-screen, theme and visual-mode control previews were inspected.
    
    Current field investigations remain open: the niri-specific capture failure (#499), the Windows input-refusal trigger (#502), the UU title-only load report and the older capture/source-cadence reports. These are not claimed fixed by this release.
    
    ## Release notes
    
    **Piik, now in your pocket.**
    
    Piik App supports Android screen sharing, with touch controls for a friend's computer.
    
    **手机,也能开播。**
    
    Piik App 支持 Android 屏幕分享,也能用手机控制朋友的电脑。
    
    ### English
    
    - Set a room-wide default relay limit. Viewers can follow it or set their own higher or lower limit; zero receives without forwarding. Limits still follow each device's capability, and route selection remains automatic.
    - Improve connection recovery when viewers join during route preparation or a peer connection is rebuilt. Canceled connection attempts no longer prevent later retries, and rebuilt routes require fresh media before showing as ready.
    - Keep native sharing active when the host's local preview cannot play. Automatic selection prefers a codec the browser can preview when the App supports it, and restoring a preview preserves its playback state.
    - Improve App shutdown when its terminal closes and complete macOS permission descriptions.
    - Retain useful remote-input failure feedback while pending key releases clear. Fix attached-menu scroll jumps, invisible tooltips intercepting clicks and volume guidance when source sound is unavailable.
    
    This update preserves the existing 2.x compatibility baseline. The new relay settings require an updated site; older pages retain their previous relay behavior.
    
    ### 中文
    
    - 房主可以设置房间默认转发上限。观众可跟随默认,也可自行调高或调低;设为 0 时只接收、不转发。实际额度仍受设备能力约束,线路继续自动安排。
    - 改善观众在建立线路期间加入,以及连接重建后的恢复。取消连接尝试后,后续连接仍可正常重试;重建后的线路收到新画面才会显示就绪。
    - 房主本地预览无法播放时,原生分享继续。App 支持时,自动选择优先采用浏览器可预览的编码,恢复预览时保留原有播放状态。
    - 改善终端关闭时 App 的退出流程,补齐 macOS 权限用途说明。
    - 释放待处理按键期间保留远控失败提示;修复附属菜单导致的滚动跳动、不可见提示拦截点击,以及没有分享声音时的音量说明。
    
    本次更新保持现有 2.x 兼容约定。新的转发设置需要更新站点,旧页面保留原有转发行为。
  • fix(ci): recognize BuildKit attestation manifests (#522)
    BuildKit can attach a provenance manifest with an `unknown/unknown` platform to a valid multi-platform image. Counting that attestation as a runnable platform stopped the v2.5.3 publishing job after its packages and versioned container had already been uploaded.
    
    Recognize the documented `vnd.docker.reference.type=attestation-manifest` descriptor when comparing runnable platforms. Keep the exact Linux platform set, image identity and archive digest checks. This changes publishing tooling only; v2.5.3 packages and versioned images remain unchanged.
    
    Validation: the existing publisher regression reproduces the failure for both newly created and retained indexes before the fix and passes afterward. Unmarked unknown platforms still fail. All 69 container, package publisher, mirror-source and release-planner checks pass. The actual registry index was read anonymously; both platform configs match the published source/version/archive digests. Its original bytes were reused to finish the `latest` alias.
    
    Format reference: [Docker image attestation storage](https://docs.docker.com/build/metadata/attestations/attestation-storage/).
  • fix(media): stabilize native sharing and relay recovery (#521)
    Windows native sharing could end when a refresh frame carried an older timestamp. Concurrent route preparation, source changes and upstream reconnection could also disturb an already committed relay path. This maintenance phase fixes those owners and improves large-frame reception, App return handling and update visibility.
    
    The existing 2.x wire and storage contracts are unchanged. The App update indicator uses the approved App's build identity and shares the launcher's release check and download component.
    
    Validation: `npm run check`, `node scripts/check-go.mjs --all`, repository hygiene, and the existing controlled three-viewer H.264 routing/recovery and App-return checks. The [cross-platform v2.5.3 candidate build](https://github.com/TNTcraftHIM/Piik/actions/runs/41716820555) passes all six App and three Server packages. Its only follow-up changes align the App card and retain the version label's accessible text in visual mode; those changes pass type checks, focused tests and desktop/mobile browser checks in both themes.
    
    Refs #519.
    
    ## Release notes
    
    **Piik, now in your pocket.**
    
    Piik App supports Android screen sharing, with touch controls for a friend's computer.
    
    **手机,也能开播。**
    
    Piik App 支持 Android 屏幕分享,也能用手机控制朋友的电脑。
    
    ### English
    
    Piik v2.5.3 improves Windows native sharing, relay recovery and App update notices. It preserves the existing 2.x compatibility baseline.
    
    - Fix backward refresh-frame timestamps that could end Windows native sharing, and improve H.264 compatibility for small native outputs.
    - Preserve committed routes and relay children during upstream reconnection, overlapping route preparation and source changes.
    - Reduce large-frame UDP burst loss, keep quality comparisons within their route deadline, and release retired media-statistics work promptly.
    - Show App updates from the connected page as well as the launcher. Refresh App identity after returning to the browser and allow local-network permission prompts to finish.
    - Use AtomGit for the download mirror and show a clear startup error when page controls cannot load.
    
    Update the App and self-hosted Server to receive all fixes, then refresh open pages. Existing room data and browser settings are retained.
    
    ### 中文
    
    Piik v2.5.3 改善 Windows 原生分享、转发线路恢复和 App 更新提醒,沿用现有 2.x 兼容基线。
    
    - 修复补帧时间戳倒退导致 Windows 原生分享结束的问题,改善小尺寸原生画面的 H.264 兼容性。
    - 上游重连、线路准备重叠或分享源变化时,保留已生效的线路和下游转发。
    - 减少大画面帧突发传输时的 UDP 丢包,让画质比较遵守当前线路时限,并及时释放已退出的媒体统计任务。
    - 在已联动网页和启动页显示 App 更新提醒;返回浏览器后刷新 App 信息,并允许本地网络权限提示完成。
    - 下载镜像改用 AtomGit;页面控件加载失败时显示清晰的错误提示。
    
    请更新 App 和自部署 Server,以获得全部修复,随后刷新已打开的页面。已有房间数据与浏览器设置保留。
  • chore(site): keep project feedback on GitHub (#517)
    The website sent project navigation to AtomGit alongside GitHub. Remove
    the AtomGit project button so source code and issue feedback
    consistently lead to GitHub; AtomGit remains available through the
    existing package download links.
    
    Validation: normal website build, built homepage link inspection, 6
    release-automation tests, documentation and repository hygiene checks
    passed. The actual release plan is development with publish:false; no
    App/Server version or release notes changed.
  • chore(release): move the domestic mirror to AtomGit (#516)
    Domestic downloads and the project mirror now use AtomGit at TNTcraftHIM/Piik. The publisher uploads the original GitHub CI artifacts, verifies anonymous downloads against their SHA-256 digests, and promotes the complete release to latest.
    
    The website offers direct Android APK downloads and updates its desktop architecture links, project link and current documentation. The AtomGit workflow replaces the Gitee publisher. Published App and Server versions remain v2.5.2; their built-in update-source changes are prepared separately on the maintenance and 3.0 branches.
    
    Validation:
    
    - Mirrored and anonymously verified all 10 original v2.5.2 assets (330,802,847 bytes), including the APK.
    - Full frontend check and website build passed; publisher failure, resume and credential-redaction checks passed.
    - Actual release plan reports publish:false, including the retired workflow deletion and mobile documentation changes.
    - Reviewed the bilingual download UI and verified the six App download targets and architecture switches.
  • fix(media): improve sharing recovery and mobile picture controls
    Windows capture-device errors could end an otherwise recoverable share, and reused Browser frames could arrive with the wrong orientation on receivers without the same orientation extension. Recover through the existing capture generation, start new encoded generations with an independent frame, and normalize orientation before shared encoding.
    
    The maintenance scope also keeps compact headers aligned, cycles local rotation through four directions, accepts late coordinated UDP replies, requests Browser own-audio exclusion, and improves capture/input diagnostics. It preserves the published 2.x protocol and storage contracts.
    
    Validation: 106 test files / 1878 tests, TypeScript, production Web/website builds, Windows Go core tests/vet and supported cross-builds passed. Candidate CI passed all 3 Server and 6 App targets, including native macOS builds, plus vulnerability and race checks. Controlled WGC/Pion recovery, retained-clock/first-frame checks, Browser orientation/SFU playback and responsive-header checks passed. The downloaded candidate set passed the existing publication dry-run: all 9 targets and 10 distribution packages share v2.5.2 and source 916baefa05, with matching checksums.
    
    Original-device investigations remain open, including #502 and the reported low source frame rate. This PR does not claim those reports are resolved.
    
    ## Release notes
    
    **Piik, now in your pocket.**
    
    Piik App supports Android screen sharing, with touch controls for a friend's computer.
    
    **手机,也能开播。**
    
    Piik App 支持 Android 屏幕分享,也能用手机控制朋友的电脑。
    
    ### English
    
    Piik v2.5.2 improves sharing recovery, picture orientation and mobile controls. It keeps the existing 2.x compatibility baseline.
    
    - Improve Windows sharing recovery after graphics-device errors, and resume new encoder generations with a decodable picture.
    - Preserve rotated and mirrored pictures when Browser encoding is shared across receivers, including SFU routes.
    - Rotate the local picture in 90° steps; keep mobile header controls aligned and its connection indicator visible.
    - Improve P2P establishment when coordinated UDP replies arrive late.
    - Ask compatible browsers to exclude Piik's own playback from screen audio, and improve native capture and remote-input diagnostics.
    
    Update the App and self-hosted site together to receive all fixes, then refresh open pages. Browser settings and existing room data are retained.
    
    ### 中文
    
    Piik v2.5.2 改善分享恢复、画面方向与手机操作,沿用现有 2.x 兼容基线。
    
    - 改善 Windows 图形设备异常后的分享恢复,新编码器接替时从可正常解码的画面开始。
    - 修正浏览器共享编码时旋转或镜像画面的方向,覆盖 SFU 等接收线路。
    - 本机画面每次旋转 90°;手机顶部工具栏保持对齐,连接状态清晰可见。
    - 改善协同打洞时 UDP 回复较晚到达的 P2P 建连。
    - 向支持的浏览器请求排除 Piik 页面自身播放的声音,并完善原生采集与远控输入的诊断信息。
    
    请一起更新 App 与自部署站点,以获得全部修复,随后刷新已打开的页面。浏览器设置与已有房间数据保留。
  • fix(media): restore pacing in the publication recovery fixture (#514)
    ## Problem and outcome
    
    The release CI failed while checking inactive simulcast output. The fixture injects a 1 kbps congestion event, which also slows the packet pacer. Its manual recovery restores the bandwidth target and allocator to 1 Mbps, but leaves that pacer at 1 kbps. Restore all three together, as the production probe-finalization path already does. No production behavior or timeout changes.
    
    ## Release notes
    
    **Piik, now in your pocket.**
    
    Piik App supports Android screen sharing, with touch controls for a friend's computer.
    
    **手机,也能开播。**
    
    Piik App 支持 Android 屏幕分享,也能用手机控制朋友的电脑。
    
    ### English
    
    Make the SFU recovery check use its restored sending budget.
    
    ### 中文
    
    修正 SFU 恢复测试的发包预算,避免误报画面停顿。
    
    ## Verification
    
    - Linux: focused real-PeerConnection test with `-race -count=3` passed; full `internal/media/forwarding` package with `-race -count=1` passed.
    - The unmodified local baseline also passed three times; the failure was observed in official CI run 41239517601. The fixture mismatch is directly confirmed in the producer and pacer owners.
    - Production forwarding sources and pinned dependencies match the previously accepted source. No timeouts widened or checks disabled.
    - Go formatting, whitespace and documentation checks passed.
    
    ## Impact
    
    One test-fixture line; no shipped runtime, protocol, dependency, platform or compatibility change. The unpublished v2.5.1 remains the planned version.
  • fix(media): stabilize sharing recovery and remote input (#513)
    ## Problem and outcome
    
    Connection recovery and packet repair could leave stale pictures, missing sound or unreliable remote input. This maintenance release repairs media/route ownership, H.264 negotiation, voice forwarding and Windows input recovery, and makes shared mobile controls and popovers easier to use.
    
    ## Release notes
    **Piik, now in your pocket.**
    
    Piik App supports Android screen sharing, with touch controls for a friend's computer.
    
    **手机,也能开播。**
    
    Piik App 支持 Android 屏幕分享,也能用手机控制朋友的电脑。
    
    ### English
    
    Piik v2.5.1 improves sharing recovery, voice playback and remote control, with clearer mobile controls. It keeps the existing 2.x compatibility baseline.
    
    - Improve H.264 selection and picture recovery after reconnecting, changing sources or recovering lost packets; keep a working share when a replacement source fails.
    - Keep audio and room voice continuous, and prevent duplicate sound when switching playback windows.
    - Improve Windows input recovery and release remote-control permissions when their connection ends.
    - Keep mobile controls together and popovers usable after layout changes or in short viewports.
    - Open the appropriate Android update download, including the Gitee ZIP containing the APK. Self-hosted SFU servers refresh public addresses for new connections without a restart.
    - Add macOS source-thumbnail support.
    
    Update the App and self-hosted site together to receive all fixes. Browser settings and existing room data are retained.
    
    ### 中文
    
    Piik v2.5.1 改善分享恢复、语音播放与远程控制的稳定性,让手机操作更顺手,沿用现有 2.x 兼容基线。
    
    - 改善 H.264 编码选择,以及重连、切换分享源和丢包后的画面恢复;新分享源切换失败时保留正常分享。
    - 保持声音与房间语音连续,避免切换播放窗口时出现双重声音。
    - 改善 Windows 输入恢复,并在连接结束时释放远程控制授权。
    - 手机控件保持成组,浮层在布局变化或可见高度较小时仍可操作。
    - Android 更新打开对应下载入口,Gitee 提供内含 APK 的 ZIP;自部署 SFU 为新连接刷新公网地址,无需重启服务。
    - 补齐 macOS 选源缩略图支持。
    
    请一起更新 App 与自部署站点,以获得全部修复。浏览器设置与已有房间数据保留。
    ## Validation
    
    - Full frontend typecheck, test and production-build acceptance; current Windows App/Server packaging, extracted-file checks and exact served JavaScript verified locally.
    - Existing Go, vulnerability, native media and controlled-network results retained at their tested revisions. The final production delta from the fully checked candidate is the shared short-viewport popover correction.
    - The diagnostic report supplied for #502 informed the Windows input fixes. #500 sharing is confirmed working; its missing source previews are implemented. Original-device follow-up remains separate from this release's verified local fixes.
    
    ## Compatibility and scope
    
    Preserves the published 2.x Browser/server, Native control, capture and SQLite contracts. No 3.0 or iOS implementation or external contributor patch is included. Related: #500, #502, #510, #512.
  • fix(website): clarify Android mirror downloads and platform icons (#508)
    ## Problem and outcome / 问题与结果
    
    The Android mirror download now points to a ZIP that users extract before installing the APK. GitHub keeps the direct APK download. The existing v2.5.0 signed APK is unchanged inside the additional ZIP attachment.
    
    Use the approved platform icon set in the website's existing download cards, retain the Linux icon, and add Android artwork attribution and platform-name notices. Both getting-started guides explain the mirror's extraction step. Website previews now explicitly use the built output so shared language and theme controls are present.
    
    ## Verification / 验证
    
    - `npm run build:website`, `npm run check`, repository hygiene and `git diff --check` passed.
    - Reviewed the download cards in English and Chinese, light and dark themes, and desktop and mobile layouts. Checked language and theme switching on the built website.
    - Verified the ZIP checksum and its inner APK against the original v2.5.0 release.
    - `node scripts/release-version.mjs plan` returns `publish: false`.
    
    ## Impact / 影响
    
    Website and documentation deployment only. No new App or Server version; no application, protocol or storage changes. The added ZIP contains the original signed APK, and existing release files remain available.
  • feat(app): bring Android sharing and touch control into the shared runtime (#504)
    ## Problem and outcome / 问题与结果
    
    Bring Android into Piik's shared App workflow and make phone control usable without a separate Web UI. One signed APK covers ARM64 and x64; screen capture, room authority, routing, voice and site approval reuse the existing Go and Browser owners. Android opens the user's system browser rather than shipping an embedded browser.
    
    This phase also fixes capture replacement and encoding-clock failures, improves source-audio startup, contains recoverable input and transport failures, adds a bounded relay-volunteer setting and supports hostnames in `SFU_PUBLIC_IP`. The website separates desktop and mobile downloads, gives iOS users an online entry and aligns the bilingual installation guides.
    
    Related reports: #495, #499, #500, #501, #502 and #503. For #502, input execution failures now preserve authorization, and temporary target observations suspend rather than revoke it; the original Windows report remains open for candidate feedback.
    
    ## Release notes
    
    **Piik, now in your pocket.**
    
    Piik App now supports Android screen sharing, with touch controls for a friend's computer.
    
    **手机,也能开播。**
    
    Piik App 现已支持 Android 屏幕分享,也能用手机控制朋友的电脑。
    
    ### English
    
    Piik v2.5.0 brings the App to Android and improves capture reliability, touch control and everyday startup. The existing 2.x compatibility baseline is unchanged.
    
    - **Android App:** share your screen, join room voice or control a supported computer. One APK supports ARM64 and x64, using your own browser and the same Piik interface.
    - **Phone controls:** use direct touch or a compact floating mouse with dragging, left/right buttons and a scroll wheel. Pinch to zoom and pan the picture while controlling.
    - **More reliable sharing:** keep video progressing through source and encoder-output changes, and improve low-bitrate recovery and stationary-screen keyframes. Correct Windows window-size handling and Linux NVENC settings; start optional source sound after video is ready.
    - **Smoother App entry:** retry failed startup in place, reopen the running room and retain the correct App connection when returning from the browser. Compress shared page assets to reduce loading traffic and keep microphone choices stable during ordinary page updates.
    - **Recovery stays local:** a rejected input or canceled source replacement no longer revokes remote-control permission. Full ICE candidate queues and failed audio-parameter updates retain healthy connections. A failed local room leaves the App and unrelated approved sites running.
    - **Connection settings:** relay volunteers can cap their downstream viewers. Self-hosted SFU setups can use a DNS hostname in `SFU_PUBLIC_IP`.
    - **Clearer help:** refine sharing-error guidance, preserve input-failure diagnostics without recording input content, and update the bilingual platform and network guides.
    
    Update both the App and your self-hosted site to use the new features. Android can control a supported computer; the Android device itself is not a controlled endpoint.
    
    If you previously installed a test APK, uninstall it once before installing this release: the official signing key is different. Uninstalling clears App-local site approvals and starred-site choices; browser settings remain in the browser. Later official releases can be installed over this one.
    
    ### 中文
    
    Piik v2.5.0 带来 Android App,并改善采集稳定性、手机远控与日常启动体验。沿用现有 2.x 兼容基线。
    
    - **Android App:** 分享手机画面、加入房间语音,或控制支持远控的电脑。一个安装包同时支持 ARM64 与 x64,使用自己的浏览器和熟悉的 Piik 界面。
    - **手机远控:** 直接触摸操作,或展开小巧的悬浮鼠标,使用拖拽、左右键与滚轮;控制时也能双指缩放、移动画面。
    - **分享更稳定:** 修复切换采集来源、编码输出时画面停止推进的问题,改善低码率恢复与静止画面的关键帧响应。修正 Windows 窗口尺寸处理和 Linux NVENC 设置,来源声音会在画面就绪后启动。
    - **App 进出更顺畅:** 启动失败可原地重试,再次打开会回到正在运行的房间;从浏览器返回时保持连接到正确的 App。共用页面资源启用压缩,减少加载流量,麦克风选项不再随普通页面更新反复加载。
    - **局部问题就地恢复:** 单次操作失败或取消换源不再撤销远控授权;ICE 候选队列满或音频参数调整失败时保留健康连接。本地房间故障不会连带停止 App 和其他已授权站点的分享。
    - **连接设置:** 帮助转发的观众可设置承接人数上限;自部署 SFU 的 `SFU_PUBLIC_IP` 现在支持 DNS 主机名。
    - **排查更直接:** 打磨分享失败提示,补充不记录输入内容的远控故障诊断,并更新中英文平台说明与网络指南。
    
    使用新功能时,请一起更新 App 与自部署站点。Android 可作为控制端操作电脑,手机本身不作为被控端。
    
    曾安装测试 APK 的用户需先卸载一次,再安装正式版,两者签名不同。卸载会清除 App 内的站点授权和收藏,浏览器设置仍保留在浏览器中;后续正式版可直接覆盖安装。
    
    ## Verification / 验证
    
    - Local full Web/type/build checks passed: 104 test files, 1,848 tests; the website and documentation builds passed.
    - Android full-App emulator acceptance covered real decoded screen sharing, concurrent 1080p/540p encoder allocation, live bitrate changes, stationary keyframes, Viewer departure, consent reuse/reentry and final capture-resource retirement.
    - A local universal release APK passed signing, package identity, version-code, ABI and non-debuggable checks using the permanent release key. GitHub Actions receives the same key through encrypted Secrets; manual candidate runs use a disposable candidate signer.
    - Windows real capture checks covered H264/VP8 window resizing and restoration. Source-audio startup and failure/close ordering passed focused runtime checks; Linux race checks passed.
    - Desktop/mobile website layouts were reviewed in English and Chinese, both themes, including grouped downloads, the iOS online entry and self-hosting links.
    - All three Server and six App candidate targets, including the signed Android universal APK, passed in https://github.com/TNTcraftHIM/Piik/actions/runs/40350004792. This uses the same release packaging path with publication disabled.
    - The complete network laboratory passed in https://github.com/TNTcraftHIM/Piik/actions/runs/40354253735: 43 expected scenario outcomes (37 media connections, six expected-unavailable controls), six negative controls, and complete process/network cleanup.
    - Recoverable-error checks cover real encrypted input replies and legacy opt-in, retained grants and held-key cleanup, real Windows target geometry recovery, candidate queue overflow, and audio-parameter retry on the existing edge. Android room failure and full shutdown use real launcher, control WebSocket and supervised-process checks; unrelated site resources remain intact.
    - The lifecycle fixes at `7eb04de373567cfe7aff2db6c93adf2a38e0b1aa` passed all nine package targets and Go/vulnerability/race/Web checks in https://github.com/TNTcraftHIM/Piik/actions/runs/40362794088, including macOS x64/ARM64 cgo and Android. Publication was skipped.
    - Final cross-review found and fixed the same candidate-overflow false failure in the SFU voice owner. Its real-Pion regression verifies the first 64 candidates remain queued, a valid answer drains them, and renegotiation succeeds. Independent reviews confirmed real SDP and authorization failures still propagate.
    - A real-browser before/after check reduced microphone enumeration from nine calls to one across eight ordinary Host rerenders. Changing the native client or switching to Browser capture still enumerates the new devices. The separate focused contribution #507 preserves input focus during queued floating-panel opening and is not attributed to this phase.
    - The verified Windows candidate and reproduction steps have been updated in #502. macOS/Linux physical-device coverage and iOS device acceptance keep their documented boundaries.
    
    ## Impact / 影响
    
    - Planned release: **v2.5.0**; no public wire or storage version bump.
    - Android is a sharing and controlling endpoint, not a remotely controlled Android device. iOS is held outside this release.
    - New Android release target joins the existing complete-target, checksum, GitHub and Gitee artifact pipeline. Signing material stays outside Git; optional input SDKs/drivers are not bundled.
    - The owner authorized closure and publication after the final design review and acceptance checks. Restore the publication gate after the held focused contribution and merge this complete phase once; CI publishes only after its full checks and registered packages pass.
    - Current TODO, platform guidance, media/routing evidence and release operations retain their existing document owners; no additional audit ledger or changelog archive is introduced.
  • fix(ui): preserve input focus when opening floating tools (#507)
    Opening a floating panel can deliver its queued `toggle` event after a user has already focused a text input inside it. The shell then steals focus, leaving a visible phone keyboard that cannot type into chat. Preserve focus already inside the panel while retaining the existing no-keyboard behavior when opening just to read.
    
    This extracts only the focused fix from #505 by TNTInMinecraft. Voice-output selection remains in that PR for separate review.
    
    ## Release notes
    
    ### English
    
    - Fix floating room tools taking focus away from chat or remote text input immediately after opening, including Android Chrome and Edge.
    
    ### 中文
    
    - 修复打开房间浮窗后焦点被抢走、聊天或远程文字输入无法正常输入的问题,包括 Android Chrome 和 Edge。
    
    ## Verification
    
    Reproduced in Chromium using the production floating-panel component: input has focus before the queued toggle, then loses focus to the shell. With the change, input keeps focus; opening without an input selection still focuses the shell and does not summon the keyboard.
    
    The patch contains only the original contributor's three-line change. No room, transport, storage or wire changes.
    
    Co-authored-by: TNTInMinecraft <hedusong@163.com>
  • fix(media): improve connection recovery and capture compatibility (#498)
    ## Problem and outcome
    
    Stale ICE and transport callbacks, interrupted media ownership, and optional encoder capabilities could break otherwise recoverable sharing sessions. This maintenance phase corrects those owners across Web, Native and embedded SFU, improves current-state diagnostics, and finishes the affected UI and documentation animation paths.
    
    Android, QR invitations and App/Server headline presentation stay on their feature branch. This PR contains the accepted maintenance scope only.
    
    ## Release notes
    
    **Play together. Your turn!**
    
    Approved friends can play together with shared keyboard and mouse controls or optional gamepads.
    
    **远程同乐,轮到你啦!**
    
    获准的朋友可以共用键鼠,或使用可选手柄,一起玩本地多人游戏。
    
    ### English
    
    This maintenance update improves connection recovery, capture compatibility and troubleshooting for existing Piik rooms.
    
    - Keep ICE candidates and gathering completion tied to their current connection. Preserve Viewer route preferences through reconnection and retry newly available Peer opportunities after SFU fallback.
    - Correct picture and voice ownership during restart, source replacement and connection retirement. Report failed picture dependencies while keeping room voice available.
    - Separate capture and forwarding statistics and isolate pooled sender attachment failures.
    - Improve Windows H.264 compatibility with optional encoder properties, retain safe capture failure codes, and keep shared sound volume usable without microphone support.
    - Improve remote input continuity and mouse responsiveness after idle.
    - Fix fullscreen handling in some mobile browsers, source-picker refresh, delayed chat confirmations, starred-site startup and local App requests. Refine control motion and reduced-motion behavior.
    - Restore the mascot's face and shared animation lifecycle in the documentation header.
    - Include current connection and playback state in diagnostic exports, update Zod to 4.6.6 and simplify shared lifecycle code.
    
    Existing 2.x protocols, configuration and default quality settings are preserved.
    
    ### 中文
    
    本次维护更新改善现有房间的连接恢复、采集兼容性和故障诊断。
    
    - ICE 候选和收集结束事件跟随当前连接;重连保留观众线路偏好,SFU 兜底后出现新的可用 P2P 机会仍可尝试。
    - 修正重启、换源和连接结束时的画面与语音生命周期;语音继续时,画面失败会明确反馈。
    - 区分采集与转发统计,隔离编码池中单个输出连接的失败。
    - 改善 Windows H.264 可选属性兼容性,保留有效的采集失败原因;没有麦克风能力时也能调整共享声音音量。
    - 修复部分移动浏览器全屏、选源刷新、迟到聊天确认、收藏站点启动和本机 App 请求问题,打磨控件动效及减少动态效果行为。
    - 修复文档导航 mascot 面部一直隐藏的问题,接回共用动画生命周期。
    - 诊断导出补取当前连接与播放状态,升级 Zod 至 4.6.6,精简共用生命周期代码。
    
    沿用现有 2.x 协议、配置和画质默认值。Android、二维码邀请及 App/Server 新增的 HEADLINE 展示留待后续版本。
    
    ## Verification
    
    - `npm run check`: type-check, 98 test files / 1,765 tests, production Web build passed.
    - `npm run check:go-core`: Go formatting, tests, vet, Windows/Linux builds passed; Darwin builds require the native CI runners.
    - `npm run check:native`: current Windows capture compilation, fixtures and capability probe passed.
    - `npm run build:website`, TypeScript and repository hygiene checks passed after the documentation-brand fix.
    - Existing controlled media lifecycle and P2P/SFU voice acceptance covered the retained route/transport changes. Final local browser acceptance covered actual sharing and pause/resume, fullscreen, source refresh, voice/keyboard/settings, 320px to desktop layouts, both themes and all presentation modes. Documentation brand was reproduced broken, then verified on load, replay and reduced motion.
    - Independent scoped reviews found no integration blocker.
    
    ## Impact
    
    Patch release v2.4.1. Existing 2.x wire, configuration, authority, capacity and default quality contracts remain intact; no data migration. Source volume no longer depends on microphone availability. Zod 4.6.6 fixes GHSA-mrhx-c7xc-m3w5.
    
    The device-specific Windows reports #495 and #452 remain under investigation; this PR improves compatibility and diagnostics without claiming those reports fully resolved. Physical macOS acceptance remains with its native runner/device checks.
  • feat(room): add remote co-play and refresh the room experience (#497)
    ## Problem and outcome
    
    This phase adds consented remote co-play to normal App/Web rooms and integrates the accepted audio, playback, participant-state and multi-site improvements. It also rebuilds the bilingual README/documentation reading path, refreshes real-component illustrations, and publishes the selected website film.
    
    The candidate preserves the established 2.x sharing/viewing contracts. Optional new behavior follows negotiated capabilities; Windows gamepads use an externally installed driver. The separate accompaniment experiment and unselected film studies are outside this phase.
    
    ## Release notes
    
    **Play together. Your turn!**
    
    Approved friends can now play together with shared keyboard and mouse controls or optional gamepads.
    
    **远程同乐,轮到你啦!**
    
    获准的朋友现在可以共用键鼠,或使用可选手柄,一起玩本地多人游戏。
    
    ### English
    
    Piik 2.4 adds remote co-play, improves shared sound and room controls, and rewrites the bilingual getting-started and help guides around what you want to do.
    
    #### Highlights
    
    - Let approved friends control together. Each player's held keys and gamepad retire independently; everyone shares the Host's mouse pointer. On Windows x64, optional virtual gamepads use a Host-installed ViGEmBus driver. Piik does not bundle or install it.
    - Control shared output volume from the Host's playback bar. The optional share microphone adds your voice to the picture, independently of room voice; stopping the share leaves room voice running. Room voice now defaults to 64 kbps and offers a Host bitrate control.
    - See voice and remote-control participation directly on the couch. Connection details group picture and voice by receive/send direction. Playback actions, chat-overlay settings and dismissible operation feedback have clearer, consistent places.
    - Approve several Piik sites in App and manage each separately, with one optional startup favorite.
    - Follow rewritten English and Chinese README and documentation paths: watching, starting a share, room tools, remote control/co-play, and symptom-based help. Illustrated guides use current product components, theme-aware screenshots and shared diagrams. A dedicated network guide covers campus networks, media UDP, SFU sites and optional virtual LANs.
    - The website has clearer App and co-play FAQs and the selected bilingual 64-second film, with shared playback controls and a held closing card.
    
    #### Fixes
    
    - Tolerate small macOS capture-crop rounding errors without accepting genuinely invalid geometry.
    - Keep shared-audio and microphone volume changes independent, preserve commentary through source replacement, and retire each input at its owning lifecycle boundary.
    - Improve narrow-player controls, touch-held volume menus, tooltip placement and feedback cleanup after reconnection.
    - Repair the release recovery test on macOS and refresh the build and tunnel runtimes.
    
    #### Updating and limits
    
    Update the Host's App and the room site, then refresh open pages to use the new features. Established sharing and viewing remain compatible within 2.x; older peers retain the features they support. The wire versions and SQLite schema are unchanged. Restarting App or Server interrupts active sessions.
    
    Before downgrading App, remove extra approved sites in the newer launcher so at most one remains. Use the [remote-control guide](https://piik.tv/docs/remote-control.html?lang=en) for the optional Windows driver. Linux gamepads remain experimental; macOS virtual gamepads are not currently available. Windows 10 window-sharing black screens ([#495](https://github.com/TNTcraftHIM/Piik/issues/495)) remain under investigation; use screen sharing if affected.
    
    ### 中文
    
    Piik 2.4 新增多人远程同乐,改进分享声音与房间控制,并围绕实际任务重写双语上手教程和帮助文档。
    
    #### 主要更新
    
    - 允许获准的朋友同时控制。各人的按键持有和手柄独立释放,大家共用房主的鼠标指针。Windows x64 可使用房主自行安装的 ViGEmBus 驱动提供虚拟手柄;Piik 不捆绑或安装驱动。
    - 房主可通过播控调整分享输出音量。可选的分享麦克风把说话声加入画面,与房间语音独立;停播后房间语音继续。房间语音默认提升至 64 kbps,并提供房主码率设置。
    - 沙发人物直接呈现语音和远控参与状态;连接详情按画面/语音、接收/发送分组。播放操作、弹幕设置和可关闭的操作提示各有清楚、一致的位置。
    - App 可授权多个 Piik 站点,逐个管理,并选择一个启动时打开的星标站点。
    - 重写中英文 README 和文档中心:从观看、开始分享、房间工具、远控/同乐到按症状排障。图文教程使用当前正式组件、明暗主题截图与同源示意图;独立网络指南说明校园网、媒体 UDP、SFU 站点和可选虚拟局域网的用法。
    - 官网改进 App 与多人同乐 FAQ,采用选定的双语 64 秒短片,复用产品播控并保留结尾品牌卡。
    
    #### 修复
    
    - 容忍 macOS 采集裁剪中的微小舍入误差,仍拒绝真正无效的画面边界。
    - 分享总音量与麦克风音量分别更新;换源保留解说,各项输入按所属生命周期释放。
    - 改进窄屏播控、触摸长按音量菜单、提示定位,以及重连后的提示清理。
    - 修复 macOS 上发布恢复测试的可移植性,更新构建与公网隧道运行组件。
    
    #### 更新与限制
    
    将房主 App 和房间站点更新后,刷新已打开的页面,即可使用新功能。2.x 内保留已有分享与观看兼容性,旧端继续使用其支持的功能;协议版本和 SQLite schema 不变。重启 App 或 Server 会中断当前会话。
    
    如需降级 App,先在新版启动页删除额外授权,最多保留一个站点。可选的 Windows 驱动安装方法见[远控指南](https://piik.tv/docs/zh/remote-control.html)。Linux 手柄仍属实验能力,macOS 当前暂不提供虚拟手柄。Windows 10 窗口分享黑屏而整屏正常的反馈([#495](https://github.com/TNTcraftHIM/Piik/issues/495))仍在调查,本版不声称已修复。
    
    ## Verification
    
    - Integrated Web typecheck, 98 test files / 1,734 tests and production build passed. Later scoped UI repairs passed focused typecheck/tests and preview checks.
    - Focused Go checks cover input grant/held-state ownership, delayed device retirement, native control/Host, config/launcher/loopback, voice negotiation and source-volume binding. Windows capture compilation/probe and the isolated Linux uinput kernel gate passed.
    - Normal-page P2P (22 checks) and embedded-SFU (19 checks) gates passed. P2P explicitly exercised source commentary with room voice, independent shutdown, share retirement and the next share's default-off state; SFU also covers live voice bitrate and voice recovery.
    - Documentation links (108 Markdown files), generated-diagram freshness, the complete bilingual/theme screenshot pipeline and website production build passed. Website/readers were checked at 320, 768 and 1440 px with both languages/themes.
    - macOS crop logic retains geometric self-tests; this Windows environment did not repeat a macOS SDK/hardware run. Linux desktop/game recognition and macOS virtual-gamepad entitlement/runtime remain explicit limits.
    - Windows native window-sharing acceptance passed: Host/Viewer decoding, live and paused quality changes, resize/minimize/restore, source replacement, stop and restart. Capturing the Host Chrome window also passed with Auto/H.264 and VP8, including decoded-frame and pixel checks. The Windows 10 case in #495 was not reproduced and remains separate.
    - Current Go serializers passed the published v2.0.0/v2.3.0 TypeScript readers; existing native input opt-in checks passed. This checks payload compatibility, not an end-to-end run of old published clients.
    
    ## Impact
    
    Compatible 2.x feature release; Browser/server v24, Native control v10, capture v7 and SQLite schema 2 remain unchanged. New co-play, presence, voice settings and native volume behavior are capability-negotiated. Multi-site App settings retain the older single-site reader path; arbitrary binary downgrade is not promised. No independent room/router, new NAT policy, driver installer or separate accompaniment channel is introduced.
    
    ## Related work
    
    Includes the macOS crop correction reported in #492 and the macOS deployment-test portability contribution from #496. Supersedes the incomplete phase PR #494. #495 remains open.
    
    ## Attribution
    
    Co-authored-by: Yuqing Huang <670081066@qq.com>
    Co-authored-by: luol75569-collab <297886760+luol75569-collab@users.noreply.github.com>
  • chore(ops): make maintenance checks reusable
    Cloudflare could keep an older website entry point after Pages replaced its referenced assets. Record the corrected HTML cache boundary and add a reusable maintenance command for checking it, purging website entry points, and checking managed Linux Server health and running-package identity.
    
    Credentials and target details stay in ignored local env files. Server deployment continues to use the existing immutable-package and rollback workflow. The mirror-recovery example also includes the new Windows Server artifact.
    
    Validation: syntax and repository/documentation checks passed; website checks and scoped cache purge ran against the public hosts; Server checks passed against both managed deployments. This changes standalone maintenance tooling and documentation only, with no App/Server release.
814 changed files with 54976 additions and 10714 deletions

No files matched your search

+4 -10
View File
@@ -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
-16
View File
@@ -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),
不作为每次任务必读材料。
-1
View File
@@ -5,4 +5,3 @@ project_doc_max_bytes = 32768
[agents]
enabled = true
max_concurrent_threads_per_session = 3
+2 -1
View File
@@ -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
+5 -1
View File
@@ -20,4 +20,8 @@ about: Report a reproducible problem / 反馈可复现的问题
## Optional evidence / 可选证据
<!-- Screenshots or a local Debug export may help. Review artifacts before attaching; remove credentials and private content. 可附截图或本地 Debug 导出;分享前移除凭据与隐私内容。 -->
For App capture or remote-control failures, enable [App diagnostics](https://github.com/TNTcraftHIM/Piik/blob/main/cmd/piik-app/README.md#diagnostics) before reproducing and attach the exported ZIP.
App 选源或远控异常,请先开启 [App 诊断](https://github.com/TNTcraftHIM/Piik/blob/main/cmd/piik-app/README.zh-CN.md#诊断),复现后附上导出的 ZIP。
<!-- Screenshots may help. Review artifacts before attaching; remove credentials and private content. 可附截图;分享前移除凭据与隐私内容。 -->
+1 -1
View File
@@ -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 }}
+61 -3
View File
@@ -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
View File
@@ -1 +1 @@
24.19.0
24.22.3
+6 -1
View File
@@ -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.
+82 -9
View File
@@ -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
+16 -33
View File
@@ -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&amp;logo=docker&amp;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:
+13 -29
View File
@@ -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&amp;logo=docker&amp;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`,解压后运行:
+9
View File
@@ -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
+68 -53
View File
@@ -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
+55 -38
View File
@@ -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-分享失败)。
### 诊断
+3 -3
View File
@@ -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() {
+9 -6
View File
@@ -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 {
+3 -3
View File
@@ -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
}
+1 -1
View File
@@ -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)
}
+1 -1
View File
@@ -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
+17 -16
View File
@@ -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
+7 -4
View File
@@ -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
+10 -12
View File
@@ -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
+4 -3
View File
@@ -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.
Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

+89
View File
@@ -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

+89
View File
@@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

+89
View File
@@ -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 &amp; chat</text><text x="300" y="232" style="font-size:26px">Picture &amp; 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

+89
View File
@@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

+89
View File
@@ -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

+89
View File
@@ -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

+89 -7
View File
@@ -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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 185 KiB

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 184 KiB

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 186 KiB

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 184 KiB

After

Width:  |  Height:  |  Size: 103 KiB

+22 -1
View File
@@ -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"}`;
+57 -30
View File
@@ -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&amp;logo=docker&amp;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)
+54 -25
View File
@@ -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&amp;logo=docker&amp;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)
+57
View File
@@ -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>
+57
View File
@@ -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>
+67 -92
View File
@@ -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.
![Four room-code boxes and the arrow that submits the code.](../assets/guide/join-code.en.png#gh-light-mode-only)
![Four room-code boxes and the arrow that submits the code.](../assets/guide/join-code.en.dark.png#gh-dark-mode-only)
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.
![The Enter room password control opens a password field and a Join button.](../assets/guide/join-password.en.png#gh-light-mode-only)
![The Enter room password control opens a password field and a Join button.](../assets/guide/join-password.en.dark.png#gh-dark-mode-only)
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).
![Copy appears above the sample invitation, its QR code button and the Skip passwords switch.](../assets/guide/invite-copy.en.png#gh-light-mode-only)
![Copy appears above the sample invitation, its QR code button and the Skip passwords switch.](../assets/guide/invite-copy.en.dark.png#gh-dark-mode-only)
![The invitation QR code opens in a small panel. Ask your friend to scan the code from your own room.](../assets/guide/invite-qr.en.png#gh-light-mode-only)
![The invitation QR code opens in a small panel. Ask your friend to scan the code from your own room.](../assets/guide/invite-qr.en.dark.png#gh-dark-mode-only)
## 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.
![App source selector with Browser, Camera, Apps / Windows and Screens tabs, window previews and source-audio controls.](../assets/guide/share-source.en.png#gh-light-mode-only)
![App source selector with Browser, Camera, Apps / Windows and Screens tabs, window previews and source-audio controls.](../assets/guide/share-source.en.dark.png#gh-dark-mode-only)
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. |
![The App mode selector: Public invite is selected; Local room is the alternative.](../assets/guide/app-modes.en.png#gh-light-mode-only)
![The App mode selector: Public invite is selected; Local room is the alternative.](../assets/guide/app-modes.en.dark.png#gh-dark-mode-only)
- **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
+63 -75
View File
@@ -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#播放控制)。
![四格房间号输入框及提交房间号的箭头。](../assets/guide/join-code.zh-CN.png#gh-light-mode-only)
![四格房间号输入框及提交房间号的箭头。](../assets/guide/join-code.zh-CN.dark.png#gh-dark-mode-only)
只有四位房间号时,打开同一个 Piik 站点,选择 **加入房间**。
你可能需要站点口令和房间密码。能否通过房间号加入由房主决定;
无法加入时,请朋友发邀请链接。
![展开「输入房间密码」后显示密码框和「加入」按钮。](../assets/guide/join-password.zh-CN.png#gh-light-mode-only)
![展开「输入房间密码」后显示密码框和「加入」按钮。](../assets/guide/join-password.zh-CN.dark.png#gh-dark-mode-only)
房主可关闭链接旁的 **免密邀请**,复制普通房间地址。访客打开地址后按站点和房间设置
验证口令或密码;仅限邀请的房间需保留凭证。这个开关不会撤销已发出的邀请。
[加入或观看遇到问题](./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#开始分享)。
![上方是「复制」,下方显示示例邀请链接、二维码按钮和「免密邀请」开关。](../assets/guide/invite-copy.zh-CN.png#gh-light-mode-only)
![上方是「复制」,下方显示示例邀请链接、二维码按钮和「免密邀请」开关。](../assets/guide/invite-copy.zh-CN.dark.png#gh-dark-mode-only)
![「邀请二维码」会在小面板里打开。请朋友扫描你的房间里显示的二维码。](../assets/guide/invite-qr.zh-CN.png#gh-light-mode-only)
![「邀请二维码」会在小面板里打开。请朋友扫描你的房间里显示的二维码。](../assets/guide/invite-qr.zh-CN.dark.png#gh-dark-mode-only)
## 用 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 和分享标签页打开。
![App 选源界面:浏览器、摄像头、程序 / 窗口和屏幕四种来源,下方为窗口预览与来源声音开关。](../assets/guide/share-source.zh-CN.png#gh-light-mode-only)
![App 选源界面:浏览器、摄像头、程序 / 窗口和屏幕四种来源,下方为窗口预览与来源声音开关。](../assets/guide/share-source.zh-CN.dark.png#gh-dark-mode-only)
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 模式选择:已选中公网邀请,也可以选择本地房间。](../assets/guide/app-modes.zh-CN.png#gh-light-mode-only)
![App 模式选择:已选中公网邀请,也可以选择本地房间。](../assets/guide/app-modes.zh-CN.dark.png#gh-dark-mode-only)
- **公网邀请:** 给异地朋友发一个临时网页链接。需要互联网连接,关闭 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。
如果站点能为无法直连的观众转发画面,房主可在开始分享前关闭 **隐私模式** 来允许转发。
## 接下来可以做什么
+131
View File
@@ -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:
![The Host and friend access the site for web and chat; picture and sound use a separate direct or forwarded media connection.](../assets/guide/network-paths.en.svg)
## 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.
![Virtual LAN in three steps: join the same virtual network, choose its address in Local room, then send the complete invitation and confirm the certificate.](../assets/guide/virtual-lan.en.svg)
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`.
![The Local invitation address field shows the selected example virtual adapter and its IPv4 address.](../assets/guide/virtual-lan-address.en.png#gh-light-mode-only)
![The Local invitation address field shows the selected example virtual adapter and its IPv4 address.](../assets/guide/virtual-lan-address.en.dark.png#gh-dark-mode-only)
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.
+121
View File
@@ -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#画面模糊卡顿或中断),先按对应症状排查。
网页与聊天、画面与声音使用不同的连接:
![房主和朋友通过站点访问网页与聊天;画面和声音使用独立的直连或转发连接。](../assets/guide/network-paths.zh-CN.svg)
## 校园网或严格 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 地址。
![虚拟局域网三步:加入同一虚拟网络,在本地房间选择虚拟地址,发送完整邀请并确认证书。](../assets/guide/virtual-lan.zh-CN.svg)
1. **加入同一网络。** 房主和朋友都运行组网工具,进入同一个虚拟局域网。
2. **房主在 Piik 里选地址。** 在组网工具里查看自己这台设备的 IPv4 地址。打开 Piik App,选 **本地房间**,展开 **局域网邀请地址**,在列表里选中相同的地址,然后进房开播。下图的示例地址是 `192.0.2.30`。
![局域网邀请地址字段显示选中的示例虚拟网卡及其 IPv4 地址。](../assets/guide/virtual-lan-address.zh-CN.png#gh-light-mode-only)
![局域网邀请地址字段显示选中的示例虚拟网卡及其 IPv4 地址。](../assets/guide/virtual-lan-address.zh-CN.dark.png#gh-dark-mode-only)
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#反馈问题)收集同一次尝试的报告。
+31
View File
@@ -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)
![The viewer’s “No media route available” message with the Troubleshooting link.](../assets/guide/viewer-route-failure.en.png#gh-light-mode-only)
![The viewer’s “No media route available” message with the Troubleshooting link.](../assets/guide/viewer-route-failure.en.dark.png#gh-dark-mode-only)
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).
Loaded 100 of 814 files, more files were not shown because too many files have changed in this diff. Show more