onVideoSizeChanged property

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

Occurs when the video size or rotation of a specified user changes.

  • connection The connection information. See RtcConnection .
  • sourceType The capture type of the custom video source. See VideoSourceType .
  • uid The ID of the user whose video size or rotation changes. (The uid for the local user is 0. The video is the local user's video preview).
  • width The width (pixels) of the video stream.
  • height The height (pixels) of the video stream.
  • rotation The rotation information. The value range is [0,360).

Implementation

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