ScreenRecorderSrtLiveStreamer
BaseScreenRecorderStreamer that sends microphone and screen frames to a remote Secure Reliable Transport (SRT) device. To run this streamer while application is on background, you have to extend a Service. To simplify the integration, a service is provided in ScreenRecorderSrtLiveService.
As an example, see demo-screenrecorder
.
Parameters
application context
Boolean.true to also capture audio. False to disable audio capture.
MPEG-TS service description
a IBitrateRegulatorFactory implementation. Use it to customized bitrate regulator. If bitrateRegulatorConfig is not null, bitrateRegulatorFactory must not be null.
bitrate regulator configuration. If bitrateRegulatorFactory is not null, bitrateRegulatorConfig must not be null.
initialize OnErrorListener
initialize OnConnectionListener
Constructors
Properties
Get/set bidirectional latency in milliseconds. See: SRT Socket Options
Get/set SRT passphrase. See: SRT Socket Options
Get/set SRT stream ID. See: SRT Socket Options
Functions
Connect to an SRT server with correct Live streaming parameters. To avoid creating an unresponsive UI, do not call on main thread.
Same as BaseScreenRecorderLiveStreamer.startStream but also starts bitrate regulator.
Connect to an SRT server and start stream. Same as calling connect, then startStream. To avoid creating an unresponsive UI, do not call on main thread.
Same as BaseScreenRecorderLiveStreamer.stopStream but also stops bitrate regulator.