mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
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`,
|
`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…
x
Reference in New Issue
Block a user