Remove deprecated ExoPlayer.retry(), use prepare() instead.

#minor-release

PiperOrigin-RevId: 533463348
This commit is contained in:
ibaker 2023-05-19 16:39:14 +01:00 committed by Ian Baker
parent b3db85133a
commit 50112c685b
5 changed files with 1 additions and 34 deletions

View File

@ -75,6 +75,7 @@
`copyWithFrameRate`, `copyWithDrmInitData`, `copyWithMetadata`,
`copyWithBitrate` and `copyWithVideoSize`, use `Format.buildUpon()` and
setter methods instead.
* Remove deprecated `ExoPlayer.retry()`, use `prepare()` instead.
### 1.0.2 (2023-05-18)

View File

@ -1354,13 +1354,6 @@ public interface ExoPlayer extends Player {
@UnstableApi
Clock getClock();
/**
* @deprecated Use {@link #prepare()} instead.
*/
@UnstableApi
@Deprecated
void retry();
/**
* @deprecated Use {@link #setMediaSource(MediaSource)} and {@link #prepare()} instead.
*/

View File

@ -520,13 +520,6 @@ import java.util.concurrent.TimeoutException;
return playbackInfo.playbackError;
}
@Override
@Deprecated
public void retry() {
verifyApplicationThread();
prepare();
}
@Override
public void prepare() {
verifyApplicationThread();

View File

@ -816,17 +816,6 @@ public class SimpleExoPlayer extends BasePlayer
return player.getPlayerError();
}
/**
* @deprecated Use {@link #prepare()} instead.
*/
@Deprecated
@Override
@SuppressWarnings("deprecation") // Calling deprecated method.
public void retry() {
blockUntilConstructorFinished();
player.retry();
}
@Override
public Commands getAvailableCommands() {
blockUntilConstructorFinished();

View File

@ -130,15 +130,6 @@ public class StubExoPlayer extends StubPlayer implements ExoPlayer {
throw new UnsupportedOperationException();
}
/**
* @deprecated Use {@link #prepare()} instead.
*/
@Deprecated
@Override
public void retry() {
throw new UnsupportedOperationException();
}
/**
* @deprecated Use {@link #setMediaSource(MediaSource)} and {@link #prepare()} instead.
*/