onVideoSizeChanged property
void Function(RtcConnection connection, VideoSourceType sourceType, int uid, int width, int height, int rotation)?
onVideoSizeChanged
final
本地或远端视频大小和旋转信息发生改变回调。
connectionConnection 信息。详见 RtcConnection 。sourceType视频源的类型。详见 VideoSourceType 。uid图像尺寸和旋转信息发生变化的用户 ID(本地用户的 uid 为 0。此时视频为本地用户的视频预览)。width视频流的宽度(像素)。height视频流的高度(像素)。rotation旋转信息,取值范围 [0,360)。 在 iOS 平台上,该参数值始终为 0。
Implementation
final void Function(RtcConnection connection, VideoSourceType sourceType,
int uid, int width, int height, int rotation)? onVideoSizeChanged;