Voice SDK v3.7.1 API Reference for Unity
Public Attributes | List of all members
agora_gaming_rtc.VideoFrame Struct Reference

Public Attributes

VIDEO_FRAME_TYPE  type
 
int  width
 
int  height
 
int  yStride
 
byte[]  buffer
 
int  rotation
 
long  renderTimeMs
 
int  avsync_type
 

Detailed Description

Video frame containing the Agora RTC SDK's encoded video data.

Member Data Documentation

◆ avsync_type

int agora_gaming_rtc.VideoFrame.avsync_type

Reserved for future use.

◆ buffer

byte [] agora_gaming_rtc.VideoFrame.buffer

The buffer of the RGBA data.

◆ height

int agora_gaming_rtc.VideoFrame.height

Height (pixel) of the video frame.

◆ renderTimeMs

long agora_gaming_rtc.VideoFrame.renderTimeMs

The timestamp of the external audio frame. It is mandatory. You can use this parameter for the following purposes:

  • Restore the order of the captured audio frame.
  • Synchronize audio and video frames in video-related scenarios, including scenarios where external video sources are used.
    Note
    This timestamp is for rendering the video stream, and not for capturing the video stream.

◆ rotation

int agora_gaming_rtc.VideoFrame.rotation

Set the rotation of this frame before rendering the video. Supports 0, 90, 180, 270 degrees clockwise.

◆ type

VIDEO_FRAME_TYPE agora_gaming_rtc.VideoFrame.type

The video frame type: VIDEO_FRAME_TYPE.

◆ width

int agora_gaming_rtc.VideoFrame.width

Width (pixel) of the video frame.

◆ yStride

int agora_gaming_rtc.VideoFrame.yStride

Line span of the Y buffer within the video data.


The documentation for this struct was generated from the following file: