videoMediaProjectionVideoOnlySingleStreamer

suspend fun videoMediaProjectionVideoOnlySingleStreamer(context: Context, mediaProjection: MediaProjection, endpointFactory: IEndpointInternal.Factory = DynamicEndpointFactory(), defaultRotation: Int = context.displayRotation, surfaceProcessorFactory: ISurfaceProcessorInternal.Factory = DefaultSurfaceProcessorFactory(), dispatcherProvider: IDispatcherProvider = DispatcherProvider()): VideoOnlySingleStreamer(source)

Creates a VideoOnlySingleStreamer with the screen as video source and no audio source.

Parameters

context

the application context

mediaProjection

the media projection. It can be obtained with MediaProjectionManager.getMediaProjection. Don't forget to call MediaProjection.stop when you are done.

endpointFactory

the IEndpointInternal.Factory implementation

defaultRotation

the default rotation in Surface rotation (Surface.ROTATION_0, ...). By default, it is the current device orientation.

surfaceProcessorFactory

the ISurfaceProcessorInternal.Factory implementation. By default, it is a DefaultSurfaceProcessorFactory.

dispatcherProvider

the IDispatcherProvider implementation. By default, it is a DispatcherProvider.