ConferenceClient object.
Installation
Key concepts
- Room — a named session identified by a
roomId. Multiple users join the same room to exchange audio and video. - Participant — a user in the room, identified by a
userId. Each participant can publish audio/video (role:publisher) or receive only (role:subscriber). - Media tracks — participants publish their local
MediaStreamvia WHIP, and subscribe to each other’s streams via WHEP. You receive aMediaStreamfor each subscribed participant to attach to a<video>element.
Joining a room
1
Create a ConferenceClient
Pass your server details and optional PubNub keys for chat.
2
Subscribe to new participants
Listen for
NEW_PARTICIPANT and subscribe automatically so you receive their video as soon as they join.3
Acquire local media and join
4
Leave the room
Media controls
Mute and unmute your local audio and video without leaving the room.Screen sharing
Virtual backgrounds
Virtual backgrounds use@mediapipe/selfie_segmentation to replace or blur the area behind your camera feed.
1
Initialize the background processor
2
Apply a background
3
Remove the background
Local recording
Record participant streams directly in the browser. The recording is stored locally and downloaded as a ZIP file.Chat
Send and receive text messages within the room using PubNub. Pass your PubNub keys in theConferenceClient config.
Configuration reference
API reference highlights
Room management
Room management
Subscribing
Subscribing
Events
Events
