DualStreamer
suspend fun DualStreamer(context: Context, audioSourceFactory: IAudioSourceInternal.Factory, videoSourceFactory: IVideoSourceInternal.Factory, firstEndpointFactory: IEndpointInternal.Factory, secondEndpointFactory: IEndpointInternal.Factory, defaultRotation: Int): DualStreamer
Creates a DualStreamer with an audio source and a video source.
Parameters
context
the application context
audioSourceFactory
the audio source factory.
videoSourceFactory
the video source factory.
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.