Agora C++ API Reference for All Platforms

Loading...
Searching...
No Matches
Public Member Functions | List of all members
agora::media::IVideoEncodedFrameObserver Class Referenceabstract

`#include <AgoraMediaBase.h>`

Inherited by agora::rtc::IMediaRecorderEx.

## Public Member Functions
virtual bool | onEncodedVideoFrameReceived (rtc::uid_t uid, const uint8_t *imageBuffer, size_t length, const rtc::EncodedVideoFrameInfo &videoEncodedFrameInfo)=0
virtual | ~IVideoEncodedFrameObserver ()

## Detailed Description

The IVideoEncodedFrameObserver class.

## Constructor & Destructor Documentation

## ◆ ~IVideoEncodedFrameObserver()

virtual agora::media::IVideoEncodedFrameObserver::~IVideoEncodedFrameObserver | ( |  | ) |
| inline virtual

## Member Function Documentation

## ◆ onEncodedVideoFrameReceived()

virtual bool agora::media::IVideoEncodedFrameObserver::onEncodedVideoFrameReceived | ( | rtc::uid_t | uid,
|  | const uint8_t * | imageBuffer,
|  | size_t | length,
|  | const rtc::EncodedVideoFrameInfo & | videoEncodedFrameInfo )
| pure virtual

Occurs each time the SDK receives an encoded video image.

Parameters

  uid | The user id of remote user.
  imageBuffer | The pointer to the video image buffer.
  length | The data length of the video image.
  videoEncodedFrameInfo | The information of the encoded video frame: EncodedVideoFrameInfo.

Returns
  Determines whether to accept encoded video image.
  - true: Accept.
  - false: Do not accept.