Agora Java API Reference for Android
Public Member Functions | List of all members
agora::rtc::IVideoFrameSender Class Referenceabstract

#include <NGIAgoraMediaNode.h>

Inheritance diagram for agora::rtc::IVideoFrameSender:
agora::RefCountInterface

Public Member Functions

virtual int sendVideoFrame (const media::base::ExternalVideoFrame &videoFrame)=0
 
- Public Member Functions inherited from agora::RefCountInterface
virtual void AddRef () const =0
 
virtual RefCountReleaseStatus Release () const =0
 
virtual bool HasOneRef () const =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.

Member Function Documentation

◆ sendVideoFrame()

virtual int agora::rtc::IVideoFrameSender::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.