Audio bitrate of the added stream to the broadcast.
Positive integer. The default value is 48. The value range is [1, 10000].
Note:
Agora recommends that you stay with the default value and not reset it at this point of time.
Audio channels to add into the broadcast.
Positive integer. The default value is 1. The value range is [1, 2].
Note:
Agora recommends that you stay with the default value and not reset it at this point of time.
Audio sampling rate of the added stream to the broadcast.
Note:
Agora recommends that you stay with the default value and not reset it at this point of time.
Height of the added stream to the broadcast.
Integer, the default value is 0, which is the same height as the original stream. The value range is [0, 10000].
Video bitrate of the added stream to the broadcast.
Positive integer. The default value is 400 Kbps. The value range is [1, 10000].
Note:
The setting of the video bitrate is closely linked to the resolution. If the video bitrate you set is beyond the reasonable range, the SDK will set it within the reasonable range instead.
Video frame rate of the added stream to the broadcast.
Positive integer. The default value is 15 fps. The value range is [1, 10000].
Video GOP of the added stream to the broadcast.
Positive integer. The default value is 30 frames. The value range is [1, 10000].
Width of the added stream to the broadcast.
Integer, the default value is 0, which is the same width as the original stream. The value range is [0, 10000].
A class for configuring the imported live broadcast voice or video stream.
Sample code
var InjectStreamConfig = { width: 0, height: 0, videoGop: 30, videoFramerate: 15, videoBitrate: 400, audioSampleRate: 44100, audioChannels: 1, };