startRecording
startRecording
- startRecording():
Promise<RoomSessionRecording>
Starts the recording of the room. You can use the returned RoomSessionRecording object to control the recording (e.g., pause, resume, stop).
Parameters
params
Object containing the parameters of the method.
listen
Object of event listeners. See RoomSessionRecording Events for a list of valid events.
Returns
Promise<RoomSessionRecording>
A promise that resolves to a RoomSessionRecording object.
Example
In this example, we wait for a room to start and then start a recording in that room.
We then stop the recording after 5 seconds. This example assumes that there is a RoomSession
already active and that members are joining the room.