We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff7f261 commit 1f62642Copy full SHA for 1f62642
1 file changed
player/src/main/java/xyz/gianlu/librespot/player/Player.java
@@ -280,7 +280,7 @@ public void removeFromQueue(@NotNull String uri) {
280
@NotNull
281
public Future<Player> ready() {
282
CompletableFuture<Player> future = new CompletableFuture<>();
283
- if (state.isReady()) {
+ if (isReady()) {
284
future.complete(this);
285
return future;
286
}
@@ -756,6 +756,13 @@ public boolean isActive() {
756
return state != null && state.isActive();
757
758
759
+ /**
760
+ * @return Whether the player is ready
761
+ */
762
+ public boolean isReady() {
763
+ return state != null && state.isReady();
764
+ }
765
+
766
/**
767
* @return A {@link Tracks} instance with the current player queue
768
*/
0 commit comments