Record Meeting - iOS
Record meeting allows participants to record video & audio during the meeting. The recording files are available in developer dashboard. Any participant can start / stop recording any time during the meeting.
This guide will provide an overview of how to implement start and stop Meeting Recording.
- Start Recording - By using
startRecording()
function, a participant can start meeting recording. - Stop Recording - By using
stopRecording()
function, a participant can stop meeting recording.
Start And Stop Recording
/// webhook url
private let recordingWebhookUrl = "<webhook-url-here>"
/// aws directory path
private let recordAwsDirPath = "<aws-dir-path>"
/// custom configuration for recording
private let recordConfig = RecordingConfig(
layout: ConfigLayout(
type: .GRID,
priority: .PIN,
gridSize: 4
), theme: .DARK,
mode: .video_and_audio,
quality: .med,
orientation: .landscape
)
/// keep track of recording
private var recordingStarted = false
@IBAction func recordButtonTapped(_ sender: Any) {
if !recordingStarted {
// start recording
self.meeting?.startRecording(webhookUrl: recordingWebhookUrlrecordingWebhookUrl,
awsDirPath: recordAwsDirPath,
config: recordConfig)
} else {
// stop recording
meeting?.stopRecording()
}
}
Events
-
recording-started - Whenever any participant start meeting recording, then
recording-started
event will trigger. -
recording-stopped - Whenever any participant stop meeting recording, then
recording-stopped
event will trigger.
/// Called after recording starts
func onRecordingStarted() {
recordingStarted = true
// show indication that meeting recording is started.
}
/// Caled after recording stops
func onRecordingStopped() {
recordingStarted = false
// hide meeting recording indication.
}
API Reference
The API references for all the methods utilised in this guide are provided below.
Got a Question? Ask us on discord