onMediaPlayerRenderingProgress method

void onMediaPlayerRenderingProgress(
  1. ZegoMediaPlayer mediaPlayer,
  2. int millisecond
)

The callback to report the current rendering progress of the media player.

Description: The callback to report the current rendering progress of the media player. Set the callback interval by calling setProgressInterval. When the callback interval is set to 0, the callback is stopped. The default callback interval is 1 second. Trigger: This callback will be triggered when the media player starts playing resources. Restrictions: None. Related APIs: setProgressInterval.

  • mediaPlayer Callback player object.
  • millisecond Progress in milliseconds.

Implementation

void onMediaPlayerRenderingProgress(
  ZegoMediaPlayer mediaPlayer,
  int millisecond,
) {}