Files
piik/docs/guide/getting-started.md
T
TNTcraft e25bd00950 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.
2026-11-15 18:23:50 -04:00

8.4 KiB

Your first Piik room

English · 简体中文 · Back to Piik

Piik lets one Host share with up to 20 invited Viewers. Choose your starting point:

You want to… Start here
Watch a friend Open their invitation. No installation.
Share with friends elsewhere Piik App → Public invite. Keep App running.
Share without installing Piik online, in your browser.
Use your group's site Open that site; App capture is optional.

Three steps: pick a window, copy its room invitation, and join friends on the sofa.

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.

The playback bar controls only your own picture and sound. See playback controls for fullscreen, display and sound options.

Only have a four-digit code? Open the same Piik site and select Join a room. Enter the site passphrase or room password if asked. If code entry is unavailable or an old link fails, ask the Host for their current invitation.

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

Use Piik online

  1. Open 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, or show the QR code for another device to scan. Both use the currently selected invitation link.
  4. Select Stop sharing when finished.

On iPhone/iPad, screen sharing requires Safari on iOS/iPadOS 27 or later. See iPhone and iPad screen sharing for sound support and the separate requirements for watching and cameras.

The online version is provided by the project. Media travels only between participants (P2P); restrictive networks may load the page but block video.

Share with Piik App

  1. Download Piik App for your platform from GitHub Releases or the AtomGit mirror. On phones and tablets, install the APK directly. On a computer, extract the whole archive and keep its directory structure intact.
  2. Open piik-app.exe on Windows, Piik App.app on macOS, or ./piik-app on Linux. On phones and tablets, open Piik after installation. The launcher opens in your system browser.
  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.

App source selector with Browser, Camera, Apps / Windows and Screens tabs, window previews and source-audio controls. App source selector with Browser, Camera, Apps / Windows and Screens tabs, window previews and source-audio controls.

If macOS blocks the first launch, follow the Mac opening steps.

Which download should I choose?
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
android-universal Android 10+; ARM64 and x64 in one APK

Linux native capture also needs system components. See the App guide for package and runtime details.

Choose an App mode

The App mode selector: Public invite is selected; Local room is the alternative. The App mode selector: Public invite is selected; Local room is the alternative.

  • 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.

Return to the launcher or change mode

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.

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 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.

You can also choose Connect Piik App inside the Start sharing source 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.

Manage approved sites and the startup favorite in the App launcher. If video cannot connect, use the network guide.

Upgrading

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.

Share from an existing site

Use an HTTPS Piik site provided by your group or administrator. To run your own site, follow self-hosting.

  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.
  4. Keep the sharing tab open. Use Pause sharing, Switch source, or Stop sharing when you need them.

Screen capture requires an HTTPS site or localhost. The sources and audio offered by the picker depend on your browser and operating system. Invitation links grant access to that room; share them with the people you want there.

To use App capture on that same site, follow 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.

Next steps