Commit 5c1829f0 by tonihei Committed by Oliver Woodman

Deprecate FixedTrackSelecion.Factory.

The only use of track selection factories is as adaptive track selection factories
in the DefaultTrackSelector. Using the fixed track selection factory here is dangerous
as it will throw if more than one track is selected.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=213637500
parent 64b50ff9
...@@ -27,8 +27,12 @@ import com.google.android.exoplayer2.util.Assertions; ...@@ -27,8 +27,12 @@ import com.google.android.exoplayer2.util.Assertions;
public final class FixedTrackSelection extends BaseTrackSelection { public final class FixedTrackSelection extends BaseTrackSelection {
/** /**
* Factory for {@link FixedTrackSelection} instances. * @deprecated Don't use as adaptive track selection factory as it will throw when multiple tracks
* are selected. If you would like to disable adaptive selection in {@link
* DefaultTrackSelector}, enable the {@link
* DefaultTrackSelector.Parameters#forceHighestSupportedBitrate} flag instead.
*/ */
@Deprecated
public static final class Factory implements TrackSelection.Factory { public static final class Factory implements TrackSelection.Factory {
private final int reason; private final int reason;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment