Web Demo
A browser-based demo for watching and publishing live streams via MoQ. Uses the <moq-watch> and <moq-publish> web components.
Running
bash
just webThis starts three components in parallel:
- Relay — a localhost MoQ relay server
- Publisher —
moq-clipublishing Big Buck Bunny via ffmpeg - Web server — a Vite dev server with the demo UI
Once running, open the browser to watch the stream, publish from your camera, or both.
What It Shows
- Watching — subscribe to live broadcasts with low latency
- Publishing — capture camera, microphone, or screen and publish via MoQ
- Web Components —
<moq-watch>and<moq-publish>custom elements - Discovery — auto-discover available broadcasts via announcements
Source Code
- Web app:
demo/web/src/ - Justfile:
demo/web/justfile
Related
- @moq/watch — Watch/subscribe package
- @moq/publish — Publish package
- Relay setup — Server configuration