ScreenRecorderSrtLiveStreamer

constructor(context: Context, enableAudio: Boolean = true, tsServiceInfo: TsServiceInfo = context.defaultTsServiceInfo, bitrateRegulatorFactory: IBitrateRegulatorFactory? = null, bitrateRegulatorConfig: BitrateRegulatorConfig? = null, initialOnErrorListener: OnErrorListener? = null, initialOnConnectionListener: OnConnectionListener? = null)

Parameters

context

application context

enableAudio

Boolean.true to also capture audio. False to disable audio capture.

tsServiceInfo

MPEG-TS service description

bitrateRegulatorFactory

a IBitrateRegulatorFactory implementation. Use it to customized bitrate regulator. If bitrateRegulatorConfig is not null, bitrateRegulatorFactory must not be null.

bitrateRegulatorConfig

bitrate regulator configuration. If bitrateRegulatorFactory is not null, bitrateRegulatorConfig must not be null.

initialOnErrorListener

initialize OnErrorListener

initialOnConnectionListener