SingleStreamer
A ISingleStreamer implementation for audio and video.
Parameters
the application context
Boolean.true to capture audio. It can't be changed after instantiation.
Boolean.true to capture video. It can't be changed after instantiation.
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.
Constructors
Properties
The audio configuration flow.
Advanced settings for the audio encoder.
Advanced settings for the audio processor.
The audio source. It allows advanced audio source settings.
Gets 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 source. It allows advanced video source settings.
Functions
Adds a bitrate regulator controller.
Gets configuration information from MediaDescriptor.
Opens the streamer endpoint.
Opens the streamer endpoint.
Clean and reset the streamer synchronously.
Removes the bitrate regulator controller.
Sets activity result from ComponentActivity.registerForActivityResult callback.
Configures audio settings. It is the first method to call after a SingleStreamer instantiation. It must be call when both stream and audio capture are not running.
Sets the 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 video settings. It is the first method to call after a SingleStreamer instantiation. It must be call when both stream and video capture are not running.
Sets the video source.
Starts video preview.
Sets preview surface and start video preview.
Starts audio/video stream. Stream depends of the endpoint: Audio/video could be write to a file or send to a remote device. To avoid creating an unresponsive UI, do not call on main thread.
Starts audio/video stream.
Stops video preview.
Stops audio/video stream.