onMediaPlayerStateUpdate property
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.
mediaPlayer
Callback player object.state
Media player status.errorCode
Error code, please refer to the error codes document https://docs.zegocloud.com/en/5548.html for details.
Implementation
static void Function(ZegoMediaPlayer mediaPlayer, ZegoMediaPlayerState state,
int errorCode)? onMediaPlayerStateUpdate;