onMediaPlayerFirstFrameEvent method
void
onMediaPlayerFirstFrameEvent(
- ZegoMediaPlayer mediaPlayer,
- ZegoMediaPlayerFirstFrameEvent event
The callback triggered when the media player plays the first frame.
Description: The callback triggered when the media player plays the first frame.
Trigger: This callback is generated when the media player starts playing.
Caution: The callback does not actually take effect until call setEventHandler
to set.
Related APIs: You need to call the setPlayerCanvas
interface to set the view for the media player in order to receive the video first frame event callback.
mediaPlayer
Callback player object.event
The first frame callback event type.
Implementation
void onMediaPlayerFirstFrameEvent(
ZegoMediaPlayer mediaPlayer,
ZegoMediaPlayerFirstFrameEvent event,
) {}