onUserVideoSizeChanged property
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.
- Video stream type. The primary stream (
- userId(String):
- User ID.
- newHeight(int):
Implementation
final void Function(String userId, TRTCVideoStreamType streamType, int newWidth, int newHeight)? onUserVideoSizeChanged;