Media Player Kit v1.3.0 API Reference for Android
io.agora.mediaplayer.data.VideoFrame Class Reference

Public Member Functions

 VideoFrame (int format, ByteBuffer buffer, byte[] bytes, int stride, int height, int width, int rotation, long timestamp)
 
String toString ()
 

Public Attributes

int format
 
ByteBuffer buffer
 
byte[] bytes
 
int stride
 
int height
 
int width
 
int rotation
 
long timestamp
 

Detailed Description

The VideoFrame class, reporting the detailed information of the incoming video frame.

Member Data Documentation

◆ format

int io.agora.mediaplayer.data.VideoFrame.format

The pixel format of the video frame.

◆ buffer

ByteBuffer io.agora.mediaplayer.data.VideoFrame.buffer

The buffer of the video data.

◆ bytes

byte [] io.agora.mediaplayer.data.VideoFrame.bytes

The number of bytes of the video data.

◆ stride

int io.agora.mediaplayer.data.VideoFrame.stride

The line spacing (pixel) of the incoming video frame.

◆ height

int io.agora.mediaplayer.data.VideoFrame.height

The height (pixel) of the video.

◆ width

int io.agora.mediaplayer.data.VideoFrame.width

The width (pixel) of the video.

◆ rotation

int io.agora.mediaplayer.data.VideoFrame.rotation

The clockwise rotation of the incoming video frame.

Optional values: 0, 90, 180, or 270. The default value is 0.

◆ timestamp

long io.agora.mediaplayer.data.VideoFrame.timestamp

The timestamp (ms) of the video frame.