VideoOnlyDualStreamer
suspend fun VideoOnlyDualStreamer(context: Context, videoSourceFactory: IVideoSourceInternal.Factory, firstEndpointFactory: IEndpointInternal.Factory = DynamicEndpointFactory(), secondEndpointFactory: IEndpointInternal.Factory = DynamicEndpointFactory(), defaultRotation: Int = context.displayRotation): VideoOnlyDualStreamer
Creates a VideoOnlyDualStreamer 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.
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.