Co-Host Management
Room posts support co-hosting, allowing multiple broadcasters to stream together. This guide covers the complete co-host invitation system, from sending invitations to managing co-host participation during broadcasts.Overview
Co-hosts are invited broadcasters who can stream together with the room host. They appear with a special badge in the chat and have broadcasting capabilities within the room.Invite Co-Hosts
Send invitations to users to join as broadcasters
Accept/Decline
Invited users can accept or decline invitations
Track Status
Monitor invitation status in real-time
Co-Stream
Multiple hosts broadcast together simultaneously
For Hosts
Send Co-Host Invitation
Hosts can invite users to join as co-hosts during a live session. Co-host invitations are sent one user at a time.Co-host invitations are sent one user at a time. To invite multiple co-hosts, call the invitation function for each user.
| Parameter | Type | Required | Description |
|---|---|---|---|
userId | string | Yes | User ID to invite as co-host |
roomId | string | Yes | ID of the room |
Get Sent Co-Host Invitations
Hosts can view all co-host invitations they’ve sent to track invitation status.Cancel Co-Host Invitation
Hosts can cancel pending invitations before they are accepted.For Invited Users
Get My Room Invitations
Users can retrieve all their pending room co-host invitations.Check Co-Host Invitation Status
Check the status of a room co-host invitation. Status Values| Status | Description | User Action |
|---|---|---|
pending | Invitation awaiting response | Can accept or decline |
accepted | User has accepted | Co-host in room |
rejected | User has declined | No further action |
cancelled | Host cancelled invitation | No longer valid |
Accept Co-Host Invitation
Accept a pending co-host invitation to join the broadcast.Decline Co-Host Invitation
Decline a co-host invitation if unable to join the broadcast.Co-Host Joining the Broadcast
After accepting an invitation, co-hosts need to get their broadcast data and connect to LiveKit:Best Practices
Before the Broadcast
Before the Broadcast
- Coordinate with co-hosts before going live
- Establish clear roles and speaking order
- Test audio and video connections with all hosts
- Have a backup plan if a co-host disconnects
Invitation Management
Invitation Management
- Send invitations early to give users time to prepare
- Handle expired or cancelled invitations gracefully
- Provide clear UI feedback for invitation status
- Allow hosts to re-invite users who declined
During the Broadcast
During the Broadcast
- Monitor co-host connection status
- Handle co-host disconnection gracefully
- Use host and co-host badges for clear identification
- Coordinate mute/unmute to avoid audio issues
Troubleshooting
Invitation Not Received
Invitation Not Received
Problem: User doesn’t see the co-host invitationSolutions:
- Verify the user ID is correct
- Check that the room is in a valid state
- Ensure the user has permissions to receive invitations
- Try re-sending the invitation
Cannot Join After Accepting
Cannot Join After Accepting
Problem: Co-host accepted but can’t join broadcastSolutions:
- Verify the room is still live
- Check that broadcast data is retrieved correctly
- Ensure network connectivity is stable
- Validate LiveKit connection credentials
Co-Host Connection Issues
Co-Host Connection Issues
Problem: Co-hosts frequently disconnectingSolutions:
- Check network stability for all participants
- Monitor bandwidth requirements
- Consider reducing video quality
- Implement reconnection logic
Next Steps
Start Broadcasting
Get broadcaster data and connect to LiveKit
Recorded Playback
Handle recorded room playback after broadcast ends
Live Viewing
How viewers watch your live broadcast
Manage Rooms
Query, update, and control room lifecycle