RoomSessionRecording
Represents a specific recording of a room session.
Properties
id
The unique ID of this recording.
roomId
The ID of the room associated to this recording.
roomSessionId
The ID of the room session associated to this recording.
state
Current state.
duration
Duration, if available.
startedAt
Start time, if available.
endedAt
End time, if available.
hasEnded
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
recording
The recording that started. See RoomSessionRecording.
onUpdated
▸ RoomSessionRecording({ listen: {onUpdated: Callback }})
Emitted when the recording is updated.
Parameters
recording
The recording that updated. See RoomSessionRecording.
onEnded
▸ RoomSessionRecording({ listen: {onEnded: Callback }})
Emitted when the recording ends.
Parameters
recording
The recording that ended. See RoomSessionRecording.