selectVideoFormatsForDefaultDisplay
open fun selectVideoFormatsForDefaultDisplay(context: Context, formatWrappers: List<out Representation>, allowedContainerMimeTypes: Array<String>, filterHdFormats: Boolean): Array<Int>
Chooses a suitable subset from a number of video formats, to be rendered on the device's default display.
Return
An array holding the indices of the selected formats.
Parameters
context
A context.
formatWrappers
Wrapped formats from which to select.
allowedContainerMimeTypes
An array of allowed container mime types. Null allows all mime types.
filterHdFormats
True to filter HD formats. False otherwise.
Throws
MediaCodecUtil.DecoderQueryException
Thrown if there was an error querying decoders.