getStreams
getStreams
- getStreams():
Promise<\{ streams: RoomSessionStream \}>
Obtains a list of active streams for this RoomSession. These are RTMP streams of the audio/video content of this room, which will be sent to an external party (e.g., to YouTube).
Returns
Promise<\{ streams: RoomSessionStream \}> - See RoomSessionStream for more information.
Example
In this example, we wait for a room to start and then start a stream in that room.
We then use getStreams to get the list of stream objects. We then loop through
the list of streams and print out the state and id of each stream.
Afterwards, we stop the stream after 10 seconds. This example assumes that there is a RoomSession
already active and that members are joining the room.