Agora Server Gateway SDK C++ API Reference
Public Member Functions | List of all members
IVideoEncodedFrameObserver Class Referenceabstract

#include <AgoraMediaBase.h>

Public Member Functions

virtual bool OnEncodedVideoFrame (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 IVideoEncodedFrameObserver::~IVideoEncodedFrameObserver ( )
inlinevirtual

Member Function Documentation

◆ OnEncodedVideoFrame()

virtual bool IVideoEncodedFrameObserver::OnEncodedVideoFrame ( 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
uidThe user id of remote user.
imageBufferThe pointer to the video image buffer.
lengthThe data length of the video image.
videoEncodedFrameInfoThe information of the encoded video frame: EncodedVideoFrameInfo.
Returns
Determines whether to accept encoded video image.
  • true: Accept.
  • false: Do not accept.

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