Agora RTC Objective-C API Reference Refactor

Public Member Functions
IVideoFrameSender Class Referenceabstract

Inherits RefCountInterface.

## Public Member Functions
virtual int | sendVideoFrame (const media::base::ExternalVideoFrame &videoFrame, aosl_ref_t ares=AOSL_REF_INVALID)=0

## Detailed Description

The `IVideoFrameSender` class.

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

## Constructor & Destructor Documentation

## ◆ ~IVideoFrameSender()

~IVideoFrameSender | ( |  | ) |
| inline protected

## Member Function Documentation

## ◆ sendVideoFrame()

virtual int sendVideoFrame | ( | const media::base::ExternalVideoFrame & | videoFrame,
|  | aosl_ref_t | ares = `AOSL_REF_INVALID`
| ) |  |
| pure virtual

Sends the video frame to the video track.

Parameters

  videoFrame | The reference to the video frame to send.

Returns
  - 0: Success.
  - < 0: 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