onUserVideoSizeChanged property

(void Function(String userId, TRTCVideoStreamType streamType, int newWidth, int newHeight)?) onUserVideoSizeChanged
final

Change of Remote Video Size

If you receive the onUserVideoSizeChanged(userId, streamType, newWidth, newHeight) callback, it indicates that the user changed the video size. It may be triggered by setVideoEncoderParam or setSubStreamEncoderParam.

  • Parameters:
    • newHeight(int):
      • Video height.
    • newWidth(int):
      • Video width.
    • streamType(TRTCVideoStreamType):
      • Video stream type. The primary stream (Main) is usually used for camera images, and the substream (Sub) for screen sharing images.
    • userId(String):
      • User ID.

Implementation

final void Function(String userId, TRTCVideoStreamType streamType, int newWidth, int newHeight)? onUserVideoSizeChanged;