Deduplicate DefaultTrackSelector javadocs

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=169552239
This commit is contained in:
aquilescanta 2017-09-21 09:18:43 -07:00 committed by Oliver Woodman
parent 324339b88f
commit 25a9177ce3

View File

@ -193,11 +193,7 @@ public class DefaultTrackSelector extends MappingTrackSelector {
} }
/** /**
* Returns an instance with the provided preferred language for audio and forced text tracks. * Returns an instance with the provided {@link #preferredAudioLanguage}.
*
* @param preferredAudioLanguage The preferred language as defined by RFC 5646. {@code null} to
* select the default track, or first track if there's no default.
* @return An instance with the provided preferred language for audio and forced text tracks.
*/ */
public Parameters withPreferredAudioLanguage(String preferredAudioLanguage) { public Parameters withPreferredAudioLanguage(String preferredAudioLanguage) {
preferredAudioLanguage = Util.normalizeLanguageCode(preferredAudioLanguage); preferredAudioLanguage = Util.normalizeLanguageCode(preferredAudioLanguage);
@ -211,11 +207,7 @@ public class DefaultTrackSelector extends MappingTrackSelector {
} }
/** /**
* Returns an instance with the provided preferred language for text tracks. * Returns an instance with the provided {@link #preferredTextLanguage}.
*
* @param preferredTextLanguage The preferred language as defined by RFC 5646. {@code null} to
* select the default track, or no track if there's no default.
* @return An instance with the provided preferred language for text tracks.
*/ */
public Parameters withPreferredTextLanguage(String preferredTextLanguage) { public Parameters withPreferredTextLanguage(String preferredTextLanguage) {
preferredTextLanguage = Util.normalizeLanguageCode(preferredTextLanguage); preferredTextLanguage = Util.normalizeLanguageCode(preferredTextLanguage);
@ -229,10 +221,7 @@ public class DefaultTrackSelector extends MappingTrackSelector {
} }
/** /**
* Returns an instance with the provided mixed mime adaptiveness allowance. * Returns an instance with the provided {@link #allowMixedMimeAdaptiveness}.
*
* @param allowMixedMimeAdaptiveness Whether to allow selections to contain mixed mime types.
* @return An instance with the provided mixed mime adaptiveness allowance.
*/ */
public Parameters withAllowMixedMimeAdaptiveness(boolean allowMixedMimeAdaptiveness) { public Parameters withAllowMixedMimeAdaptiveness(boolean allowMixedMimeAdaptiveness) {
if (allowMixedMimeAdaptiveness == this.allowMixedMimeAdaptiveness) { if (allowMixedMimeAdaptiveness == this.allowMixedMimeAdaptiveness) {
@ -245,10 +234,7 @@ public class DefaultTrackSelector extends MappingTrackSelector {
} }
/** /**
* Returns an instance with the provided seamless adaptiveness allowance. * Returns an instance with the provided {@link #allowNonSeamlessAdaptiveness}.
*
* @param allowNonSeamlessAdaptiveness Whether non-seamless adaptation is allowed.
* @return An instance with the provided seamless adaptiveness allowance.
*/ */
public Parameters withAllowNonSeamlessAdaptiveness(boolean allowNonSeamlessAdaptiveness) { public Parameters withAllowNonSeamlessAdaptiveness(boolean allowNonSeamlessAdaptiveness) {
if (allowNonSeamlessAdaptiveness == this.allowNonSeamlessAdaptiveness) { if (allowNonSeamlessAdaptiveness == this.allowNonSeamlessAdaptiveness) {
@ -261,11 +247,7 @@ public class DefaultTrackSelector extends MappingTrackSelector {
} }
/** /**
* Returns an instance with the provided max video size. * Returns an instance with the provided {@link #maxVideoWidth} and {@link #maxVideoHeight}.
*
* @param maxVideoWidth The max video width.
* @param maxVideoHeight The max video width.
* @return An instance with the provided max video size.
*/ */
public Parameters withMaxVideoSize(int maxVideoWidth, int maxVideoHeight) { public Parameters withMaxVideoSize(int maxVideoWidth, int maxVideoHeight) {
if (maxVideoWidth == this.maxVideoWidth && maxVideoHeight == this.maxVideoHeight) { if (maxVideoWidth == this.maxVideoWidth && maxVideoHeight == this.maxVideoHeight) {
@ -278,10 +260,7 @@ public class DefaultTrackSelector extends MappingTrackSelector {
} }
/** /**
* Returns an instance with the provided max video bitrate. * Returns an instance with the provided {@link #maxVideoBitrate}.
*
* @param maxVideoBitrate The max video bitrate.
* @return An instance with the provided max video bitrate.
*/ */
public Parameters withMaxVideoBitrate(int maxVideoBitrate) { public Parameters withMaxVideoBitrate(int maxVideoBitrate) {
if (maxVideoBitrate == this.maxVideoBitrate) { if (maxVideoBitrate == this.maxVideoBitrate) {
@ -312,11 +291,7 @@ public class DefaultTrackSelector extends MappingTrackSelector {
} }
/** /**
* Returns an instance with the provided {@code exceedVideoConstraintsIfNecessary} value. * Returns an instance with the provided {@link #exceedVideoConstraintsIfNecessary}.
*
* @param exceedVideoConstraintsIfNecessary Whether to exceed video constraints when no
* selection can be made otherwise.
* @return An instance with the provided {@code exceedVideoConstraintsIfNecessary} value.
*/ */
public Parameters withExceedVideoConstraintsIfNecessary( public Parameters withExceedVideoConstraintsIfNecessary(
boolean exceedVideoConstraintsIfNecessary) { boolean exceedVideoConstraintsIfNecessary) {
@ -330,11 +305,7 @@ public class DefaultTrackSelector extends MappingTrackSelector {
} }
/** /**
* Returns an instance with the provided {@code exceedRendererCapabilitiesIfNecessary} value. * Returns an instance with the provided {@link #exceedRendererCapabilitiesIfNecessary}.
*
* @param exceedRendererCapabilitiesIfNecessary Whether to exceed renderer capabilities when no
* selection can be made otherwise.
* @return An instance with the provided {@code exceedRendererCapabilitiesIfNecessary} value.
*/ */
public Parameters withExceedRendererCapabilitiesIfNecessary( public Parameters withExceedRendererCapabilitiesIfNecessary(
boolean exceedRendererCapabilitiesIfNecessary) { boolean exceedRendererCapabilitiesIfNecessary) {
@ -348,12 +319,8 @@ public class DefaultTrackSelector extends MappingTrackSelector {
} }
/** /**
* Returns an instance with the provided viewport size. * Returns an instance with the provided {@link #viewportWidth}, {@link #viewportHeight} and
* * {@link #viewportOrientationMayChange}.
* @param viewportWidth Viewport width in pixels.
* @param viewportHeight Viewport height in pixels.
* @param viewportOrientationMayChange Whether orientation may change during playback.
* @return An instance with the provided viewport size.
*/ */
public Parameters withViewportSize(int viewportWidth, int viewportHeight, public Parameters withViewportSize(int viewportWidth, int viewportHeight,
boolean viewportOrientationMayChange) { boolean viewportOrientationMayChange) {
@ -371,7 +338,7 @@ public class DefaultTrackSelector extends MappingTrackSelector {
* Returns an instance where the viewport size is obtained from the provided {@link Context}. * Returns an instance where the viewport size is obtained from the provided {@link Context}.
* *
* @param context The context to obtain the viewport size from. * @param context The context to obtain the viewport size from.
* @param viewportOrientationMayChange Whether orientation may change during playback. * @param viewportOrientationMayChange See {@link #viewportOrientationMayChange}.
* @return An instance where the viewport size is obtained from the provided {@link Context}. * @return An instance where the viewport size is obtained from the provided {@link Context}.
*/ */
public Parameters withViewportSizeFromContext(Context context, public Parameters withViewportSizeFromContext(Context context,