> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # RoomSessionStream 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 **`duration`** `number` Total seconds of time spent streaming, if available. This is equal to (`endedAt` - `startedAt`). --- **`endedAt`** `Date` End time, if available. --- **`id`** `string` — required The unique id of this stream. --- **`roomSessionId`** `string` — required The id of the room session associated to this stream. --- **`startedAt`** `Date` — required Start time, if available. --- **`state`** `"streaming" | "completed"` — required Current state of the stream. --- **`url`** `string` — required The RTMP URL of the stream. --- ## Methods ### stop * **stop**(): `Promise` Stops the stream. #### Returns `Promise` #### Example ```javascript await stream.stop(); ```