RoomSessionRecording
Represents a specific recording of a room session.
Properties
The unique ID of this recording.
The ID of the room associated to this recording.
The ID of the room session associated to this recording.
Current state.
Duration, if available.
Start time, if available.
End time, if available.
Whether the recording has ended. Returns true if the state is "completed".
Methods
pause
▸ pause(): Promise<void>
Pauses the recording.
Returns
Promise<void>
Example
In this example, we start a recording and pause it after 5 seconds.
This example assumes you have already created a RoomSession
and members are joining.
resume
▸ resume(): Promise<void>
Resumes the recording.
Returns
Promise<void>
Example
In this example, we start a recording and pause it after 5 seconds.
Then we resume the recording after another 5 seconds of being paused.
This example assumes you have already created a RoomSession
and members are joining.
stop
▸ stop(): Promise<void>
Stops the recording.
Returns
Promise<void>
Example
In this example, we start a recording and stop it after 5 seconds.
This example assumes you have already created a RoomSession
and members are joining.
Events
onStarted
▸ RoomSessionRecording({ listen: {onStarted: Callback }})
Emitted when the recording starts.
Parameters
The recording that started. See RoomSessionRecording.
onUpdated
▸ RoomSessionRecording({ listen: {onUpdated: Callback }})
Emitted when the recording is updated.
Parameters
The recording that updated. See RoomSessionRecording.
onEnded
▸ RoomSessionRecording({ listen: {onEnded: Callback }})
Emitted when the recording ends.
Parameters
The recording that ended. See RoomSessionRecording.