#include <IAgoraRtcEngine.h>
Public 成员函数 | |
| virtual void | consumeRawVideoFrame (const unsigned char *buffer, agora::media::ExternalVideoFrame::VIDEO_PIXEL_FORMAT frameType, int width, int height, int rotation, long timestamp)=0 |
IVideoFrameConsumer 类,用于让 SDK 接收你采集的视频帧。
|
pure virtual |
SDK 接收原始视频数据。
| buffer | 视频 buffer。 |
| frameType | 视频帧类型。详见 VIDEO_PIXEL_FORMAT。 |
| width | 视频帧的宽度(px)。 |
| height | 视频帧的高度(px)。 |
| rotation | 视频帧顺时针旋转的角度。如果设置了旋转角度,视频帧发送给 SDK 后,SDK 会对视频图像进行旋转。 取值可为 0 度、90 度、180 度和 270 度。 |
| timestamp | 视频帧的 Unix 时间戳(毫秒)。你必须为每一帧视频帧设置一个时间戳。 |