Agora RTC Objective-C API Reference Refactor

Public Member Functions
IVideoEncodedImageSender Class Referenceabstract

Inherits RefCountInterface.

## Public Member Functions
virtual bool | sendEncodedVideoImage (const uint8_t *imageBuffer, size_t length, const EncodedVideoFrameInfo &videoEncodedFrameInfo, aosl_ref_t ares=AOSL_REF_INVALID)=0

## Detailed Description

The `IVideoEncodedImageSender` class.

In scenarios involving custom video sources, you can use this class to send the encoded video data directly to the video track. If the video track is disabled, the sent video image will be automatically discarded.

## Constructor & Destructor Documentation

## ◆ ~IVideoEncodedImageSender()

~IVideoEncodedImageSender | ( |  | ) |
| inline protected

## Member Function Documentation

## ◆ sendEncodedVideoImage()

virtual bool sendEncodedVideoImage | ( | const uint8_t * | imageBuffer,
|  | size_t | length,
|  | const EncodedVideoFrameInfo & | videoEncodedFrameInfo,
|  | aosl_ref_t | ares = `AOSL_REF_INVALID`
| ) |  |
| pure virtual

Sends the encoded video image to the video track.

Parameters

  imageBuffer | The video buffer.
  length | The data length of the video data.
  videoEncodedFrameInfo | The reference to the information of the encoded video frame: EncodedVideoFrameInfo.

Returns
  - `true`: Success.
  - `false`: Failure.

## ◆ AddRef()

virtual void AddRef | ( |  | ) | const
| pure virtual inherited

## ◆ Release()

virtual RefCountReleaseStatus Release | ( |  | ) | const
| pure virtual inherited

## ◆ HasOneRef()

virtual bool HasOneRef | ( |  | ) | const
| pure virtual inherited