Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface InjectStreamConfig

Configuration of the imported live streaming voice or video stream.

Hierarchy

  • InjectStreamConfig

Index

Properties

audioBitrate

audioBitrate: number

Audio bitrate of the added stream in the live streaming.

The default value is 48 Kbps.

Note: Agora recommends setting the default value.

audioChannels

audioChannels: number

Audio channels in the live streaming.

  • 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 streaming.

The default value is 44100 Hz.

Note: Agora recommends setting the default value.

  • AUDIO_SAMPLE_RATE_32000 = 32000 Hz
  • AUDIO_SAMPLE_RATE_44100 = 44100 Hz
  • AUDIO_SAMPLE_RATE_48000 = 48000 Hz

height

height: number

Height of the added stream in the live streaming.

The default value is 0 pixel (same height as the original stream).

videoBitrate

videoBitrate: number

Video bitrate of the added stream in the live streaming.

The default value is 400 Kbps.

videoFramerate

videoFramerate: number

Video frame rate of the added stream in the live streaming.

The default value is 15 fps.

videoGop

videoGop: number

Video GOP of the added stream in the live streaming in frames.

The default value is 30 fps.

width

width: number

Width of the added stream in the live streaming.

The default value is 0 pixel (same width as the original stream).