AgoraEncodedVideoFrameInfo
外部编码视频帧的信息。
Objective-C
__attribute__((visibility("default"))) @interface AgoraEncodedVideoFrameInfo: NSObject
@property (assign, nonatomic) AgoraVideoCodecType codecType;
@property (assign, nonatomic) NSInteger width;
@property (assign, nonatomic) NSInteger height;
@property (assign, nonatomic) NSInteger framesPerSecond;
@property (assign, nonatomic) AgoraVideoFrameType frameType;
@property (assign, nonatomic) NSInteger rotation;
@property (assign, nonatomic) NSInteger trackId;
@property (assign, nonatomic) NSInteger captureTimeMs;
@property (assign, nonatomic) NSInteger uid;
@property (assign, nonatomic) AgoraVideoStreamType streamType;
@end
codecType
视频编码类型,详见 AgoraVideoCodecType
。默认值为 AgoraVideoCodecTypeH264 (2)
。
width
视频帧的宽度 (px)。
height
视频帧的高度 (px)。
framesPerSecond
每秒的视频帧数。
当该参数不为 0
时,你可以用它计算外部编码视频帧的 Unix 时间戳。
frameType
视频帧的类型,详见 AgoraVideoFrameType
。
rotation
视频帧的旋转信息,详见 AgoraVideoRotation
。
trackId
预留参数。
captureTimeMs
采集外部编码视频帧的 Unix 时间戳 (ms)。
uid
推送外部编码视频帧的用户 ID。
streamType
视频流类型。详见 AgoraVideoStreamType
。