onMediaPlayerVideoSizeChanged method

void onMediaPlayerVideoSizeChanged(
  1. ZegoMediaPlayer mediaPlayer,
  2. int width,
  3. int height
)

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

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

void onMediaPlayerVideoSizeChanged(
  ZegoMediaPlayer mediaPlayer,
  int width,
  int height,
) {}