polite-oil-10264
11/23/2025, 1:56 PMtall-airline-16756
11/23/2025, 1:56 PMtall-airline-16756
11/23/2025, 1:56 PMAccessToken. Ensure the token grants roomJoin and the appropriate publish/subscribe permissions.
4) Create breakout rooms server-side
• Use RoomServiceClient to create rooms programmatically:
◦ set name, optional emptyTimeout, maxParticipants as needed.
5) Move participants between rooms
• Use the MoveParticipant API via RoomServiceClient to move an identity from the main room to a breakout room (and back when done).
6) Frontend (Next.js + React)
• Fetch a token from your API for the target room, then connect with LiveKit React components (e.g., LiveKitRoom / VideoConference) using serverUrl and the token.
• Provide UI buttons to request backend actions for creating breakout rooms and moving participants.
7) Key considerations
• Generate separate tokens scoped to each breakout room so permissions are enforced per room.
• Add server authorization checks (who can create rooms or move participants).
• Clean up empty breakout rooms (configure emptyTimeout or delete when done).
If you’d like, I can:
• Provide a ready-to-use code snippet for the Next.js API token route.
• Show the exact RoomServiceClient calls for creating rooms and moving participants.
• Suggest a minimal UI flow for admins to create/move/close breakout rooms.
Which of those would you like next?
Sources: Managing rooms | LiveKit docs | Managing participants | LiveKit docs | Authentication | LiveKit docs | Next.js quickstart | LiveKit docspolite-oil-10264
11/23/2025, 2:03 PMtall-airline-16756
11/23/2025, 2:03 PMMoveParticipant API — when moved, their tracks follow them and become available in the destination room. You can move them back the same way.
• If you want to hear a participant in the main room without moving them, LiveKit Cloud supports a ForwardParticipant feature that forwards a participant’s tracks to another room (e.g., the main room) until forwarding is stopped.
Which behavior do you want to implement: moving participants, forwarding tracks, or both? I can provide the exact server-side calls and a Next.js code example for the option you choose.
Sources: Rooms, participants, and tracks | LiveKit docs | Managing participants | LiveKit docs | Agent-assisted warm transfer | LiveKit docspolite-oil-10264
11/23/2025, 2:04 PMtall-airline-16756
11/23/2025, 2:04 PMMoveParticipant so their tracks become available only in the room they join.
Would you like the exact server API call and a Next.js code example to enable forwarding?