setConfig

@RequiresPermission(value = "android.permission.RECORD_AUDIO")
suspend fun setConfig(audioConfig: DualStreamerAudioConfig, videoConfig: DualStreamerVideoConfig)

Configures both video and audio settings.

It must be call when both stream and audio and video capture are not running.

Use IConfigurationInfo 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

See also

Throws

if configuration can not be applied.