DualStreamer
A class that handles 2 outputs.
For example, you can use it to live stream and record simultaneously.
Parameters
the application context
the IEndpointInternal implementation of the first output. By default, it is a DynamicEndpoint.
the IEndpointInternal implementation of the second output. By default, it is a DynamicEndpoint.
the default rotation in Surface rotation (Surface.ROTATION_0, ...). By default, it is the current device orientation.
the ISurfaceProcessorInternal.Factory implementation to use to create the video processor. By default, it is a DefaultSurfaceProcessorFactory.
the IDispatcherProvider implementation. By default, it is a DispatcherProvider.
Constructors
Properties
The audio input to access to advanced settings.
First output of the streamer.
Returns true if output is opened. For example, if the streamer is connected to a server if the endpoint is SRT or RTMP.
Whether the video source has a preview.
Returns true if stream is running.
Second output of the streamer.
Returns the last throwable that occurred.
The video input to access to advanced settings.
Functions
Clean and reset the streamer synchronously.
Configures only audio settings.
Sets audio configuration.
Sets a new audio source.
Sets the camera id.
Configures both video and audio settings.
Sets the preview surface.
Sets a preview surface holder.
Sets a preview surface.
Sets the target rotation.
Configures only video settings.
Sets video configuration.
Sets the video source.
Starts video preview.
Sets preview surface and start video preview.
Starts audio/video stream.
Stops video preview.
Stops audio/video stream.