cameraVideoOnlyDualStreamer
suspend fun cameraVideoOnlyDualStreamer(context: Context, cameraId: String = context.defaultCameraId, firstEndpointFactory: IEndpoint.Factory = DynamicEndpointFactory(), secondEndpointFactory: IEndpoint.Factory = DynamicEndpointFactory(), defaultRotation: Int = context.displayRotation, surfaceProcessorFactory: ISurfaceProcessor.Factory = DefaultSurfaceProcessorFactory(), dispatcherProvider: IDispatcherProvider = DispatcherProvider()): VideoOnlyDualStreamer(source)
Creates a VideoOnlyDualStreamer with the camera as video source and no audio source.
Parameters
context
the application context
cameraId
the camera id to use. By default, it is the default camera.
firstEndpointFactory
the IEndpoint.Factory implementation of the first output. By default, it is a DynamicEndpointFactory.
secondEndpointFactory
the IEndpoint.Factory implementation of the second output. 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 to use to create the video processor. By default, it is a DefaultSurfaceProcessorFactory.
dispatcherProvider
the IDispatcherProvider implementation. By default, it is a DispatcherProvider.