Commit 5fe3ec59 by ibaker Committed by Oliver Woodman

Deprecate SimpleExoPlayer in favour of ExoPlayer

PiperOrigin-RevId: 403028279
parent 23fc1f43
...@@ -88,10 +88,8 @@ import java.util.List; ...@@ -88,10 +88,8 @@ import java.util.List;
import java.util.concurrent.CopyOnWriteArraySet; import java.util.concurrent.CopyOnWriteArraySet;
import java.util.concurrent.TimeoutException; import java.util.concurrent.TimeoutException;
/** /** @deprecated Use {@link ExoPlayer} instead. */
* An {@link ExoPlayer} implementation that uses default {@link Renderer} components. Instances can @Deprecated
* be obtained from {@link ExoPlayer.Builder}.
*/
public class SimpleExoPlayer extends BasePlayer public class SimpleExoPlayer extends BasePlayer
implements ExoPlayer, implements ExoPlayer,
ExoPlayer.AudioComponent, ExoPlayer.AudioComponent,
......
...@@ -44,6 +44,7 @@ import org.robolectric.annotation.Config; ...@@ -44,6 +44,7 @@ import org.robolectric.annotation.Config;
import org.robolectric.shadows.ShadowLooper; import org.robolectric.shadows.ShadowLooper;
/** Unit test for {@link SimpleExoPlayer}. */ /** Unit test for {@link SimpleExoPlayer}. */
@SuppressWarnings("deprecation") // Testing deprecated type.
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
public class SimpleExoPlayerTest { public class SimpleExoPlayerTest {
......
...@@ -37,6 +37,7 @@ import com.google.android.exoplayer2.util.Clock; ...@@ -37,6 +37,7 @@ import com.google.android.exoplayer2.util.Clock;
import org.checkerframework.checker.nullness.qual.MonotonicNonNull; import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
/** A builder of {@link SimpleExoPlayer} instances for testing. */ /** A builder of {@link SimpleExoPlayer} instances for testing. */
@SuppressWarnings("deprecation") // Returning deprecated type for backwards compatibility.
public class TestExoPlayerBuilder { public class TestExoPlayerBuilder {
private final Context context; private final Context context;
......
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