Migrate a Mux Spaces real-time video integration to LiveKit after the Spaces/Studio shutdown

domain: mux.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Confirm per docs.mux.com/changelog/real-time-video-and-studio-shutdown that Mux Real-Time Video (Spaces) and Mux Studio, including the /spaces and /studios APIs, are fully shut down (Live/On-Demand streaming is unaffected)
  2. Use Mux's official migration guide at mux.com/docs/guides/spaces-to-livekit rather than reverse-engineering the mapping yourself
  3. As a stopgap, install the aliased adapter package ("@mux/spaces-web": "npm:@mux/spaces-livekit-adapter@^0.1.9") to bridge old Spaces SDK calls to LiveKit
  4. Replace the Space class with LiveKit's Room class, and swap .join() calls for Room.connect()
  5. Rework event handlers: ParticipantJoined to ParticipantConnected, ParticipantLeft to ParticipantDisconnected, SpaceEvent to RoomEvent, and manually read room.participants for pre-existing participants since connect() doesn't fire connected events for them

Known gotchas

Related routes

Migrate an application off the retired Mux Real-Time Video (Spaces) product to LiveKit
docs.mux.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans