getPlaybacks
getPlaybacks
- getPlaybacks():
Promise<{playbacks:RoomSessionPlayback}>
Obtains a list of playbacks for the current room session.
Returns
Promise<{ playbacks: RoomSessionPlayback }>
A promise that resolves to an object containing the list of RoomSessionPlayback objects.
Example
In this example, we wait for a room to start and then start a playback in that room.
When a second member joins the roomSession, we use getPlaybacks to get the
list of playback objects. We then loop through the list of playbacks and print
out the state, url, and id of each playback. This example assumes that there is a RoomSession
already active and that members are joining the room.