Fix STATE_IDLE Javadoc
Since playlist support was added, it's possible for the player to "have media" and be in STATE_IDLE. The STATE_IDLE documentation therefore became incorrect. Issue: #8946 #exofixit #minor-release PiperOrigin-RevId: 395653716
This commit is contained in:
parent
0c969bb73d
commit
1bef1a2b38
@ -1064,11 +1064,12 @@ public interface Player {
|
|||||||
@Retention(RetentionPolicy.SOURCE)
|
@Retention(RetentionPolicy.SOURCE)
|
||||||
@IntDef({STATE_IDLE, STATE_BUFFERING, STATE_READY, STATE_ENDED})
|
@IntDef({STATE_IDLE, STATE_BUFFERING, STATE_READY, STATE_ENDED})
|
||||||
@interface State {}
|
@interface State {}
|
||||||
/** The player does not have any media to play. */
|
/** The player is idle, and must be {@link #prepare() prepared} before it will play the media. */
|
||||||
int STATE_IDLE = 1;
|
int STATE_IDLE = 1;
|
||||||
/**
|
/**
|
||||||
* The player is not able to immediately play from its current position. This state typically
|
* The player is not able to immediately play the media, but is doing work toward being able to do
|
||||||
* occurs when more data needs to be loaded.
|
* so. This state typically occurs when the player needs to buffer more data before playback can
|
||||||
|
* start.
|
||||||
*/
|
*/
|
||||||
int STATE_BUFFERING = 2;
|
int STATE_BUFFERING = 2;
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user