videoSubscribeStateChanged property

StreamSubscribeStateCallback? videoSubscribeStateChanged
getter/setter pair

Occurs when the video subscribing state changes.

This callback indicates the subscribing state change of a remote video stream.

The StreamSubscribeStateCallback typedef includes the following parameters:

Implementation

///
/// This callback indicates the subscribing state change of a remote video stream.
///
/// The `StreamSubscribeStateCallback` typedef includes the following parameters:
/// - [String] `channel`: The channel name.
/// - [StreamSubscribeState] `oldState`: The previous publishing state. See [StreamPublishState].
/// - [StreamSubscribeState] `newState`: The current publishing state. See [StreamPublishState].
/// - [int] `elapseSinceLastState`: The time elapsed (ms) from the previous state to the current state.
StreamSubscribeStateCallback? videoSubscribeStateChanged;