Voice SDK v3.7.1 API Reference for Unity
Public Attributes | List of all members
agora_gaming_rtc.InjectStreamConfig Struct Reference

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.

Member Data Documentation

◆ audioBitrate

int agora_gaming_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_gaming_rtc.InjectStreamConfig.audioChannels

Audio channels in the interactive live streaming.

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

◆ audioSampleRate

AUDIO_SAMPLE_RATE_TYPE agora_gaming_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.

◆ height

int agora_gaming_rtc.InjectStreamConfig.height

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

◆ videoBitrate

int agora_gaming_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.

◆ videoFramerate

int agora_gaming_rtc.InjectStreamConfig.videoFramerate

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

◆ videoGop

int agora_gaming_rtc.InjectStreamConfig.videoGop

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

◆ width

int agora_gaming_rtc.InjectStreamConfig.width

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


The documentation for this struct was generated from the following file: