Meeting Class Methods
join()
- It is used to join a meeting.
- After meeting initialization by
initMeeting()
it returns a new instance of Meeting. However by default, it will not automatically join the meeting. Hence, to join the meeting you should calljoin()
.
Events associated with join()
:
- Local Participant will receive a
onMeetingJoined
event, when successfully joined. - Remote Participant will receive a [
addParticipant
] event with the newly joinedParticipant
object from the event callback.
Returns
void
leave()
- It is used to leave the current meeting.
Events associated with leave()
:
- Local participant will receive a
onMeetingLeft
event. - All remote participants will receive a
onParticipantLeft
event withparticipantId
.
Returns
void
end()
- It is used to end the current running session.
- By calling
end()
, all joined participants including localParticipant of that session will leave the meeting.
Events associated with end()
:
- All participants and localParticipant, will be emitted [
closeRoom
] event.
Returns
void
enableWebcam()
- It is used to enable self camera.
onStreamEnabled
event will be emitted withstream
object from the event callback, inside that participant object.
Returns
void
disableWebcam()
- It is used to enable self camera.
onStreamDisabled
event will be emitted withstream
object from the event callback, inside that participant object.
Returns
void
unmuteMic()
- It is used to enable self microphone.
onStreamEnabled
event will be emitted withstream
object from the event callback, inside that participant object.
Returns
void
muteMic()
- It is used to disable self microphone.
onStreamDisabled
event will be emitted withstream
object from the event callback, inside that participant object.
Returns
void
startRecording()
It is used to start meeting recording.
All participants and localParticipant, will receive
onRecordingStarted
event.webhookUrl
will be triggered when the recording is completed and stored into server. Read more about webhooks here.
Parameters
- webhookUrl: String
Returns
void
Example
let webhookUrl = "https://webhook.your-api-server.com"
startRecording(webhookUrl: webhookUrl!)
stopRecording()
- It is used to stop meeting recording.
- All participants and localParticipant, will receive
onRecordingStopped
event.
Returns
void
Example
stopRecording()
startLivestream()
- It is used to start meeting livestreaming.
- You will be able to start live stream meetings to other platforms such as Youtube, Facebook, etc. that support
RTMP
streaming. - All participants and localParticipant, will receive
onLivestreamStarted
event.
Parameters
- outputs:
[LivestreamOutput]
Returns
void
Example
startLivestream(outputs: outputs)
stopLivestream()
- It is used to stop meeting livestreaming.
- All participants and localParticipant, will receive
onLivestreamStopped
event.
Returns
void
Example
stopLivestream();