Agora Server Gateway SDK C++ API Reference
Public Member Functions | Protected Member Functions | List of all members
agora::rtc::IVideoFrameSender Class Referenceabstract

#include <NGIAgoraMediaNode.h>

Public Member Functions

virtual int sendVideoFrame (const media::base::ExternalVideoFrame &videoFrame)=0
 

Protected Member Functions

 ~IVideoFrameSender ()
 

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

agora::rtc::IVideoFrameSender::~IVideoFrameSender ( )
inlineprotected

Member Function Documentation

◆ sendVideoFrame()

virtual int agora::rtc::IVideoFrameSender::sendVideoFrame ( const media::base::ExternalVideoFrame &  videoFrame)
pure virtual

Sends the YUV video frame to the video track.

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

The documentation for this class was generated from the following file: