This represents the codec used to encode and decode the stream.
This represents the surface type of a screen-share stream — whether the shared source is an entire screen ("monitor"), an application window ("window"), or a browser tab ("browser").
Note
This is available for screen-share streams of both local and remote participants. It will be
undefinedfor audio, video, or any non-screen-share stream, and on browsers that do not support this feature.
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.