onMediaPlayerStateUpdate method

void onMediaPlayerStateUpdate(
  1. ZegoMediaPlayer mediaPlayer,
  2. ZegoMediaPlayerState state,
  3. 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.

Implementation

void onMediaPlayerStateUpdate(
  ZegoMediaPlayer mediaPlayer,
  ZegoMediaPlayerState state,
  int errorCode,
) {}