The IVideoFrameConsumer class. The SDK uses it to receive the video frame that you capture.
Receives the raw video frame.
- Ensure that the video frame type that you specify in this method is the same as that in the getBufferType callback.
|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 |
|timestamp||The Unix timestamp (ms) of the video frame. You must set a timestamp for each video frame. |