MediaFormatCustomHandler

typealias MediaFormatCustomHandler = MediaFormat.(requestFallback: Boolean) -> Unit

Type alias for a function that modifies a MediaFormat. The function takes a Boolean parameter requestFallback which indicates whether to request a fallback format if the preferred one is not supported. When requestFallback is true, the function should adjust the MediaFormat to a more compatible configuration.

Parameters

requestFallback

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