Skip to content

Commit

Permalink
get state name
Browse files Browse the repository at this point in the history
  • Loading branch information
SrRapero720 committed Dec 30, 2024
1 parent d66d0bd commit b8faa7a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ public void stop() {
*/
public boolean isSafeUse() { return started; }

public String getStateName() {
return raw.mediaPlayer().status().state().name();
}

public boolean isLoading() {
if (raw == null) return false;
return raw.mediaPlayer().status().state().equals(State.OPENING);
Expand Down

0 comments on commit b8faa7a

Please sign in to comment.