Agora C++ API Reference for All Platforms

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

`#include <AgoraExtensions.h>`

## Public Member Functions
virtual | ~IExtensionEncoderCallback ()
virtual void | onEncodedImage (const ExtensionEncodedImage *img, const char *extended_info_json)=0
virtual void | printLog (commons::LOG_LEVEL level, const char *format,...)=0

## Constructor & Destructor Documentation

## ◆ ~IExtensionEncoderCallback()

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

## Member Function Documentation

## ◆ onEncodedImage()

virtual void agora::rtc::IExtensionEncoderCallback::onEncodedImage | ( | const ExtensionEncodedImage * | img,
|  | const char * | extended_info_json )
| pure virtual

Called when a video frame has been successfully encoded.

Parameters

  img | A pointer to the encoded image data.
  extended_info_json | A JSON formatted string containing additional information about the encoded frame.

## ◆ printLog()

virtual void agora::rtc::IExtensionEncoderCallback::printLog | ( | commons::LOG_LEVEL | level,
|  | const char * | format,
|  |  | ... )
| pure virtual

Logs messages at various log levels.

Parameters

  level | The log level indicating the severity of the message (e.g., INFO, WARNING, ERROR).
  format | A format string for the log message, similar to printf formatting.
  ... | Additional arguments to format the log message.