Skip to content

Update docs #274

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,8 @@ default void onMetadata(Metadata metadata) {}
* {@link #getPlayWhenReady()} is true, and paused otherwise.
*/
int STATE_READY = 3;
/** The player has finished playing the media. */
/** The player has finished playing the media. Once the player has transitioned to STATE_ENDED,
you need to seek to a position before the end of the playlist to get out of STATE_ENDED.*/
int STATE_ENDED = 4;

/**
Expand Down Expand Up @@ -2085,6 +2086,8 @@ default void onMetadata(Metadata metadata) {}
*
* <p>This will move the player out of {@link #STATE_IDLE idle state} and the player will start
* loading media and acquire resources needed for playback.
*
* <p>Once prepare() has been called, any subsequent calls to prepare() are no-ops.
*/
void prepare();

Expand Down