You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Rewritten player and related bug fixing (#155, 08282b94d6adc7e5e5a07fe20c150829fc912943, #216, #217, 13423cdcfd39b8a5722e3a14bb19e53ab426b4ea, e549f08356696ef46add79f60ad8e28891738bd7)
17
+
- Using Log4j2 (5bb16797b78a76618821d28f547e92c217bdb8c8, 73a668c47db36932567777216330479d8147d80b, 52a60cbf0c059d4582dfe278a65bf786a4df43a3, 548163e4d3b2267d3030f7597ed5b4e8eeeab29c)
18
+
- Improved error message for mixers (#220)
19
+
- Refactored audio quality selection (#223)
20
+
- Close readers properly (6ad0f3cddc89e6d172eb16c5635ed46128eb65db)
21
+
- Better truncation of sensitive values (661c171fcd353471924a4ae0544dc27ff0ca83d0)
22
+
23
+
### Fixed
24
+
- Fixed time bar in wrong position after resuming (#213)
25
+
- Do not get Cipher instance every time (#215)
26
+
- Fixed loading of some podcasts (#223)
27
+
- Fixed crash when pressing next after adding song to queue (#226)
28
+
- Prevent deadlock when closing after network issue (#227)
29
+
- Fixed old issue with Zeroconf active session (#225, #229, #231)
30
+
- Avoid establishing two connections (afc7dc366379391f7e59ce8a37a0b007b2c69303)
31
+
- Start line before writing for the first time (#232)
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,8 @@ On some systems, many mixers could be installed making librespot-java playback o
51
51
4) Pick the right mixer and copy its name inside the `mixerSearchKeywords` option. If you need to specify more search keywords, you can separate them with a semicolon
52
52
5) Restart and enjoy
53
53
54
+
> **Linux note:** librespot-java will not be able to detect the mixers available on the system if you are running headless OpenJDK. You'll need to install a headful version of OpenJDK (usually doesn't end with `-headless`).
55
+
54
56
## Build it
55
57
This project uses [Maven](https://maven.apache.org/), after installing it you can compile with `mvn clean package` in the project root, if the compilation succeeds you'll be pleased with a JAR executable in `core/target`.
56
58
To run the newly build jar run `java -jar ./core/target/librespot-core-jar-with-dependencies.jar`.
Copy file name to clipboardExpand all lines: api/README.md
+21-16Lines changed: 21 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,20 +5,24 @@ This module depends on `librespot-core` and provides an API to interact with the
5
5
6
6
## Available endpoints
7
7
All the endpoints will respond with `200` if successful or:
8
-
-`204`, if there isn't any active session (Zeroconf only)
9
-
-`500`, if the session is invalid
10
-
-`503`, if the session is reconnecting (`Retry-After` is always 10 seconds)
8
+
-`204` If there isn't any active session (Zeroconf only)
9
+
-`500` If the session is invalid
10
+
-`503` If the session is reconnecting (`Retry-After` is always 10 seconds)
11
11
12
12
### Player
13
13
-`POST /player/load` Load a track from a given URI. The request body should contain two parameters: `uri` and `play`.
14
14
-`POST /player/pause` Pause playback.
15
15
-`POST /player/resume` Resume playback.
16
16
-`POST /player/next` Skip to next track.
17
17
-`POST /player/prev` Skip to previous track.
18
+
-`POST /player/seek` Seek to a given position in ms specified by `pos`.
18
19
-`POST /player/set-volume` Set volume to a given `volume` value from 0 to 65536.
19
20
-`POST /player/volume-up` Up the volume a little bit.
20
21
-`POST /player/volume-down` Lower the volume a little bit.
21
22
-`POST /player/current` Retrieve information about the current track (metadata and time).
23
+
-`POST /player/tracks` Retrieve all the tracks in the player state with metadata, you can specify `withQueue`.
24
+
-`POST /player/addToQueue` Add a track to the queue, specified by `uri`.
25
+
-`POST /player/removeFromQueue` Remove a track from the queue, specified by `uri`.
22
26
23
27
### Metadata
24
28
-`POST /metadata/{type}/{uri}` Retrieve metadata. `type` can be one of `episode`, `track`, `album`, `show`, `artist` or `playlist`, `uri` is the standard Spotify uri.
@@ -33,19 +37,20 @@ All the endpoints will respond with `200` if successful or:
33
37
### Events
34
38
You can subscribe for players events by creating a WebSocket connection to `/events`.
35
39
The currently available events are:
36
-
-`contextChanged`, the Spotify context URI changed
37
-
-`trackChanged`, the Spotify track URI changed
38
-
-`playbackPaused`, playback has been paused
39
-
-`playbackResumed`, playback has been resumed
40
-
-`volumeChanged`, playback volume changed
41
-
-`trackSeeked`, track has been seeked
42
-
-`metadataAvailable`, metadata for the current track is available
43
-
-`playbackHaltStateChanged`, playback halted or resumed from halt
44
-
-`sessionCleared`, (Zeroconf only) current session went away
45
-
-`sessionChanged`, (Zeroconf only) current session changed
46
-
-`inactiveSession`, current session is now inactive (no audio)
47
-
-`connectionDropped`, a network error occurred and we're trying to reconnect
0 commit comments