VideoOnlySingleStreamer

suspend fun VideoOnlySingleStreamer(context: Context, videoSourceFactory: IVideoSourceInternal.Factory, endpointFactory: IEndpointInternal.Factory = DynamicEndpointFactory(), defaultRotation: Int = context.displayRotation): VideoOnlySingleStreamer

Creates a VideoOnlySingleStreamer 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.

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.