Agora C++ API Reference for All Platforms
Loading...
Searching...
No Matches
agora::media::IVideoEncodedFrameObserver Class Referenceabstract

#include <AgoraMediaBase.h>

Inherited by agora::rtc::IMediaRecorderEx.

Public Member Functions

virtual bool onEncodedVideoFrameReceived (const char *channelId, rtc::uid_t uid, const uint8_t *imageBuffer, size_t length, const rtc::EncodedVideoFrameInfo &videoEncodedFrameInfo)=0
 
virtual ~IVideoEncodedFrameObserver ()
 

Detailed Description

Constructor & Destructor Documentation

◆ ~IVideoEncodedFrameObserver()

virtual agora::media::IVideoEncodedFrameObserver::~IVideoEncodedFrameObserver ( )
inlinevirtual

Member Function Documentation

◆ onEncodedVideoFrameReceived()

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

Reports that the receiver has received the to-be-decoded video frame sent by the remote end.

If you call the setRemoteVideoSubscriptionOptions method and set encodedFrameOnly to true, the SDK triggers this callback locally to report the received encoded video frame information.

Since
4.6.0
Parameters
channelIdThe channel name.
uidThe user ID of the remote user.
imageBufferThe encoded video image buffer.
lengthThe data length of the video image.
videoEncodedFrameInfoFor the information of the encoded video frame, see EncodedVideoFrameInfo.
Returns
Without practical meaning.