Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface InjectStreamConfig

Configuration of the imported live broadcast voice or video stream.

Hierarchy

  • InjectStreamConfig

Index

Properties

audioBitrate

audioBitrate: number

Audio bitrate of the added stream in the live broadcast. The default value is 48. Note: Agora recommends setting the default value.

audioChannels

audioChannels: number

Audio channels in the live broadcast.

  • 1: (Default) Mono
  • 2: Two-channel stereo Note: Agora recommends setting the default value.

audioSampleRate

audioSampleRate: number

Audio-sampling rate of the added stream in the live broadcast. The default value is 44100 Hz. Note: Agora recommends setting the default value.

  • AUDIO_SAMPLE_RATE_32000 = 32000
  • AUDIO_SAMPLE_RATE_44100 = 44100(default)
  • AUDIO_SAMPLE_RATE_48000 = 48000

height

height: number

Height of the added stream in the live broadcast. The default value is 0 (same height as the original stream).

videoBitrate

videoBitrate: number

Video bitrate of the added stream in the live broadcast. The default value is 400 Kbps.

videoFrameRate

videoFrameRate: number

Video frame rate of the added stream in the live broadcast. The default value is 15 fps.

videoGop

videoGop: number

Video GOP of the added stream in the live broadcast in frames. The default value is 30 fps.

width

width: number

Width of the added stream in the live broadcast. The default value is 0 (same width as the original stream).