Bitrate of the CDN live audio output stream in Kbps. The default value is 48, and the highest value is 128.
Agora’s self-defined audio channel type.
Agora recommends choosing 1 or 2. Special players are required if you choose 3, 4 or 5:
Audio sampling rate:
Background color; default value is 0x000000.
Height of the video.
Latency mode:
Manages the user layout configuration in the CDN live streaming.
Agora supports a maximum of 17 transcoding users in a CDN streaming channel.
Transparency of the video frame.
The value ranges between 0.0 and 1.0:
Height of the video.
User ID of the CDN live host.
Width of the video.
The position of the upper left end of the video on the horizontal axis.
The position of the upper left end of the video on the vertical axis.
Layer position of the video frame.
The value ranges between 0 and 100.
From v2.3.0, Agora SDK supports setting zOrder as 0.
Number of users; default value is 0.
Bitrate of the CDN live output video stream. The default value is 400 Kbps.
Video codec profile type:
Frame rate of the output data stream set for CDN live. The default value is 15 fps.
Video GOP in frames. The default value is 30 fps.
Width of the video.
A class for managing user-specific CDN live audio/video transcoding settings.
Sample Code
var LiveTranscoding = { width: 640, height: 360, videoBitrate: 400, videoFramerate: 15, lowLatency: false, audioSampleRate: AgoraRTC.AUDIO_SAMPLE_RATE_48000, audioBitrate: 48, audioChannels: 1, videoGop: 30, videoCodecProfile: AgoraRTC.VIDEO_CODEC_PROFILE_HIGH, userCount: 0, backgroundColor: 0x000000, transcodingUsers: [], };