Video SDK v3.7.1 API Reference for Unity
|
Public Attributes | |
int | width |
int | height |
int | videoBitrate |
int | videoFramerate |
bool | lowLatency |
int | videoGop |
VIDEO_CODEC_PROFILE_TYPE | videoCodecProfile |
uint | backgroundColor |
uint | userCount |
TranscodingUser[] | transcodingUsers |
string | transcodingExtraInfo |
string | metadata |
RtcImage | watermark |
uint | watermarkCount |
RtcImage | backgroundImage |
uint | backgroundImageCount |
AUDIO_SAMPLE_RATE_TYPE | audioSampleRate |
int | audioBitrate |
int | audioChannels |
AUDIO_CODEC_PROFILE_TYPE | audioCodecProfile |
A struct for managing CDN live audio/video transcoding settings.
int agora_gaming_rtc.LiveTranscoding.width |
Width of the video. The default value is 360.
int agora_gaming_rtc.LiveTranscoding.height |
Height of the video. The default value is 640.
int agora_gaming_rtc.LiveTranscoding.videoBitrate |
Bitrate of the CDN live output video stream. The default value is 400 Kbps.
Set this parameter according to the Video Bitrate Table. If you set a bitrate beyond the proper range, the SDK automatically adapts it to a value within the range.
int agora_gaming_rtc.LiveTranscoding.videoFramerate |
Frame rate of the output video stream set for the CDN interactive live streaming. The default value is 15 fps, and the value range is (0,30].
bool agora_gaming_rtc.LiveTranscoding.lowLatency |
int agora_gaming_rtc.LiveTranscoding.videoGop |
Video GOP in frames. The default value is 30 fps.
VIDEO_CODEC_PROFILE_TYPE agora_gaming_rtc.LiveTranscoding.videoCodecProfile |
Self-defined video codec profile: VIDEO_CODEC_PROFILE_TYPE.
uint agora_gaming_rtc.LiveTranscoding.backgroundColor |
The background color in RGB hex value. Value only, do not include a #. For example, 0xFFB6C1 (light pink). The default value is 0x000000 (black).
uint agora_gaming_rtc.LiveTranscoding.userCount |
The number of users in the interactive live streaming.
TranscodingUser [] agora_gaming_rtc.LiveTranscoding.transcodingUsers |
string agora_gaming_rtc.LiveTranscoding.transcodingExtraInfo |
Reserved property. Extra user-defined information to send SEI for the H.264/H.265 video stream to the CDN live client. Maximum length: 4096 Bytes.
For more information on SEI frame, see SEI-related questions.
string agora_gaming_rtc.LiveTranscoding.metadata |
RtcImage agora_gaming_rtc.LiveTranscoding.watermark |
The watermark image added to the CDN live publishing stream.
Ensure that the format of the image is PNG. Once a watermark image is added, the audience of the CDN live publishing stream can see the watermark image. See RtcImage.
uint agora_gaming_rtc.LiveTranscoding.watermarkCount |
The number of watermarks on the live video. The value range is [0,100]. This parameter is used in conjunction with watermark.
RtcImage agora_gaming_rtc.LiveTranscoding.backgroundImage |
The background image added to the CDN live publishing stream.
Once a background image is added, the audience of the CDN live publishing stream can see the background image. See RtcImage.
uint agora_gaming_rtc.LiveTranscoding.backgroundImageCount |
The number of background images on the live video. The value range is [0,100]. This parameter is used in conjunction with backgroundImage
.
AUDIO_SAMPLE_RATE_TYPE agora_gaming_rtc.LiveTranscoding.audioSampleRate |
Self-defined audio-sample rate: AUDIO_SAMPLE_RATE_TYPE.
int agora_gaming_rtc.LiveTranscoding.audioBitrate |
Bitrate of the CDN live audio output stream. The default value is 48 Kbps, and the highest value is 128.
int agora_gaming_rtc.LiveTranscoding.audioChannels |
Agora's self-defined audio-channel types. We recommend choosing option 1 or 2. A special player is required if you choose option 3, 4, or 5:
AUDIO_CODEC_PROFILE_TYPE agora_gaming_rtc.LiveTranscoding.audioCodecProfile |
Self-defined audio codec profile: AUDIO_CODEC_PROFILE_TYPE.