The audio bitrate (Kbps) of the CDN live stream.
A positive integer. The default value is 48, and the highest value is 128.
The number of audio channels for the CDN live stream.
Agora recommends choosing 1 (mono), or 2 (stereo) audio channels. Special players are required if you choose 3, 4, or 5.
The audio sampling rate:
The background color in RGB hex.
Value only. Do not include a preceding #. The default value is 0x000000. The value range is [0x000000, 0xffffff].
The height of the video in pixels.
A positive integer. The default value is 360.
height
is at least 64; otherwise, the Agora server adjusts the value to 64.width
and height
as 0.DEPRECATED
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.
The number of users; default value is 0. The maximum is 17.
The bitrate (Kbps) of the output video stream.
A positive integer. The default value is 400 Kbps. The value range is [1,1000000].
Set the bitrate according to the Video Profile Table. If you set a bitrate beyond the proper range, the SDK automatically adapts it to a value within the range.
The video codec profile type.
Set it as 66, 77, or 100 (default). If you set this parameter to any other value, Agora adjusts it to the default value 100.
The video frame rate (fps) of the CDN live stream.
A positive integer. The default value is 15 fps. The value range is [1, 30]. The Agora server adjusts any value over 30 to 30.
The video GOP in frames. The default value is 30 frames. The value range is [1,10000].
The width of the video in pixels.
A positive integer, the default value is 640.
width
is at least 64; otherwise, the Agora server adjusts the value to 64.width
and height
as 0.
The configurations for CDN live stream transcoding. To be used in setLiveTranscoding.
Sample code
var LiveTranscoding = { width: 640, height: 360, videoBitrate: 400, videoFramerate: 15, audioSampleRate: AgoraRTC.AUDIO_SAMPLE_RATE_48000, audioBitrate: 48, audioChannels: 1, videoGop: 30, videoCodecProfile: AgoraRTC.VIDEO_CODEC_PROFILE_HIGH, userCount: 0, backgroundColor: 0x000000, transcodingUsers: [], images: [], };