Remove deprecated ExoPlayer.retry()
, use prepare()
instead.
#minor-release PiperOrigin-RevId: 533463348
This commit is contained in:
parent
b3db85133a
commit
50112c685b
@ -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)
|
||||
|
||||
|
@ -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.
|
||||
*/
|
||||
|
@ -520,13 +520,6 @@ import java.util.concurrent.TimeoutException;
|
||||
return playbackInfo.playbackError;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public void retry() {
|
||||
verifyApplicationThread();
|
||||
prepare();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void prepare() {
|
||||
verifyApplicationThread();
|
||||
|
@ -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();
|
||||
|
@ -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.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user