Quick Start Guide
This guide walks you through creating a basic video conference using lib-jitsi-meet. You’ll learn the essential steps: initialization, creating local tracks, connecting to a server, and joining a conference.Prerequisites
- lib-jitsi-meet installed (Installation Guide)
- A Jitsi Meet deployment or JaaS (Jitsi as a Service) account
- Modern browser with WebRTC support
Basic Conference Flow
The typical flow for creating a conference:Initialize JitsiMeetJS
Call Available initialization options (from
init() before using any other library functions:JitsiMeetJS.ts:89-106):Create Local Tracks
Request access to camera and microphone:Options for
createLocalTracks() (from JitsiMeetJS.ts:79-85):Create JitsiConnection
Establish a connection to the Jitsi Meet server:Connection options (from
JitsiConnection.ts:16-34):Complete Example
Here’s a complete working example:Simplified API with joinConference()
For JaaS users, lib-jitsi-meet provides a simplifiedjoinConference() method that handles everything automatically (from JitsiMeetJS.ts:448-526):
- Configures JaaS endpoints and domains
- Creates the connection
- Initializes the conference
- Adds tracks and joins
- Sets up receiver constraints
Event Handling Reference
Key events you’ll commonly handle: Connection Events (fromJitsiConnectionEvents)
CONNECTION_ESTABLISHED- Connected to serverCONNECTION_FAILED- Connection failedCONNECTION_DISCONNECTED- Disconnected from server
JitsiConferenceEvents)
CONFERENCE_JOINED- Successfully joined conferenceCONFERENCE_LEFT- Left the conferenceUSER_JOINED- Remote participant joinedUSER_LEFT- Remote participant leftTRACK_ADDED- Media track added (local or remote)TRACK_REMOVED- Media track removedTRACK_MUTE_CHANGED- Track mute status changedDISPLAY_NAME_CHANGED- Participant display name changedDOMINANT_SPEAKER_CHANGED- Active speaker changed
JitsiTrackEvents)
TRACK_AUDIO_LEVEL_CHANGED- Audio level changedTRACK_MUTE_CHANGED- Mute status changedLOCAL_TRACK_STOPPED- Local track stoppedNO_DATA_FROM_SOURCE- No data from media source
Next Steps
API Reference
Explore the complete API documentation
Advanced Features
Learn about E2EE, screen sharing, and quality control