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.
Properties
duration
Total seconds of time spent streaming, if available. This is equal to (endedAt - startedAt).
endedAt
End time, if available.
id
The unique id of this stream.
roomSessionId
The id of the room session associated to this stream.
startedAt
Start time, if available.
state
Current state of the stream.
url
The RTMP URL of the stream.
Methods
stop
- stop():
Promise<void>
Stops the stream.
Returns
Promise<void>