***
id: 6a205f61-2e0b-4d71-a418-eabacd3c508d
title: RoomSessionStream
position: 7
slug: /js/reference/video/room-session-stream
max-toc-depth: 3
----------------
Represents a specific stream of a room session. This is an RTMP stream of the
audio/video content of the room, which will be sent to an external party (e.g.,
to YouTube).
You can start a stream with [RoomSession.startStream](/docs/browser-sdk/v3/js/reference/video/room-session/start-stream).
## Properties
Total seconds of time spent streaming, if available. This is equal to (`endedAt` - `startedAt`).
End time, if available.
The unique id of this stream.
The id of the room session associated to this stream.
Start time, if available.
Current state of the stream.
The RTMP URL of the stream.
## Methods
### stop
* **stop**(): `Promise`
Stops the stream.
#### Returns
`Promise`
#### Example
```javascript
await stream.stop();
```