Agora Server Gateway SDK C++ API Reference
|
#include <NGIAgoraVideoTrack.h>
Public Member Functions | |
virtual bool | addRenderer (agora_refptr< IVideoSinkBase > videoRenderer, media::base::VIDEO_MODULE_POSITION position=media::base::POSITION_POST_FILTERS)=0 |
virtual bool | removeRenderer (agora_refptr< IVideoSinkBase > videoRenderer, media::base::VIDEO_MODULE_POSITION position=media::base::POSITION_POST_FILTERS)=0 |
virtual VideoTrackType | getType ()=0 |
Protected Member Functions | |
~IVideoTrack () | |
The IVideoTrack
class defines the behavior and status of a video track.
|
inlineprotected |
|
pure virtual |
Adds a video renderer to the video track.
Add a video renderer in either of the following ways:
IVideoRenderer
in the IMediaNodeFactory
class.IVideoSinkBase
class.videoRenderer | The video renderer that you want to add: IVideoSinkBase. |
position | The position where the renderer is added. |
true
: The video renderer is added successfully.false
: The video renderer fails to be added.
|
pure virtual |
Get the track type of the video track
|
pure virtual |
Removes the video renderer added by addRenderer
from the video track.
videoRenderer | The video renderer that you want to remove: IVideoSinkBase. |
position | The position where the renderer is removed: VIDEO_MODULE_POSITION. |
true
: The video renderer is removed successfully.false
: The video renderer fails to be removed.