public static final class DefaultTrackSelector.Parameters
extends java.lang.Object
DefaultTrackSelector.| Modifier and Type | Field and Description |
|---|---|
boolean |
allowMixedMimeAdaptiveness
Whether to allow adaptive selections containing mixed mime types.
|
boolean |
allowNonSeamlessAdaptiveness
Whether to allow adaptive selections where adaptation may not be completely seamless.
|
static DefaultTrackSelector.Parameters |
DEFAULT
An instance with default values:
No preferred audio language.
|
int |
disabledTextTrackSelectionFlags
Bitmask of selection flags that are disabled for text track selections.
|
boolean |
exceedRendererCapabilitiesIfNecessary
Whether to exceed renderer capabilities when no selection can be made otherwise.
|
boolean |
exceedVideoConstraintsIfNecessary
Whether to exceed video constraints when no selection can be made otherwise.
|
boolean |
forceLowestBitrate
Whether to force selection of the single lowest bitrate audio and video tracks that comply
with all other constraints.
|
int |
maxVideoBitrate
Maximum video bitrate.
|
int |
maxVideoHeight
Maximum allowed video height.
|
int |
maxVideoWidth
Maximum allowed video width.
|
java.lang.String |
preferredAudioLanguage
The preferred language for audio, as well as for forced text tracks, as an ISO 639-2/T tag.
|
java.lang.String |
preferredTextLanguage
The preferred language for text tracks as an ISO 639-2/T tag.
|
boolean |
selectUndeterminedTextLanguage
Whether a text track with undetermined language should be selected if no track with
preferredTextLanguage is available, or if preferredTextLanguage is unset. |
int |
viewportHeight
Viewport height in pixels.
|
boolean |
viewportOrientationMayChange
Whether the viewport orientation may change during playback.
|
int |
viewportWidth
Viewport width in pixels.
|
| Modifier and Type | Method and Description |
|---|---|
DefaultTrackSelector.ParametersBuilder |
buildUpon()
Creates a new
DefaultTrackSelector.ParametersBuilder, copying the initial values from this instance. |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
public static final DefaultTrackSelector.Parameters DEFAULT
preferredTextLanguage is available.
public final java.lang.String preferredAudioLanguage
null selects the default track, or the first track if there's no default.public final java.lang.String preferredTextLanguage
null selects the
default track if there is one, or no track otherwise.public final boolean selectUndeterminedTextLanguage
preferredTextLanguage is available, or if preferredTextLanguage is unset.public final int disabledTextTrackSelectionFlags
C.SelectionFlags.public final int maxVideoWidth
public final int maxVideoHeight
public final int maxVideoBitrate
public final boolean exceedVideoConstraintsIfNecessary
public final int viewportWidth
public final int viewportHeight
public final boolean viewportOrientationMayChange
public final boolean forceLowestBitrate
public final boolean allowMixedMimeAdaptiveness
public final boolean allowNonSeamlessAdaptiveness
public final boolean exceedRendererCapabilitiesIfNecessary
public DefaultTrackSelector.ParametersBuilder buildUpon()
DefaultTrackSelector.ParametersBuilder, copying the initial values from this instance.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object