SingleStreamer
suspend fun SingleStreamer(context: Context, audioSourceFactory: IAudioSource.Factory, videoSourceFactory: IVideoSource.Factory, audioInputMode: AudioInputMode = AudioInputMode.CALLBACK, endpointFactory: IEndpoint.Factory = DynamicEndpointFactory(), defaultRotation: Int = context.displayRotation, surfaceProcessorFactory: ISurfaceProcessor.Factory = DefaultSurfaceProcessorFactory(), dispatcherProvider: IDispatcherProvider = DispatcherProvider()): SingleStreamer(source)
Creates a SingleStreamer with an audio source and a video source.
Parameters
context
the application context
audioSourceFactory
the audio source factory.
videoSourceFactory
the video source factory.
audioInputMode
the audio output mode. By default, it is AudioInputMode.CALLBACK.
endpointFactory
the IEndpoint.Factory implementation. By default, it is a DynamicEndpointFactory.
defaultRotation
the default rotation in Surface rotation (Surface.ROTATION_0, ...). By default, it is the current device orientation.
surfaceProcessorFactory
the ISurfaceProcessor.Factory implementation. By default, it is a DefaultSurfaceProcessorFactory.
dispatcherProvider
the IDispatcherProvider implementation. By default, it is a DispatcherProvider.