Live updates
A WebSocket that tells your app how each video's encoding is going, as it happens.
const socket = new WebSocket("wss://your-crumbcast/api/v1/ws/"); socket.onopen = () => { socket.send(JSON.stringify({ token: accessToken })); // The project whose videos to hear about socket.send(JSON.stringify({ project: projectId }));}; socket.onmessage = ({ data }) => { const update = JSON.parse(data); if (update.type === "encoding_progress") { showProgress(update.video_id, update.percent); }};What you get
- Progress by the percentHow far each format's encoding is, for a progress bar that moves.
- Every format's statusQueued, started, completed or failed, with the reason when it fails.
- Imports, trims and thumbnailsTold the moment an import, a cut or a new thumbnail is done.
- One project at a timeSay which project your page shows, and hear about its videos, whoever uploaded them.