getRecordings
getRecordings
- getRecordings():
Promise<{recordings:RoomSessionRecording}>
Obtains a list of recordings for the current room session.
Returns
Promise<{ recordings: RoomSessionRecording }>
A promise that resolves to an object containing the list of RoomSessionRecording objects.
Example
In this example, we wait for a room to start and then start a recording in that room.
After 5 seconds, we then use getRecordings to get the list of recording objects.
We then loop through the list of recordings and print out the state and id of each recording.
Afterwards, we stop the recording. This example assumes that there is a RoomSession
already active and that members are joining the room.