getStreams

View as Markdown

getStreams

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 documentation for more details.

Permissions

  • room.stream

You need to specify the permissions when creating the Video Room Token on the server side.

Example

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