StreamerPipeline
constructor(context: Context, withAudio: Boolean = true, withVideo: Boolean = true, audioOutputMode: StreamerPipeline.AudioOutputMode = AudioOutputMode.PUSH, surfaceProcessorFactory: ISurfaceProcessorInternal.Factory = DefaultSurfaceProcessorFactory(), 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.
surfaceProcessorFactory
the factory to create the surface processor
coroutineDispatcher
the coroutine dispatcher