This represents the codec used to encode and decode the stream.
This represents the kind of the stream.
This represents whether the stream is currently paused.
This represents the Stream instance.
This represents the underlying media track associated with the stream.
Triggered when the state of a video or screen-share stream changes.
This event helps track whether the stream is active, stuck, frozen,recovered, or ended.
Note
This event is emitted only for remote participants and applies specifically to video and screen-share streams.
The current state of the stream:
"active" — The stream is functioning normally."stuck" — The stream is no longer progressing as expected."freeze-detected" — A freeze in the video stream has been detected."freeze-resolved" — The previously detected freeze has been resolved."ended" — The stream has ended.Timestamp (in milliseconds since epoch) indicating when the state change occurred.
useStreamprovides reactive access to a participant’s audio, video, and screen-share streams along with stream controls and events.