mirror of
https://github.com/samsonjs/media.git
synced 2026-03-28 09:55:48 +00:00
Remove more deprecated methods from ExoPlayerFactory
PiperOrigin-RevId: 369615413
This commit is contained in:
parent
517e590967
commit
7d4a013c80
1 changed files with 0 additions and 30 deletions
|
|
@ -18,7 +18,6 @@ package com.google.android.exoplayer2;
|
|||
import android.content.Context;
|
||||
import com.google.android.exoplayer2.analytics.AnalyticsCollector;
|
||||
import com.google.android.exoplayer2.source.DefaultMediaSourceFactory;
|
||||
import com.google.android.exoplayer2.trackselection.DefaultTrackSelector;
|
||||
import com.google.android.exoplayer2.trackselection.TrackSelector;
|
||||
import com.google.android.exoplayer2.upstream.DefaultBandwidthMeter;
|
||||
import com.google.android.exoplayer2.util.Clock;
|
||||
|
|
@ -30,13 +29,6 @@ public final class ExoPlayerFactory {
|
|||
|
||||
private ExoPlayerFactory() {}
|
||||
|
||||
/** @deprecated Use {@link SimpleExoPlayer.Builder} instead. */
|
||||
@Deprecated
|
||||
@SuppressWarnings("deprecation")
|
||||
public static SimpleExoPlayer newSimpleInstance(Context context) {
|
||||
return newSimpleInstance(context, new DefaultTrackSelector(context));
|
||||
}
|
||||
|
||||
/** @deprecated Use {@link SimpleExoPlayer.Builder} instead. */
|
||||
@Deprecated
|
||||
@SuppressWarnings("deprecation")
|
||||
|
|
@ -72,26 +64,4 @@ public final class ExoPlayerFactory {
|
|||
Clock.DEFAULT,
|
||||
Util.getCurrentOrMainLooper());
|
||||
}
|
||||
|
||||
/** @deprecated Use {@link SimpleExoPlayer.Builder} instead. */
|
||||
@Deprecated
|
||||
public static ExoPlayer newInstance(
|
||||
Context context, Renderer[] renderers, TrackSelector trackSelector, LoadControl loadControl) {
|
||||
return new ExoPlayerImpl(
|
||||
renderers,
|
||||
trackSelector,
|
||||
new DefaultMediaSourceFactory(context),
|
||||
loadControl,
|
||||
DefaultBandwidthMeter.getSingletonInstance(context),
|
||||
/* analyticsCollector= */ null,
|
||||
/* useLazyPreparation= */ true,
|
||||
SeekParameters.DEFAULT,
|
||||
new DefaultLivePlaybackSpeedControl.Builder().build(),
|
||||
ExoPlayer.DEFAULT_RELEASE_TIMEOUT_MS,
|
||||
/* pauseAtEndOfMediaItems= */ false,
|
||||
Clock.DEFAULT,
|
||||
Util.getCurrentOrMainLooper(),
|
||||
/* wrappingPlayer= */ null,
|
||||
/* additionalPermanentAvailableCommands= */ Player.Commands.EMPTY);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue