ParcelableDefaultTrackSelector.Parameterspublic class TrackSelectionParameters extends Object implements Parcelable
| Modifier and Type | Class | Description |
|---|---|---|
static class |
TrackSelectionParameters.Builder |
A builder for
TrackSelectionParameters. |
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>| Modifier and Type | Field | Description |
|---|---|---|
static Parcelable.Creator<TrackSelectionParameters> |
CREATOR |
|
static TrackSelectionParameters |
DEFAULT |
Deprecated.
This instance is not configured using
Context constraints. |
static TrackSelectionParameters |
DEFAULT_WITHOUT_CONTEXT |
An instance with default values, except those obtained from the
Context. |
int |
disabledTextTrackSelectionFlags |
Bitmask of selection flags that are disabled for text track selections.
|
ImmutableList<String> |
preferredAudioLanguages |
The preferred languages for audio and forced text tracks as IETF BCP 47 conformant tags in
order of preference.
|
int |
preferredAudioRoleFlags |
The preferred
C.RoleFlags for audio tracks. |
ImmutableList<String> |
preferredTextLanguages |
The preferred languages for text tracks as IETF BCP 47 conformant tags in order of preference.
|
int |
preferredTextRoleFlags |
The preferred
C.RoleFlags for text tracks. |
boolean |
selectUndeterminedTextLanguage |
Whether a text track with undetermined language should be selected if no track with
preferredTextLanguages is available, or if preferredTextLanguages is unset. |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Modifier and Type | Method | Description |
|---|---|---|
TrackSelectionParameters.Builder |
buildUpon() |
Creates a new
TrackSelectionParameters.Builder, copying the initial values from this instance. |
int |
describeContents() |
|
boolean |
equals(Object obj) |
|
static TrackSelectionParameters |
getDefaults(Context context) |
Returns an instance configured with default values.
|
int |
hashCode() |
|
void |
writeToParcel(Parcel dest,
int flags) |
public static final TrackSelectionParameters DEFAULT_WITHOUT_CONTEXT
Context.
If possible, use getDefaults(Context) instead.
This instance will not have the following settings:
Preferred text language and role flags configured to the accessibility settings of
CaptioningManager.
@Deprecated public static final TrackSelectionParameters DEFAULT
Context constraints. Use getDefaults(Context) instead.public final ImmutableList<String> preferredAudioLanguages
@RoleFlags public final int preferredAudioRoleFlags
C.RoleFlags for audio tracks. 0 selects the default track if
there is one, or the first track if there's no default. The default value is 0.public final ImmutableList<String> preferredTextLanguages
CaptioningManager if
enabled.@RoleFlags public final int preferredTextRoleFlags
C.RoleFlags for text tracks. 0 selects the default track if there
is one, or no track otherwise. The default value is 0, or C.ROLE_FLAG_SUBTITLE
| C.ROLE_FLAG_DESCRIBES_MUSIC_AND_SOUND if the accessibility CaptioningManager
is enabled.public final boolean selectUndeterminedTextLanguage
preferredTextLanguages is available, or if preferredTextLanguages is unset. The
default value is false.@SelectionFlags public final int disabledTextTrackSelectionFlags
C.SelectionFlags. The default value is 0 (i.e. no flags).public static final Parcelable.Creator<TrackSelectionParameters> CREATOR
public static TrackSelectionParameters getDefaults(Context context)
public TrackSelectionParameters.Builder buildUpon()
TrackSelectionParameters.Builder, copying the initial values from this instance.public int describeContents()
describeContents in interface Parcelablepublic void writeToParcel(Parcel dest, int flags)
writeToParcel in interface Parcelable