Agora Server Gateway SDK C++ API Reference
|
#include <NGIAgoraVideoTrack.h>
Public Member Functions | |
virtual void | setEnabled (bool enable)=0 |
virtual int | setVideoEncoderConfiguration (const VideoEncoderConfiguration &config)=0 |
virtual int | enableSimulcastStream (bool enabled, const SimulcastStreamConfig &config)=0 |
virtual int | setSimulcastStreamMode (SIMULCAST_STREAM_MODE mode, const SimulcastStreamConfig &config)=0 |
virtual LOCAL_VIDEO_STREAM_STATE | getState ()=0 |
virtual bool | getStatistics (LocalVideoTrackStats &stats)=0 |
Public Member Functions inherited from agora::rtc::IVideoTrack | |
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 | |
~ILocalVideoTrack () | |
Protected Member Functions inherited from agora::rtc::IVideoTrack | |
~IVideoTrack () | |
ILocalVideoTrack
is the base class for local video tracks, providing the main methods of local video tracks.
After creating local video tracks, you can publish one or more local video tracks by calling publishVideo.
|
inlineprotected |
|
pure virtual |
Enables or disables the simulcast stream mode.
enabled | Determines whether to enable or disable the simulcast stream mode.
|
config | The reference to the configurations for the simulcast stream mode. See SimulcastStreamConfig. |
|
pure virtual |
Gets the state of the local video stream.
|
pure virtual |
Gets the statistics of the local video track.
[out] | stats | The reference to the statistics of the local video track. |
true
: Success.false
: Failure.
|
pure virtual |
Enables or disables the local video track.
Once the local video track is enabled, the SDK allows for local video capturing, processing, and encoding.
enable | Determines whether to enable the local video track.
|
|
pure virtual |
Sets the dual-stream mode on the sender side.
The SDK enables the low-quality video stream auto mode on the sender by default, which is equivalent to calling this method and setting the mode to AUTO_SIMULCAST_STREAM
. If you want to modify this behavior, you can call this method and modify the mode to DISABLE_SIMULCAST_STREAM
(never send low-quality video streams) or ENABLE_SIMULCAST_STREAM
(always send low-quality video streams).
DISABLE_SIMULCAST_STREAM
, it has the same effect as enableSimulcastStream(false)
.ENABLE_SIMULCAST_STREAM
, it has the same effect as enableSimulcastStream(true)
.mode | The mode in which the video stream is sent. See SIMULCAST_STREAM_MODE. |
config | The configuration of the low-quality video stream. See SimulcastStreamConfig. If you set the mode parameter to DISABLE_SIMULCAST_STREAM , the config parameter does not take effect. |
|
pure virtual |
Sets the video encoder configuration.
Each video encoder configuration corresponds to a set of video parameters, including the resolution, frame rate, bitrate, and video orientation.
The configurations specified in this method are the maximum values under ideal network conditions. If the video engine cannot render the video using the specified parameters due to poor network conditions, the configurations further down the list are considered until a successful configuration is found.
config | The reference to the video encoder configuration. See VideoEncoderConfiguration. |