StreamerPipeline

constructor(context: Context, withAudio: Boolean = true, withVideo: Boolean = true, audioInputMode: StreamerPipeline.AudioInputMode = AudioInputMode.PUSH, surfaceProcessorFactory: ISurfaceProcessorInternal.Factory = DefaultSurfaceProcessorFactory(), dispatcherProvider: IDispatcherProvider = DispatcherProvider())(source)

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.

audioInputMode

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

surfaceProcessorFactory

the factory to create the surface processor

dispatcherProvider

the coroutine dispatcher