onMediaPlayerRenderingProgress property

(void Function(ZegoMediaPlayer mediaPlayer, int millisecond)?) onMediaPlayerRenderingProgress
read / write

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

Available since: 3.8.0 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

static void Function(ZegoMediaPlayer mediaPlayer, int millisecond)?
    onMediaPlayerRenderingProgress;