VideoFormatSelectorUtil

Selects from possible video formats. The class is a derivative of VideoFormatSelectorUtil Google ExoPlayer 1 SDK.

Functions

Link copied to clipboard
open fun selectVideoFormats(formatWrappers: List<out Representation>, allowedContainerMimeTypes: Array<String>, filterHdFormats: Boolean, orientationMayChange: Boolean, viewportWidth: Int, viewportHeight: Int): Array<Int>
Chooses a suitable subset from a number of video formats.
Link copied to clipboard
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.