实时音视频 SPARKRTC-数据类型:HWRtcVideoFrame

时间:2024-01-15 15:39:43

HWRtcVideoFrame

表37 视频帧信息

属性

描述

@property (assign, nonatomic) HWRtcVideoImageFormat format;

图像格式 ,具体请参见HWRtcVideoImageFormat

@property (assign, nonatomic) NSUInteger width;

图像宽度,作为输入时,范围为[90,1920],必须是4的整数倍

@property (assign, nonatomic) NSUInteger height;

图像高度,作为输入时,范围为[90,1200],必须是2的整数倍

@property (strong, nonatomic) NSData * _Nullable data;

存储视频数据的buf地址

@property (assign, nonatomic) NSUInteger dataLen;

视频数据的长度,单位为Byte

@property (strong, nonatomic) NSString *userId;

被选看的远端用户本地推流不需要赋值

support.huaweicloud.com/csdk-rtc/rtc_05_0082.html