onLocalVideoStateChanged property
void Function(VideoSourceType source, LocalVideoStreamState state, LocalVideoStreamReason reason)?
onLocalVideoStateChanged
final
Occurs when the local video stream state changes.
When the status of the local video changes, the SDK triggers this callback to report the current local video state and the reason for the state change.
source
The type of the video source. See VideoSourceType.state
The state of the local video, see LocalVideoStreamState.reason
The reasons for changes in local video state. See LocalVideoStreamReason.
Implementation
final void Function(VideoSourceType source, LocalVideoStreamState state,
LocalVideoStreamReason reason)? onLocalVideoStateChanged;