VideoOnlySingleStreamer

suspend fun VideoOnlySingleStreamer(context: Context, videoSourceFactory: IVideoSource.Factory, endpointFactory: IEndpoint.Factory = DynamicEndpointFactory(), defaultRotation: Int = context.displayRotation, surfaceProcessorFactory: ISurfaceProcessor.Factory = DefaultSurfaceProcessorFactory(), dispatcherProvider: IDispatcherProvider = DispatcherProvider()): VideoOnlySingleStreamer(source)

Creates a VideoOnlySingleStreamer with a default video source.

Parameters

context

the application context

videoSourceFactory

the video source factory. If parameter is null, no audio source are set. It can be set later with VideoOnlySingleStreamer.setVideoSource.

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.