StreamerPipeline

constructor(context: Context, withAudio: Boolean = true, withVideo: Boolean = true, audioOutputMode: StreamerPipeline.AudioOutputMode = AudioOutputMode.PUSH, coroutineDispatcher: CoroutineDispatcher = Dispatchers.Default)

Parameters

context

the application context

withAudio

whether the streamer has audio. It will create necessary audio components.

withVideo

whether the streamer has video. It will create necessary video components.

audioOutputMode

the audio output mode. It can be AudioOutputMode.PUSH or AudioOutputMode.CALLBACK. Only use AudioOutputMode.CALLBACK when you have a single output and its implements IAudioCallbackPipelineOutputInternal. By default, it is AudioOutputMode.PUSH.

coroutineDispatcher

the coroutine dispatcher