Deprecate SimpleExoPlayer in favour of ExoPlayer
PiperOrigin-RevId: 403028279
This commit is contained in:
parent
23fc1f4384
commit
5fe3ec59ca
@ -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;
|
|||||||
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;
|
|||||||
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user