setVideoConfig

open suspend override fun setVideoConfig(videoConfig: VideoConfig)

Configures video settings. It is the first method to call after a SingleStreamer instantiation. It must be call when both stream 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

videoConfig

Video configuration to set

Throws

if configuration can not be applied.