StreamState

Health of a remote video or screen-share stream, delivered to the listener set with RTCStream.setOnStreamStateChangedListener.

Only video and share streams are watched — audio never reports a state. The freeze and stuck values come from the receive-side stats poll; ACTIVE and ENDED come from the server resuming or closing the stream.

Entries

Link copied to clipboard

The decoder's freeze counter grew since the last stats sample — the picture has stopped moving.

Link copied to clipboard

Frames have flowed again for five seconds after a freeze. Fires once per freeze episode.

Link copied to clipboard

The server resumed the stream, so frames are expected again.

Link copied to clipboard

The server closed the stream. Nothing more arrives on it; drop the view.

Link copied to clipboard

Nothing has arrived for five seconds — the receive bitrate is flat zero. Reported at most once per five-second window, so a permanently dead track does not spam the listener.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.