onMediaPlayerStateUpdate method
void
onMediaPlayerStateUpdate(
- ZegoMediaPlayer mediaPlayer,
- ZegoMediaPlayerState state,
- int errorCode
MediaPlayer playback status callback.
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
void onMediaPlayerStateUpdate(
ZegoMediaPlayer mediaPlayer,
ZegoMediaPlayerState state,
int errorCode,
) {}