Tweak DefaultTrackSelector documentation

Viewport constraints apply to adaptive content even if the
actual playback isn't adaptive (i.e. because the selector
ends up making a fixed track selection).

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=203726831
This commit is contained in:
olly 2018-07-09 01:52:35 -07:00 committed by Oliver Woodman
parent 7207665ce0
commit d49c5a476d

View File

@ -608,20 +608,20 @@ public class DefaultTrackSelector extends MappingTrackSelector {
*/ */
public final boolean exceedVideoConstraintsIfNecessary; public final boolean exceedVideoConstraintsIfNecessary;
/** /**
* Viewport width in pixels. Constrains video track selections for adaptive playbacks so that * Viewport width in pixels. Constrains video track selections for adaptive content so that only
* only tracks suitable for the viewport are selected. The default value is {@link * tracks suitable for the viewport are selected. The default value is {@link Integer#MAX_VALUE}
* Integer#MAX_VALUE} (i.e. no constraint). * (i.e. no constraint).
*/ */
public final int viewportWidth; public final int viewportWidth;
/** /**
* Viewport height in pixels. Constrains video track selections for adaptive playbacks so that * Viewport height in pixels. Constrains video track selections for adaptive content so that
* only tracks suitable for the viewport are selected. The default value is {@link * only tracks suitable for the viewport are selected. The default value is {@link
* Integer#MAX_VALUE} (i.e. no constraint). * Integer#MAX_VALUE} (i.e. no constraint).
*/ */
public final int viewportHeight; public final int viewportHeight;
/** /**
* Whether the viewport orientation may change during playback. Constrains video track * Whether the viewport orientation may change during playback. Constrains video track
* selections for adaptive playbacks so that only tracks suitable for the viewport are selected. * selections for adaptive content so that only tracks suitable for the viewport are selected.
* The default value is {@code true}. * The default value is {@code true}.
*/ */
public final boolean viewportOrientationMayChange; public final boolean viewportOrientationMayChange;