Agora C++ API Reference for All Platforms

Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
agora::rtc::IAVDataObserver Class Referenceabstract

`#include <media_recorder_i.h>`

Inherited by agora::rtc::IMediaRecorderEx.

## Classes
struct | ADataInfo
struct | AVData
struct | VDataInfo

## Public Types
enum | AVDATA_TYPE { AVDATA_UNKNOWN = 0 , AVDATA_VIDEO = 1 , AVDATA_AUDIO = 2 , AVDATA_AUDIO_MUTE = 3 }
enum | CODEC_VIDEO { CODEC_VIDEO_AVC = 0 , CODEC_VIDEO_HEVC = 1 , CODEC_VIDEO_VP8 = 2 }
enum | CODEC_AUDIO { CODEC_AUDIO_PCM = 0 , CODEC_AUDIO_AAC = 1 , CODEC_AUDIO_G722 = 2 }

## Public Member Functions
virtual | ~IAVDataObserver ()
virtual bool | onAVDataReady (const AVData &avdata)=0

## Detailed Description

Definition of AVDataObserver

## Member Enumeration Documentation

## ◆ AVDATA_TYPE

enum agora::rtc::IAVDataObserver::AVDATA_TYPE

Metadata type of the observer.

Note
  We only support video metadata for now.

Enumerator
AVDATA_UNKNOWN | 0: the metadata type is unknown.
AVDATA_VIDEO | 1: the metadata type is video.
AVDATA_AUDIO | 2: the metadata type is video.
AVDATA_AUDIO_MUTE | 2: the metadata type is video.

## ◆ CODEC_VIDEO

enum agora::rtc::IAVDataObserver::CODEC_VIDEO

Enumerator
CODEC_VIDEO_AVC | 0: h264 avc codec.
CODEC_VIDEO_HEVC | 1: h265 hevc codec.
CODEC_VIDEO_VP8 | 2: vp8 codec.

## ◆ CODEC_AUDIO

enum agora::rtc::IAVDataObserver::CODEC_AUDIO

Enumerator
CODEC_AUDIO_PCM | 0: PCM audio codec.
CODEC_AUDIO_AAC | 1: aac audio codec.
CODEC_AUDIO_G722 | 2: G711 audio codec.

## Constructor & Destructor Documentation

## ◆ ~IAVDataObserver()

virtual agora::rtc::IAVDataObserver::~IAVDataObserver | ( |  | ) |
| inlinevirtual

## Member Function Documentation

## ◆ onAVDataReady()

virtual bool agora::rtc::IAVDataObserver::onAVDataReady | ( | const AVData & | avdata | ) |
| pure virtual