Commit b24d9f64 by krocard Committed by Ian Baker

Implement deprecated getPlaybackError in PlayerBase

PiperOrigin-RevId: 363606255
parent 8b509004
......@@ -395,13 +395,6 @@ public final class CastPlayer extends BasePlayer {
return Player.PLAYBACK_SUPPRESSION_REASON_NONE;
}
@Deprecated
@Override
@Nullable
public ExoPlaybackException getPlaybackError() {
return getPlayerError();
}
@Override
@Nullable
public ExoPlaybackException getPlayerError() {
......
......@@ -136,6 +136,13 @@ public abstract class BasePlayer implements Player {
removeMediaItems(/* fromIndex= */ 0, /* toIndex= */ Integer.MAX_VALUE);
}
@Deprecated
@Override
@Nullable
public final ExoPlaybackException getPlaybackError() {
return getPlayerError();
}
@Override
public final void play() {
setPlayWhenReady(true);
......
......@@ -333,13 +333,6 @@ import java.util.concurrent.CopyOnWriteArraySet;
return playbackInfo.playbackSuppressionReason;
}
@Deprecated
@Override
@Nullable
public ExoPlaybackException getPlaybackError() {
return getPlayerError();
}
@Override
@Nullable
public ExoPlaybackException getPlayerError() {
......
......@@ -1247,14 +1247,6 @@ public class SimpleExoPlayer extends BasePlayer
return player.getPlaybackSuppressionReason();
}
/** @deprecated Use {@link #getPlayerError()} instead. */
@Deprecated
@Override
@Nullable
public ExoPlaybackException getPlaybackError() {
return getPlayerError();
}
@Override
@Nullable
public ExoPlaybackException getPlayerError() {
......
......@@ -113,13 +113,6 @@ public abstract class StubExoPlayer extends BasePlayer implements ExoPlayer {
throw new UnsupportedOperationException();
}
/** @deprecated Use {@link #getPlayerError()} instead. */
@Deprecated
@Override
public ExoPlaybackException getPlaybackError() {
throw new UnsupportedOperationException();
}
@Override
public ExoPlaybackException getPlayerError() {
throw new UnsupportedOperationException();
......
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