onMediaPlayerStateUpdate property

(void Function(ZegoMediaPlayer mediaPlayer, ZegoMediaPlayerState state, int errorCode)?) onMediaPlayerStateUpdate
getter/setter pair

MediaPlayer playback status callback.

Available since: 1.3.4 Description: MediaPlayer playback status callback. Trigger: The callback triggered when the state of the media player changes. Restrictions: None.

Implementation

static void Function(ZegoMediaPlayer mediaPlayer, ZegoMediaPlayerState state,
    int errorCode)? onMediaPlayerStateUpdate;