mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +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`,
|
`copyWithFrameRate`, `copyWithDrmInitData`, `copyWithMetadata`,
|
||||||
`copyWithBitrate` and `copyWithVideoSize`, use `Format.buildUpon()` and
|
`copyWithBitrate` and `copyWithVideoSize`, use `Format.buildUpon()` and
|
||||||
setter methods instead.
|
setter methods instead.
|
||||||
|
* Remove deprecated `ExoPlayer.retry()`, use `prepare()` instead.
|
||||||
|
|
||||||
### 1.0.2 (2023-05-18)
|
### 1.0.2 (2023-05-18)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1354,13 +1354,6 @@ public interface ExoPlayer extends Player {
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
Clock getClock();
|
Clock getClock();
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link #prepare()} instead.
|
|
||||||
*/
|
|
||||||
@UnstableApi
|
|
||||||
@Deprecated
|
|
||||||
void retry();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated Use {@link #setMediaSource(MediaSource)} and {@link #prepare()} instead.
|
* @deprecated Use {@link #setMediaSource(MediaSource)} and {@link #prepare()} instead.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -520,13 +520,6 @@ import java.util.concurrent.TimeoutException;
|
||||||
return playbackInfo.playbackError;
|
return playbackInfo.playbackError;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
@Deprecated
|
|
||||||
public void retry() {
|
|
||||||
verifyApplicationThread();
|
|
||||||
prepare();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void prepare() {
|
public void prepare() {
|
||||||
verifyApplicationThread();
|
verifyApplicationThread();
|
||||||
|
|
|
||||||
|
|
@ -816,17 +816,6 @@ public class SimpleExoPlayer extends BasePlayer
|
||||||
return player.getPlayerError();
|
return player.getPlayerError();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link #prepare()} instead.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
@Override
|
|
||||||
@SuppressWarnings("deprecation") // Calling deprecated method.
|
|
||||||
public void retry() {
|
|
||||||
blockUntilConstructorFinished();
|
|
||||||
player.retry();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Commands getAvailableCommands() {
|
public Commands getAvailableCommands() {
|
||||||
blockUntilConstructorFinished();
|
blockUntilConstructorFinished();
|
||||||
|
|
|
||||||
|
|
@ -130,15 +130,6 @@ public class StubExoPlayer extends StubPlayer implements ExoPlayer {
|
||||||
throw new UnsupportedOperationException();
|
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.
|
* @deprecated Use {@link #setMediaSource(MediaSource)} and {@link #prepare()} instead.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue