mirror of
https://github.com/samsonjs/media.git
synced 2026-04-04 11:05:47 +00:00
Remove deprecated ExoPlayer.retry(), use prepare() instead.
#minor-release
PiperOrigin-RevId: 533463348
(cherry picked from commit 50112c685b)
This commit is contained in:
parent
7934eaf882
commit
41de418c3d
5 changed files with 1 additions and 34 deletions
|
|
@ -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…
Reference in a new issue