SingleStreamer
A ISingleStreamer implementation for both audio and video.
Parameters
the application context
the audio output mode. By default, it is StreamerPipeline.AudioInputMode.CALLBACK.
the IEndpointInternal.Factory implementation. By default, it is a DynamicEndpointFactory.
the default rotation in Surface rotation (Surface.ROTATION_0, ...). By default, it is the current device orientation.
the ISurfaceProcessorInternal.Factory implementation. By default, it is a DefaultSurfaceProcessorFactory.
the IDispatcherProvider implementation. By default, it is a DispatcherProvider.
Constructors
Properties
The audio configuration flow.
Advanced settings for the audio encoder.
The audio input to access to advanced settings.
Adds a bitrate regulator controller to the streamer.
Configuration information
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.
Returns the last throwable that occurred.
The video configuration flow.
Advanced settings for the video encoder.
The video input to access to advanced settings.
Functions
Gets configuration information
Opens the streamer endpoint.
Opens the streamer endpoint.
Clean and reset the streamer synchronously.
Configures only audio settings.
Sets a new audio source.
Sets the camera id.
Configures both video and audio settings. It is the first method to call after a SingleStreamer instantiation. It must be call when both stream and audio and video capture are not running.
Sets the preview surface.
Sets a preview surface holder.
Sets a preview surface.
Sets the target rotation.
Configures only video settings.
Sets the video source.
Starts video preview.
Sets preview surface and start video preview.
Starts audio/video stream.
Starts audio/video stream.
Stops video preview.
Stops audio/video stream.