SDK v7.x · Last verified March 2026 · iOS · Android · Web
Speed run — just the code
Speed run — just the code
.png?fit=max&auto=format&n=Whepx2DgDzjvHcd8&q=85&s=0b81bf7fe67c4a9383c5d79e7a94a2ce)
Prerequisites: A room must already exist and the host must be connected to LiveKit. See Go Live & Room Management first.
How Co-Hosting Works
| Role | Can do | Can’t do |
|---|---|---|
| Host | Send / cancel invitations, remove co-hosts, stop room | — |
| Co-Host | Broadcast audio + video, interact in chat | Stop room, send invitations |
| Status | Meaning |
|---|---|
pending | Awaiting the invitee’s response |
approved | Invitee accepted — ready to join broadcast |
rejected | Invitee declined |
cancelled | Host cancelled before invitee responded |
Host Side
Send a co-host invitation
Invitations are sent one user at a time. The host must already have a room.To invite multiple co-hosts, call
createInvitation once per user.Track invitation status
Observe all invitations you’ve sent to show pending / accepted / declined states in your UI.
Co-Host Side
Retrieve your invitations
Poll or observe your pending room invitations. Show them as an in-app notification or banner.
UIKit: Pre-Built Co-Host Components
If you’re using UIKit, the co-hosting UI is handled for you:| Component | What it does | Platforms |
|---|---|---|
AmityLivestreamInviteCoHostPage | Full-screen invite picker for the host | iOS, Android, Web |
AmityLivestreamCoHostStage | Grid layout showing all active co-hosts | iOS, Android, Web |
Common Mistakes
Best Practices
UX for invitation flow
UX for invitation flow
- Show pending invitations as a prominent banner or bottom-sheet, not a buried list
- Include the host’s display name and room title in the invitation UI
- After accepting, navigate directly to a “Preparing to go live…” screen
Handling disconnections
Handling disconnections
- If a co-host’s LiveKit connection drops, listen for
RoomEvent.Disconnectedand show a “Reconnecting” state - Give co-hosts a “Leave stage” button that disconnects from LiveKit without ending the room
- The host should see a visual indicator when a co-host goes offline
Scaling to many co-hosts
Scaling to many co-hosts
- Each co-host adds a video track — bandwidth and layout get complex above 4–6 hosts
- Consider a grid layout that caps visible tiles and puts overflow in a scrollable strip
- Test on lower-end devices to verify performance with multiple video tracks
Next Steps
Go Live & Room Management
Room creation, broadcast setup, and lifecycle management.
Live Chat & Engagement
Wire up chat, reactions, and viewer count alongside the video.
Product Tagging
Pin products to the stream for live commerce.