> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# getStreams

> getStreams method for the RoomSession class.

### getStreams

* **getStreams**(): `Promise<{ streams: RoomSessionStream}>` - See [RoomSessionStream documentation](/docs/browser-sdk/v3/js/reference/video/room-session-stream) 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 documentation](/docs/browser-sdk/v3/js/reference/video/room-session-stream) for more details.

#### Permissions

* `room.stream`

You need to specify the permissions when [creating the Video Room Token](/docs/apis/rest/video/room-tokens/create-room-token) on the server side.

#### Example

```javascript
const s = await roomSession.getStreams();
for (const stream of s.streams) {
  console.log(stream.id, stream.url);
}
```