Agora Java API Reference for Android

Public Member Functions | Public Attributes | List of all members
agora::rtc::EncodedVideoFrameInfo Struct Reference

`#include <AgoraBase.h>`

## Public Member Functions
| EncodedVideoFrameInfo (const EncodedVideoFrameInfo &rhs)
EncodedVideoFrameInfo & | operator= (const EncodedVideoFrameInfo &rhs)

## Public Attributes
uid_t | uid
VIDEO_CODEC_TYPE | codecType
int | width
int | height
int | framesPerSecond
VIDEO_FRAME_TYPE | frameType
VIDEO_ORIENTATION | rotation
int | trackId
int64_t | captureTimeMs
int64_t | decodeTimeMs
VIDEO_STREAM_TYPE | streamType
int64_t | presentationMs

## Detailed Description

The definition of the EncodedVideoFrameInfo struct, which contains the information of the external encoded video frame.

## Member Data Documentation

## ◆ uid

uid_t agora::rtc::EncodedVideoFrameInfo::uid

ID of the user that pushes the the external encoded video frame..

## ◆ codecType

VIDEO_CODEC_TYPE agora::rtc::EncodedVideoFrameInfo::codecType

The codec type of the local video stream. See #VIDEO_CODEC_TYPE. The default value is `VIDEO_CODEC_H265 (3)`.

## ◆ width

int agora::rtc::EncodedVideoFrameInfo::width

The width (px) of the video frame.

## ◆ height

int agora::rtc::EncodedVideoFrameInfo::height

The height (px) of the video frame.

## ◆ framesPerSecond

int agora::rtc::EncodedVideoFrameInfo::framesPerSecond

The number of video frames per second. When this parameter is not 0, you can use it to calculate the Unix timestamp of the external encoded video frames.

## ◆ frameType

VIDEO_FRAME_TYPE agora::rtc::EncodedVideoFrameInfo::frameType

The video frame type: #VIDEO_FRAME_TYPE.

## ◆ rotation

VIDEO_ORIENTATION agora::rtc::EncodedVideoFrameInfo::rotation

The rotation information of the video frame: #VIDEO_ORIENTATION.

## ◆ trackId

int agora::rtc::EncodedVideoFrameInfo::trackId

The track ID of the video frame.

## ◆ captureTimeMs

int64_t agora::rtc::EncodedVideoFrameInfo::captureTimeMs

This is a input parameter which means the timestamp for capturing the video.

## ◆ decodeTimeMs

int64_t agora::rtc::EncodedVideoFrameInfo::decodeTimeMs

The timestamp for decoding the video.

## ◆ streamType

VIDEO_STREAM_TYPE agora::rtc::EncodedVideoFrameInfo::streamType

The stream type of video frame.