TrackSelectionOption

@UnstableApi
class TrackSelectionOption


Represents a unique track configuration available for selection, based on the active TrackFilters.

This configuration encapsulates specific track properties (like language or resolution) and indicates whether it is currently supported and selected by the player.

Summary

Public constructors

TrackSelectionOption(
    isSupported: Boolean,
    isSelected: Boolean,
    language: String?,
    width: Int?,
    height: Int?,
    sampleMimeType: String?,
    onOffState: @OnOffState Int
)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

Int?

The video height associated with this option, or null.

Boolean

Whether the option is currently selected.

Boolean

Whether the option is supported by the device.

String?

The language associated with this option, or null.

@OnOffState Int

The OnOffState representing this option.

String?

The sample MIME type associated with this option, or null.

Int?

The video width associated with this option, or null.

Public constructors

TrackSelectionOption

TrackSelectionOption(
    isSupported: Boolean,
    isSelected: Boolean,
    language: String? = null,
    width: Int? = null,
    height: Int? = null,
    sampleMimeType: String? = null,
    onOffState: @OnOffState Int = TRACK_SELECTION_ON
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

height

val height: Int?

The video height associated with this option, or null.

isSelected

val isSelected: Boolean

Whether the option is currently selected.

isSupported

val isSupported: Boolean

Whether the option is supported by the device.

language

val language: String?

The language associated with this option, or null.

onOffState

val onOffState: @OnOffState Int

The OnOffState representing this option.

sampleMimeType

val sampleMimeType: String?

The sample MIME type associated with this option, or null.

width

val width: Int?

The video width associated with this option, or null.