onMediaPlayerPlayingProgress method
The callback to report the current playback progress of the media player.
Description: The callback triggered when the network status of the media player changes.
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: When the media player is playing network resources, this callback will be triggered when the status change of the cached data.
Restrictions: None.
Related APIs: setProgressInterval
.
mediaPlayer
Callback player object.millisecond
Progress in milliseconds.
Implementation
void onMediaPlayerPlayingProgress(
ZegoMediaPlayer mediaPlayer,
int millisecond,
) {}