Implement deprecated getPlaybackError in PlayerBase
PiperOrigin-RevId: 363606255
This commit is contained in:
parent
8b5090048d
commit
b24d9f64a9
@ -395,13 +395,6 @@ public final class CastPlayer extends BasePlayer {
|
|||||||
return Player.PLAYBACK_SUPPRESSION_REASON_NONE;
|
return Player.PLAYBACK_SUPPRESSION_REASON_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
@Override
|
|
||||||
@Nullable
|
|
||||||
public ExoPlaybackException getPlaybackError() {
|
|
||||||
return getPlayerError();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Nullable
|
@Nullable
|
||||||
public ExoPlaybackException getPlayerError() {
|
public ExoPlaybackException getPlayerError() {
|
||||||
|
@ -136,6 +136,13 @@ public abstract class BasePlayer implements Player {
|
|||||||
removeMediaItems(/* fromIndex= */ 0, /* toIndex= */ Integer.MAX_VALUE);
|
removeMediaItems(/* fromIndex= */ 0, /* toIndex= */ Integer.MAX_VALUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
|
@Override
|
||||||
|
@Nullable
|
||||||
|
public final ExoPlaybackException getPlaybackError() {
|
||||||
|
return getPlayerError();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public final void play() {
|
public final void play() {
|
||||||
setPlayWhenReady(true);
|
setPlayWhenReady(true);
|
||||||
|
@ -333,13 +333,6 @@ import java.util.concurrent.CopyOnWriteArraySet;
|
|||||||
return playbackInfo.playbackSuppressionReason;
|
return playbackInfo.playbackSuppressionReason;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
@Override
|
|
||||||
@Nullable
|
|
||||||
public ExoPlaybackException getPlaybackError() {
|
|
||||||
return getPlayerError();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Nullable
|
@Nullable
|
||||||
public ExoPlaybackException getPlayerError() {
|
public ExoPlaybackException getPlayerError() {
|
||||||
|
@ -1247,14 +1247,6 @@ public class SimpleExoPlayer extends BasePlayer
|
|||||||
return player.getPlaybackSuppressionReason();
|
return player.getPlaybackSuppressionReason();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link #getPlayerError()} instead. */
|
|
||||||
@Deprecated
|
|
||||||
@Override
|
|
||||||
@Nullable
|
|
||||||
public ExoPlaybackException getPlaybackError() {
|
|
||||||
return getPlayerError();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Nullable
|
@Nullable
|
||||||
public ExoPlaybackException getPlayerError() {
|
public ExoPlaybackException getPlayerError() {
|
||||||
|
@ -113,13 +113,6 @@ public abstract class StubExoPlayer extends BasePlayer implements ExoPlayer {
|
|||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Use {@link #getPlayerError()} instead. */
|
|
||||||
@Deprecated
|
|
||||||
@Override
|
|
||||||
public ExoPlaybackException getPlaybackError() {
|
|
||||||
throw new UnsupportedOperationException();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ExoPlaybackException getPlayerError() {
|
public ExoPlaybackException getPlayerError() {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user