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 imported live broadcast voice or video stream.

Member Data Documentation

◆ width

int agora_gaming_rtc.InjectStreamConfig.width

Width of the added stream in the live broadcast. The default value is 0 (same width as the original stream).

◆ height

int agora_gaming_rtc.InjectStreamConfig.height

Height of the added stream in the live broadcast. The default value is 0 (same height as the original stream).

◆ videoGop

int agora_gaming_rtc.InjectStreamConfig.videoGop

Video GOP of the added stream in the live broadcast in frames. The default value is 30 fps.

◆ videoFramerate

int agora_gaming_rtc.InjectStreamConfig.videoFramerate

Video frame rate of the added stream in the live broadcast. The default value is 15 fps.

◆ videoBitrate

int agora_gaming_rtc.InjectStreamConfig.videoBitrate

Video bitrate of the added stream in the live broadcast. 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_gaming_rtc.InjectStreamConfig.audioSampleRate

Audio-sample rate of the added stream in the live broadcast: AUDIO_SAMPLE_RATE_TYPE. The default value is 48000 Hz.

Note
We recommend setting the default value.

◆ audioBitrate

int agora_gaming_rtc.InjectStreamConfig.audioBitrate

Audio bitrate of the added stream in the live broadcast. The default value is 48.

Note
We recommend setting the default value.

◆ audioChannels

int agora_gaming_rtc.InjectStreamConfig.audioChannels

Audio channels in the live broadcast.

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