Tachyon USB webcam live stream
Stream live video from a USB webcam on Tachyon to a public URL using MediaMTX and a Cloudflare tunnel, with device status and control flowing through Particle Cloud events.
Introduction
Turn a Tachyon and any standard USB webcam into a live camera that anyone can watch from a public URL, with no port forwarding, no fixed IP, and no code changes required. The entire application is a single Docker Compose project deployed with Particle's container tooling.
Supported devices
Hardware and supplies
Cloud services and integrations
- Events
Project description:
This blueprint runs four containers on Tachyon. An ffmpeg publisher captures the USB webcam and feeds H.264 video to MediaMTX, which serves the stream as low-latency HLS and WebRTC. A Cloudflare quick tunnel makes the stream reachable from the public internet using only outbound connections, so it works over 5G behind carrier-grade NAT. A small Node service ties it to the Particle Cloud through particle-api-js, Particle's supported JavaScript API client: it publishes the public URL as an event when the tunnel comes up, sends a periodic status heartbeat, and listens for command events (snapshot, status) published from the Particle Console. Cloud identity comes from the device's own provisioned configuration, so there are no tokens to create or manage. The demo moment: power the device, watch the Console event log, and click the URL that arrives.