onMediaPlayerFirstFrameEvent property

(void Function(ZegoMediaPlayer mediaPlayer, ZegoMediaPlayerFirstFrameEvent event)?) onMediaPlayerFirstFrameEvent
getter/setter pair

The callback triggered when the media player plays the first frame.

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

static void Function(
        ZegoMediaPlayer mediaPlayer, ZegoMediaPlayerFirstFrameEvent event)?
    onMediaPlayerFirstFrameEvent;