Meeting Class
The entry point into real-time communication SDK.
The Meeting Class
The Meeting Class includes methods and events for managing meetings, participants, video & audio streams, data channels and UI customization.
You don't ever need to call the Meeting Class constructor directly. Instead use one of the factory methods.
Factory Methods
initMeeting()
Javascript
const meeting = VideoSDK.initMeeting({
meetingId, // required
name, // required
micEnabled, // optional, default: true
webcamEnabled, // optional, default: true
maxResolution, // optional, default: "hd"
});
Parameters
__namedParametersrequired
objectmeetingIdrequired
stringparticipantIdoptional
stringnameoptional
stringmicEnabledoptional
bool(default:true)webcamEnabledoptional
bool(default:true)maxResolutionoptional
string(default:hd)Possible values are hd and sd
Properties
Properties
__properties
objectid
stringactiveSpeakerId
stringactivePresenterId
stringmainParticipantId
stringlocalParticipant
Participantparticipants
Map<string, Participant>pinnedParticipants
Map<string, { cam: bool, share: bool }}>messages
Array<{senderId: string, text: string, timestamp: number}>
Properties
Events
__events
participant-joined
eventparticipant-left
eventspeaker-changed
eventpresenter-changed
eventmain-participant-changed
evententry-requested
evententry-responded
eventrecording-started
eventrecording-stopped
eventchat-message
eventvideo-state-changed
eventvideo-seeked
eventlivestream-started
eventlivestream-stopped
eventpin-state-changed
event
Events
Methods
join()
voidleave()
voidend()
void
Join and leave
muteMic()
voidunmuteMic()
voiddisableWebcam()
voidenableWebcam()
void
Mic and webcam
disableScreenShare()
voidenableScreenShare()
void
Screenshare
startRecording(webhookUrl: string, awsDirPath: string)
voidstopRecording()
void
Recording
startVideo({ link: string })
voidTriggers
video-state-changedevent with status "started"stopVideo()
voidTriggers
video-state-changedevent with status "stopped"pauseVideo({ currentTime: number })
voidTriggers
video-state-changedevent with status "paused"resumeVideo()
voidTriggers
video-state-changedevent with status "resumed"seekVideo({ currentTime: number })
voidTriggers
video-seekedevent withcurrentTime
External video
startLivestream(Array<{ url: string, streamKey: string }>)
voidstopLivestream()
void
Livestream / RTMP out
Got a Question? Ask us on discord

