This represents the codec used to encode and decode the stream.
This represents a unique identifier assigned to the stream.
This represents the kind of the stream.
This represents whether the stream is currently paused.
This represents the underlying media track associated with the stream.
Removes an event listener that was previously registered.
Event name to which you want to unsubscribe.
Callback function which was passed while subscribing to the event.
To view the complete list of available events and their details, refer to StreamEvent.
Registers an event listener.
Event name to which you want to subscribe.
A callback function that is executed when the specified event is emitted.
To view the complete list of available events and their details, refer to StreamEvent.
The
Streamclass is responsible for handling audio, video, and screen-sharing streams.