Bitrate of the CDN live audio output stream in Kbps.
Positive integer. 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:
The background color in RGB hex value.
Value only, do not include a #. The default value is 0x000000. The value range is [0x000000, 0xffffff].
Height of the video.
Positive integer, the default value is 360. The value range is [1, 10000].
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. See TranscodingUser for details.
Number of users; default value is 0. The maximum is 17.
Bitrate of the CDN live output video stream.
Positive integer. The default value is 400 Kbps. The value range is [1,1000000].
Video codec profile type:
Frame rate of the output data stream set for CDN live.
Positive integer. The default value is 15 fps. The value range is [1, 10000].
Video GOP in frames. The default value is 30 frames. The value range is [1,10000].
Width of the video.
Positive integer, the default value is 640. The value range is [1, 10000].
A class for managing user-specific CDN live audio/video transcoding settings in setLiveTranscoding.
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: [], };