SingleStreamer

suspend fun SingleStreamer(context: Context, audioSourceFactory: IAudioSourceInternal.Factory, videoSourceFactory: IVideoSourceInternal.Factory, endpointFactory: IEndpointInternal.Factory, defaultRotation: Int): SingleStreamer

Creates a SingleStreamer with an audio source and a video source.

Parameters

context

the application context

audioSourceFactory

the audio source factory.

videoSourceFactory

the video source factory.

endpointFactory

the IEndpointInternal.Factory implementation. By default, it is a DynamicEndpointFactory.

defaultRotation

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