onMediaPlayerVideoSizeChanged property

(void Function(ZegoMediaPlayer mediaPlayer, int width, int height)?) onMediaPlayerVideoSizeChanged
getter/setter pair

The callback triggered when when the resolution of the playback video changes.

Available since: 3.11.0 Description: The callback triggered when when the resolution of the playback video changes. Trigger: When the media player is playing a video resource, This callback will be triggered when playback starts and the resolution of the video changes.

  • mediaPlayer Callback player object.
  • width width.
  • height height.

Implementation

static void Function(ZegoMediaPlayer mediaPlayer, int width, int height)?
    onMediaPlayerVideoSizeChanged;