onPlayerSourceStateChanged property
Reports changes in player state.
When the player state changes, the SDK triggers this callback to report the new playback state.
stateThe new playback state. See MediaPlayerState.reasonThe reason for the player state change. See MediaPlayerReason.
Implementation
final void Function(MediaPlayerState state, MediaPlayerReason reason)?
onPlayerSourceStateChanged;