getStreams

View as Markdown

getStreams

  • getStreams(): Promise<{ streams: RoomSessionStream }> - See RoomSessionStream for more details.

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 details.

Example

1const s = await roomSession.getStreams();
2for (const stream of s.streams) {
3 console.log(stream.id, stream.url);
4}