isFormatSupportedForEncoder

fun isFormatSupportedForEncoder(requestFallback: Boolean = false): Boolean

Whether configuration is supported by the default encoder. If format is not supported, it won't be possible to start a stream.

Return

true if format is supported, otherwise false

Parameters

requestFallback

whether to request a fallback format if the preferred one is not supported


fun isFormatSupportedForEncoder(name: String, requestFallback: Boolean = false): Boolean

Check if this configuration is supported by the specified encoder. If format is not supported, it won't be possible to start a stream.

Return

true if format is supported, otherwise false

Parameters

name

the encoder name

requestFallback

whether to request a fallback format if the preferred one is not supported