Files
piik/docs/guide/getting-started.md
T
AAA 9925486cec feat(app): improve startup and media recovery (#478)
This compatible update improves quality recovery after congestion and stream changes, and lets an approved Site become the App's startup page. It also aligns responsive controls and external brand assets while preserving the in-page mascot and illustrations.

The existing media allocator, room graph and authorization owners remain in place. The scoped LiveKit demand-input patch is pinned and submitted upstream in livekit/livekit#5016; its removal condition is documented. No wire or storage version changes.

## Validation

- Web type-check, unit tests and production build; Go core/native acceptance and website build.
- Focused controlled recovery/relay/NAT evidence reused from this phase, plus final integrated lifecycle checks.
- Independent media and UI reviews; corrected the ready App button's stale passive styling.
- Repository hygiene, documentation links, responsive launcher/theme previews and package icon propagation.
- Physical macOS/Linux capture and unmatched reporter cases remain documented; controlled tests do not establish a public connection success rate.

## Release notes

### 中文

这是一次兼容 2.x 的功能与维护更新,重点改善网络波动后的画质恢复,并让常用站点的 App 启动流程更方便。

- **更快恢复画质:** 修复部分 App 分享与服务器中转线路在网络恢复后仍长时间保持低码率的问题;调整 Windows 原生编码,减少短暂波动造成的分辨率下降,并加快恢复。
- **更稳定的中继播放:** 修复原生中继在分辨率变化、画面数据不完整和换源时的恢复处理,以及延迟关键帧请求被丢失的问题。
- **启动时打开常用站点:** 可以为已授权站点加星,下次启动 App 时直接打开它;仍可通过网页 App 按钮或终端地址返回启动页管理授权和选择模式。
- **简化连接设置:** NAT 穿透增强在能力可用时自动启用;高级用户可通过 `PIIK_STUN_URLS` 指定 App 公网邀请使用的 STUN 服务。
- **界面与图标打磨:** 修正窄屏房间工具栏、昵称编辑和浮层排版,精简启动页说明,统一官网与应用的语言、深浅色控件,并更新 App 图标与网站 favicon。页面内的 mascot 和插画保持原有风格。
- **补充连接排查指引:** 更清楚地区分公网邀请服务、站点访问与媒体连接问题。

本次更新不改变 2.x 通信协议或数据库格式。浏览器采集在部分网络波动后仍可能恢复较慢;此次修复不代表所有网络和设备上的画质问题均已消除。

### English

This compatible 2.x feature and maintenance update improves quality recovery after network disturbances and makes it easier to launch the App with your usual Site.

- **Faster quality recovery:** Fixed cases where native App sharing or server-relayed media stayed at a low bitrate after bandwidth returned. Tuned Windows native encoding to reduce resolution drops during brief disturbances and recover sooner.
- **More reliable relay playback:** Fixed native relay recovery across resolution changes, incomplete frames and source replacement, and preserved delayed keyframe requests until they can be fulfilled.
- **Open your usual Site on startup:** Star an approved Site to open it when the App starts. The page's App button and the terminal's launcher address still provide access to approval management and room modes.
- **Simpler connection settings:** Available NAT traversal enhancement now activates automatically. Advanced users can set `PIIK_STUN_URLS` to choose the STUN services used by App public invitations.
- **Interface and icon polish:** Fixed narrow-screen room controls, nickname editing and overlays; simplified launcher guidance; aligned website language and theme controls with the App; and refreshed App icons and website favicons. In-page mascots and illustrations retain their existing appearance.
- **Clearer connection troubleshooting:** Updated guidance distinguishes public-invitation service failures, Site access and media connectivity.

This update preserves the 2.x communication protocols and database format. Browser capture can still recover slowly after some network disturbances; these fixes do not resolve every quality issue on every network or device.
2026-10-16 21:56:49 +08:00

15 KiB
Raw Blame History

Your first Piik room

English · 简体中文 · Back to Piik

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 · Use online · Piik App · Existing site · Chat and reactions · Troubleshooting

Viewers need a browser and an invitation. To start sharing, download Piik App and choose Public invite. To share without installing, open Piik online and create a room in your browser.

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. On a computer, click the picture to pause or resume; double-click 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.

Playback controls, at a glance
Control What it does
Theater mode Expands the picture inside the browser tab.
Fullscreen Uses the full screen while keeping the picture's proportions; black bars can remain when they differ from your screen.
Picture in picture Opens a floating video where supported.
Volume Goes up to 200% with audio boost, or 100% otherwise. Lower it if the sound distorts.

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

Hosts can turn off Skip passwords beside the link to copy the ordinary room address. Visitors follow the site's and room's access checks; invite-only rooms require the invitation credential. This switch does not revoke existing invites.

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.

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. Open that link on a second device or send it to a friend.
  4. Select Stop sharing when finished.

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 a piik-app archive for your platform from GitHub Releases or the Gitee mirror. 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.
  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.

When the launcher offers an update, Release notes opens its details on GitHub or Gitee. A new major version includes a compatibility warning; read the upgrade instructions before replacing your App.

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

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. Linux native capture also needs system components. See the App guide for package and runtime 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.

For Local room and Public invite, expand Site passphrase to set an optional access passphrase. 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.

Already have a Piik site? Keep the App running, open the site and click App at the top. Check the address on the local confirmation page, then choose Allow access. Enter any site passphrase on the site itself. Allow local-network access if the browser asks. No room mode needs to be selected in the launcher. 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.

The same browser remembers this connection. On later visits, Start sharing offers Apps / Windows and Screens from the running App. In another browser, in a private window or after clearing site data, connect again. The same exact site already approved by App needs no repeat confirmation. The launcher shows the approved site; × beside its address revokes access. Approving a different site replaces the previous one and ends that site's App connections. Select ☆ beside the address to open that site automatically next time you start the App. Turn it off to return to the launcher on startup. The connected App button on the site opens the launcher for these settings. If the site is unavailable, use the App launcher address in the App terminal. To use your App with a friend's new public-invitation address, connect and approve that address again. Sharing-quality settings saved in App survive the address change.

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 explains the connection setup.

Upgrading

Piik 2.0 and 1.x cannot be used together. The App and the site it connects to need the same major version. Read the release notes on GitHub or Gitee 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. Then update the Apps connecting to that site and refresh all sharing and viewing pages.

Restarting an App or Server interrupts active shares. This upgrade does not change the room database schema.

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 or Piik App. Hosting a site yourself is an advanced option: follow the self-hosting guide for server, HTTPS and network setup.

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

Picture and sound settings

Open Sharing settings below the picture to adjust picture and audio quality.

  • Choose a picture preset, or enter width and height under Resolution limit. Piik preserves the source's proportions within that ceiling, including portrait and ultrawide pictures.
  • Sliders cover 15–60 fps in steps of 5 and 2–12 Mbps in steps of 0.5. You can also enter an FPS limit from 1 to 240 fps and a Bitrate limit from 0.1 to 240 Mbps. Values outside those slider steps show Custom; Use common range selects the nearest available slider value. The frame-rate limit depends on picture size: for example, 1080p240, 1440p144 and 4K60 are accepted requests.
  • Choose an audio preset, or enter an Audio bitrate limit from 6 to 320 kbps.

The selectable range depends on picture size and the connected App. Picture and sound still adapt to the source, device and available bandwidth.

Piik remembers your applied settings for the next visit. Browser-only use remembers them for the current site; opening Piik through an updated App also keeps them when your public-invite address changes.

Add your voice

While sharing, select Microphone below the picture and allow microphone access. Select it again to mute. Open Settings → Sound below the picture to choose a microphone and adjust its input volume. The default volume is 100%, with up to 200% available. Source audio and your voice reach viewers together. The Host preview stays muted.

Camera sharing does not enable the microphone automatically. App Apps / Windows and Screens capture use the same controls. Leave the device on Default device or choose a specific microphone. In the Camera tab, allow access if asked, then select a picture card to start sharing. Device names and previews depend on browser permissions; while a camera is shared, other cameras are listed by name. Use headphones to keep speaker sound from feeding back into the microphone.

With Browser or Camera capture, Noise & echo reduction in sound settings is on by default, asking the browser to handle echo, noise and volume. Turn it off for music or a virtual audio input. Device and system effects remain controlled by their own settings. App native capture uses device/system audio settings.

A camera with a built-in microphone still needs separate video and audio input selection. OBS Virtual Camera supplies video only. To include OBS audio, follow the OBS audio-routing guide, then select the virtual audio input in Piik's microphone list and turn on the microphone.

Exclude a voice app from screen audio

On supported Windows Apps, open the Screens tab and enable System sound. Under Exclude application audio, select a window belonging to the voice app, then choose the screen to share. Open the app's window and refresh if it is absent. This excludes one process and its children. Other apps remain audible, including those playing through other output devices. It does not mute your Piik microphone or prevent speaker sound reaching a microphone.

If a virtual microphone remains audible with Piik's microphone off, temporarily turn off System sound to compare. If the voice disappears, check the mixer's playback output and monitoring, or capture only the desired application's window audio. Excluding a voice app does not also exclude a separate mixer that plays your processed voice, even through a virtual output device.

While sharing, use Sharing settings → Sound to change system sound or the excluded app without stopping the share. If the app closes or restarts, source audio stops; refresh the application list and select it again. Turning source audio off retains the exclusion choice; select None to restore unfiltered system audio. This control requires an updated page and a Windows App whose capability probe supports process exclusion; it is not a Browser-capture filter. Windows 10 support depends on system updates and the actual capability check. If the option is absent, share a single application window or route the voice app to a different playback device.

Chat and reactions

Once the host starts the first share, participants can select Chat below the sofa to send messages. Select a person on the sofa to open their reaction menu: your own reactions appear above you; reactions sent to a friend fly towards them. The chat window can be moved and resized without rearranging the page.

Supported desktop browsers show Always-on-top chat in the window's top-right corner, so you can read messages while playing. Keep the Piik page open; closing the small window returns chat to the page. Use a windowed or borderless game; exclusive fullscreen may cover the chat. The window cannot show the game through its background or let mouse clicks pass through.

On screen, beside the message box or in the viewer's playback bar, shows new messages over the picture. It is off by default and only changes your own view. Open Chat settings in the chat window to adjust text size and opacity. System video fullscreen and picture in picture cannot show these overlays.

Stopping a share keeps the room's chat available. App Local and Public invite rooms require the App to stay open. Each page retains only its latest received messages: refreshing clears them, and late joiners receive no earlier history. To keep a copy, use Chat settings → Export chat to save the latest messages retained on this page (up to 1,000) as a text file. Chat travels through the room's server and is not end-to-end encrypted.

When something gets in the way

For sound, capture, startup or playback issues, see Troubleshooting.

When video will not connect

See connection troubleshooting for “No media route available” and similar connection failures.