cameraVideoOnlyDualStreamer

suspend fun cameraVideoOnlyDualStreamer(context: Context, cameraId: String = context.defaultCameraId, firstEndpointFactory: IEndpointInternal.Factory = DynamicEndpointFactory(), secondEndpointFactory: IEndpointInternal.Factory = DynamicEndpointFactory(), defaultRotation: Int = context.displayRotation): VideoOnlyDualStreamer

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 IEndpointInternal.Factory implementation of the first output. By default, it is a DynamicEndpointFactory.

secondEndpointFactory

the IEndpointInternal.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.