Video SDK v3.7.1 API Reference for All Platforms (C++)
agora::rtc::InjectStreamConfig Struct Reference

Public Member Functions

 InjectStreamConfig ()
 

Public Attributes

int width
 
int height
 
int videoGop
 
int videoFramerate
 
int videoBitrate
 
AUDIO_SAMPLE_RATE_TYPE audioSampleRate
 
int audioBitrate
 
int audioChannels
 

Detailed Description

Configuration of the injected media stream.

Constructor & Destructor Documentation

◆ InjectStreamConfig()

agora::rtc::InjectStreamConfig::InjectStreamConfig ( )
inline

Member Data Documentation

◆ width

int agora::rtc::InjectStreamConfig::width

Width of the injected stream in the interactive live streaming. The default value is 0 (same width as the original stream).

◆ height

int agora::rtc::InjectStreamConfig::height

Height of the injected stream in the interactive live streaming. The default value is 0 (same height as the original stream).

◆ videoGop

int agora::rtc::InjectStreamConfig::videoGop

Video GOP (in frames) of the injected stream in the interactive live streaming. The default value is 30 fps.

◆ videoFramerate

int agora::rtc::InjectStreamConfig::videoFramerate

Video frame rate of the injected stream in the interactive live streaming. The default value is 15 fps.

◆ videoBitrate

int agora::rtc::InjectStreamConfig::videoBitrate

Video bitrate of the injected stream in the interactive live streaming. The default value is 400 Kbps.

Note
The setting of the video bitrate is closely linked to the resolution. If the video bitrate you set is beyond a reasonable range, the SDK sets it within a reasonable range.

◆ audioSampleRate

AUDIO_SAMPLE_RATE_TYPE agora::rtc::InjectStreamConfig::audioSampleRate

Audio-sample rate of the injected stream in the interactive live streaming: AUDIO_SAMPLE_RATE_TYPE. The default value is 48000 Hz.

Note
We recommend setting the default value.

◆ audioBitrate

int agora::rtc::InjectStreamConfig::audioBitrate

Audio bitrate of the injected stream in the interactive live streaming. The default value is 48.

Note
We recommend setting the default value.

◆ audioChannels

int agora::rtc::InjectStreamConfig::audioChannels

Audio channels in the interactive live streaming.

  • 1: (Default) Mono
  • 2: Two-channel stereo
Note
We recommend setting the default value.