onVideoSizeChanged property

void Function(RtcConnection connection, VideoSourceType sourceType, int uid, int width, int height, int rotation)? onVideoSizeChanged
final

Callback when the size and rotation of local or remote video changes.

  • connection Connection information. See RtcConnection.
  • sourceType Type of video source. See VideoSourceType.
  • uid User ID whose video size or rotation has changed (uid is 0 for local user, indicating local video preview).
  • width Width of the video stream (pixels).
  • height Height of the video stream (pixels).
  • rotation Rotation information, value range [0,360). On iOS, this value is always 0.

Implementation

final void Function(RtcConnection connection, VideoSourceType sourceType,
    int uid, int width, int height, int rotation)? onVideoSizeChanged;