Skip to main content

Recording

The meeting.recording object in RealtimeKit's iOS Core SDK provides APIs to manage recording within a meeting.

Recording State

The meeting.recording.recordingState property indicates the current state of the recording. Possible states include IDLE, STARTING, RECORDING, PAUSED, and STOPPING.

Starting a Recording

To start a recording, use the start() method of the meeting.recording object.

meeting.recording.start()

Stopping a Recording

To stop an active recording, use the stop() method.

meeting.recording.stop()

Pausing a Recording

To temporarily pause a recording, use the pause() method.

meeting.recording.pause()

Resuming a Recording

To resume a paused recording, use the resume() method.

meeting.recording.resume()

Listening for Recording Events

To handle recording-related updates, you need to listen for onRecordingStateChanged() event using the RtkRecordingEventListener. This returns RecordingState object with it.

extension MeetingViewModel: RtkRecordingEventListener {
func onRecordingStateChanged(oldState: RecordingState, newState: RecordingState) {
// Notifies when there is a change in the recording state.
}
}

Implement these callbacks to handle recording events and errors appropriately in your application.