DualStreamer
A class that handles 2 outputs.
For example, you can use it to live stream and record simultaneously.
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 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.
Constructors
Properties
Advanced settings for the audio processor.
An audio source flow to access to advanced settings.
First output of the streamer.
Whether any of the output is opening.
Whether the video source has a preview.
Whether any of the output is streaming.
Second output of the streamer.
Returns the last throwable that occurred.
A video source flow to access to advanced settings.
Functions
Clean and reset the streamer synchronously.
Sets activity result from ComponentActivity.registerForActivityResult callback.
Sets audio configuration.
Sets the 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.
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.