Agora Java API Reference for Android
Public Member Functions | Public Attributes | List of all members
io.agora.rtc2.video.EncodedVideoFrameInfo Class Reference

Public Member Functions

 EncodedVideoFrameInfo (int codecType, int width, int height, int framesPerSecond, int frameType, int rotation, int trackId, long renderTimeMs, long internalSendTs, int uid)
 
int getCodecType ()
 
int getWidth ()
 
int getHeight ()
 
int getFramesPerSecond ()
 
int getFrameType ()
 
int getRotation ()
 
int getTrackId ()
 
long getRenderTimeMs ()
 
long getInternalSendTs ()
 
int getUid ()
 
String toString ()
 

Public Attributes

int codecType
 
int width
 
int height
 
int framesPerSecond
 
int frameType
 
int rotation
 
int trackId
 
long renderTimeMs
 
long internalSendTs
 
int uid
 

Detailed Description

The EncodedVideoFrameInfo class, which defines the format of the encoded video frame.

Member Data Documentation

◆ codecType

int io.agora.rtc2.video.EncodedVideoFrameInfo.codecType

The codec type.

  • 1: VIDEO_CODEC_VP8.
  • 2: (Default) VIDEO_CODEC_H264.
  • 5: VIDEO_CODEC_VP9.

◆ width

int io.agora.rtc2.video.EncodedVideoFrameInfo.width

The width of this frame.

◆ height

int io.agora.rtc2.video.EncodedVideoFrameInfo.height

The height of this frame.

◆ framesPerSecond

int io.agora.rtc2.video.EncodedVideoFrameInfo.framesPerSecond

The number of frames per second of this frame.

◆ frameType

int io.agora.rtc2.video.EncodedVideoFrameInfo.frameType

The frame type:

  • 0: VIDEO_FRAME_TYPE_BLANK_FRAME.
  • 3: VIDEO_FRAME_TYPE_KEY_FRAME.
  • 4: VIDEO_FRAME_TYPE_DELTA_FRAME.
  • 5: VIDEO_FRAME_TYPE_B_FRAME.
  • 6: VIDEO_FRAME_TYPE_UNKNOWN.

◆ rotation

int io.agora.rtc2.video.EncodedVideoFrameInfo.rotation

The rotation information (clockwise) of this frame. Set it as 0, 90, 180 or 270.

◆ trackId

int io.agora.rtc2.video.EncodedVideoFrameInfo.trackId

The track ID. This member is used for scenarios with multiple video tracks.

◆ renderTimeMs

long io.agora.rtc2.video.EncodedVideoFrameInfo.renderTimeMs

The timestamp to render this frame.

◆ internalSendTs

long io.agora.rtc2.video.EncodedVideoFrameInfo.internalSendTs

The timestamp to send this frame internally.

◆ uid

int io.agora.rtc2.video.EncodedVideoFrameInfo.uid

ID of the user who sends this video.