Recording
The meeting.recording
object can be used start and stop recordings in a
meeting.
Recording State
The meeting.recording.recordingState
property indicates the current state of the recording. Possible states include idle
, recording
, starting
and stopping
.
Start a recording
To start a recording, you need to call the start()
method in the
meeting.recording
object, as shown below.
meeting.recording.start((error) {
// Handle error if any
});
Stop a recording
To stop a recording, you need to call the stop()
method in the
meeting.recording
object, as shown below.
meeting.recording.stop((error) {
// Handle error if any
});
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.
class RecordingListener with RtkRecordingEventListener {
void onRecordingStateChanged(
RecordingState oldState,
RecordingState newState,
) {
// Notifies when there is a change in the recording state.
}
}
You can subscribe to this events by addRecordingEventListener
method:
meeting.addRecordingEventListener(RecordingListener());