Interface InjectStreamConfig

The configurations for the injected online stream in AgoraRTCClient.addInjectStreamUrl.

Hierarchy

  • InjectStreamConfig

Index

Properties

Optional audioBitrate

audioBitrate: undefined | number

The audio bitrate (Kbps) of the injected stream.

A positive integer. The default value is 48.

Optional audioChannels

audioChannels: undefined | number

The number of audio channels of the injected stream.

A positive integer. The default value is 1. The value range is [1,2].

Optional audioSampleRate

audioSampleRate: undefined | number

The audio sampling rate of the injected stream.

  • 32000: 32 kHz
  • 44100: (Default) 44.1 kHz
  • 48000: 48 kHz

Agora recommends using the default value.

Optional audioVolume

audioVolume: undefined | number

Optional height

height: undefined | number

The height of the injected stream.

The default value is 0, which is the same height as the original stream.

Optional videoBitrate

videoBitrate: undefined | number

The video bitrate (Kbps) of the injected stream.

A positive integer. The default value is 400.

Optional videoFramerate

videoFramerate: undefined | number

The video frame rate (fps) of the injected stream.

A positive integer. The default value is 15.

Optional videoGop

videoGop: undefined | number

Optional width

width: undefined | number

The width of the injected stream.

The default value is 0, which is the same width as the original stream.