configure

@RequiresPermission(value = "android.permission.RECORD_AUDIO")
open override fun configure(audioConfig: AudioConfig)

Configures audio settings. It is the first method to call after a BaseStreamer instantiation. It must be call when both stream and audio capture are not running.

Use IConfigurationHelper to get value limits.

Parameters

audioConfig

Audio configuration to set

Throws

if configuration can not be applied.


open override fun configure(videoConfig: VideoConfig)

Configures video settings. It is the first method to call after a BaseStreamer instantiation. It must be call when both stream and video capture are not running.

Use IConfigurationHelper to get value limits.

If video encoder does not support VideoConfig.level or VideoConfig.profile, it fallbacks to video encoder default level and default profile.

Parameters

videoConfig

Video configuration to set

Throws

if configuration can not be applied.


@RequiresPermission(value = "android.permission.RECORD_AUDIO")
open override fun configure(audioConfig: AudioConfig, videoConfig: VideoConfig)

Configures both video and audio settings. It is the first method to call after a BaseStreamer instantiation. It must be call when both stream and audio and video capture are not running.

Use IConfigurationHelper to get value limits.

If video encoder does not support VideoConfig.level or VideoConfig.profile, it fallbacks to video encoder default level and default profile.

Parameters

audioConfig

Audio configuration to set

videoConfig

Video configuration to set

Throws

if configuration can not be applied.