Skip to content

feat: connection quality indicator and network preflight#34

Open
robinandeer wants to merge 1 commit into
mainfrom
05-26-feat-add-connection-quality-indicators-and-preflight-checks
Open

feat: connection quality indicator and network preflight#34
robinandeer wants to merge 1 commit into
mainfrom
05-26-feat-add-connection-quality-indicators-and-preflight-checks

Conversation

@robinandeer
Copy link
Copy Markdown
Collaborator

@robinandeer robinandeer commented May 26, 2026

Show a debounced in-call warning when the user’s network is degraded or reconnecting, without blocking the call with preflight UI.

Integrators need a subtle signal when avatar calls may stutter on poor networks. LiveKit’s server-reported quality often stays good under bandwidth limits (e.g. DevTools 3G), so warnings never appeared without RTT/loss fallback.

Verify

  • bun run build && bun test packages/
  • just dev-nextjs-simple — start a call; no preflight banner
  • Optional: <AvatarCall connectionDebug connectionPreviewWarning /> or <ConnectionQualityDevTools /> — amber dot on the warning pill, metrics top-right
  • Throttle network after video is up; pill may show Slow connection when RTT/loss thresholds trip (~2.5s debounce)

Manually verified locally with debug overlay and preview pill (debug not enabled in nextjs-simple by default).

@vercel
Copy link
Copy Markdown

vercel Bot commented May 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
avatars-playground Ready Ready Preview, Comment May 26, 2026 8:28pm

Request Review

@robinandeer robinandeer changed the title feat: add connection quality indicators and preflight checks feat: connection quality indicator and network preflight May 26, 2026
Copy link
Copy Markdown
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

In-call warnings use LiveKit quality plus WebRTC RTT/loss when the server still reports good. Preflight is WebSocket-only and non-blocking; optional ConnectionQualityDevTools for local verification.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant