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)=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 ( )
inlineprotected

Member Function Documentation

◆ sendVideoFrame()

virtual int sendVideoFrame ( const media::base::ExternalVideoFrame videoFrame)
pure virtual

Sends the video frame to the video track.

Parameters
videoFrameThe reference to the video frame to send.
Returns
  • 0: Success.
  • < 0: Failure.

◆ AddRef()

virtual void AddRef ( ) const
pure virtualinherited

◆ Release()

virtual RefCountReleaseStatus Release ( ) const
pure virtualinherited

◆ HasOneRef()

virtual bool HasOneRef ( ) const
pure virtualinherited