#include <IAgoraRtcEngine.h>
The IVideoFrameConsumer class. The SDK uses it to receive the video frame that you capture.
◆ consumeRawVideoFrame()
Receives the raw video frame.
- Note
- Ensure that the video frame type that you specify in this method is the same as that in the getBufferType callback.
- Parameters
-
buffer | The video buffer. |
frameType | The video frame type. See VIDEO_PIXEL_FORMAT. |
width | The width (px) of the video frame. |
height | The height (px) of the video frame. |
rotation | The angle (degree) at which the video frame rotates clockwise. If you set the rotation angle, the SDK rotates the video frame after receiving it. You can set the rotation angle as 0 , 90 , 180 , and 270 . |
timestamp | The Unix timestamp (ms) of the video frame. You must set a timestamp for each video frame. |