DualStreamer

constructor(context: Context, withAudio: Boolean = true, withVideo: Boolean = true, firstEndpointFactory: IEndpointInternal.Factory = DynamicEndpointFactory(), secondEndpointFactory: IEndpointInternal.Factory = DynamicEndpointFactory(), defaultRotation: Int = context.displayRotation, surfaceProcessorFactory: ISurfaceProcessorInternal.Factory = DefaultSurfaceProcessorFactory(), dispatcherProvider: IDispatcherProvider = DispatcherProvider())(source)

Parameters

context

the application context

withAudio

true to capture audio. It can't be changed after instantiation.

withVideo

true to capture video. It can't be changed after instantiation.

firstEndpointFactory

the IEndpointInternal implementation of the first output. By default, it is a DynamicEndpoint.

secondEndpointFactory

the IEndpointInternal implementation of the second output. By default, it is a DynamicEndpoint.

defaultRotation

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

surfaceProcessorFactory

the ISurfaceProcessorInternal.Factory implementation to use to create the video processor. By default, it is a DefaultSurfaceProcessorFactory.