---title: RoomSessionStreamsidebar_position: 100---Represents a specific stream of a room session. This is an RTMP stream of theaudio/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](./video-roomsession.mdx#startstream).## Properties### duration• Optional **duration**: numberTotal seconds of time spent streaming, if available. This is equal to (endedAt - startedAt).---### endedAt• Optional **endedAt**: DateEnd time, if available.---### id• **id**: stringThe unique id of this stream.---### roomSessionId• **roomSessionId**: stringThe id of the room session associated to this stream.---### startedAt• **startedAt**: DateStart time, if available.---### state• **state**: streaming \| completedCurrent state of the stream.---### url• **url**: stringThe RTMP URL of the stream.## Methods### stop▸ **stop**(): PromiseStops the stream.#### ReturnsPromise#### Examplejavascriptawait stream.stop();