cameraDualStreamer
suspend fun cameraDualStreamer(context: Context, cameraId: String = context.defaultCameraId, audioSourceFactory: IAudioSourceInternal.Factory? = MicrophoneSourceFactory(), firstEndpointFactory: IEndpointInternal.Factory = DynamicEndpointFactory(), secondEndpointFactory: IEndpointInternal.Factory = DynamicEndpointFactory(), defaultRotation: Int = context.displayRotation): DualStreamer
Creates a DualStreamer with a default audio source.
Parameters
context
the application context
cameraId
the camera id to use. By default, it is the default camera.
audioSourceFactory
the audio source factory. By default, it is the default microphone source factory. If set to null, you will have to set it later explicitly.
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.