librespot-java api client

Java port of librespot, the Open Source Spotify client library

Лицензия

Лицензия

Категории

Категории

CLI Взаимодействие с пользователем
Группа

Группа

xyz.gianlu.librespot
Идентификатор

Идентификатор

librespot-api-client
Последняя версия

Последняя версия

0.6.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

librespot-java api client
Java port of librespot, the Open Source Spotify client library

Скачать librespot-api-client

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/xyz.gianlu.librespot/librespot-api-client/ -->
<dependency>
    <groupId>xyz.gianlu.librespot</groupId>
    <artifactId>librespot-api-client</artifactId>
    <version>0.6.2</version>
</dependency>
// https://jarcasting.com/artifacts/xyz.gianlu.librespot/librespot-api-client/
implementation 'xyz.gianlu.librespot:librespot-api-client:0.6.2'
// https://jarcasting.com/artifacts/xyz.gianlu.librespot/librespot-api-client/
implementation ("xyz.gianlu.librespot:librespot-api-client:0.6.2")
'xyz.gianlu.librespot:librespot-api-client:jar:0.6.2'
<dependency org="xyz.gianlu.librespot" name="librespot-api-client" rev="0.6.2">
  <artifact name="librespot-api-client" type="jar" />
</dependency>
@Grapes(
@Grab(group='xyz.gianlu.librespot', module='librespot-api-client', version='0.6.2')
)
libraryDependencies += "xyz.gianlu.librespot" % "librespot-api-client" % "0.6.2"
[xyz.gianlu.librespot/librespot-api-client "0.6.2"]

Зависимости

compile (7)

Идентификатор библиотеки Тип Версия
xyz.gianlu.librespot : librespot-common jar 0.6.2
org.openjfx : javafx-base jar 12-ea+8
org.openjfx : javafx-fxml jar 12-ea+8
org.openjfx : javafx-controls jar 12-ea+8
org.java-websocket : Java-WebSocket jar 1.4.0
org.jetbrains : annotations jar 17.0.0
log4j : log4j jar 1.2.17

runtime (1)

Идентификатор библиотеки Тип Версия
org.slf4j : slf4j-simple jar 1.7.25

test (1)

Идентификатор библиотеки Тип Версия
org.junit.jupiter : junit-jupiter jar 5.4.2

Модули Проекта

Данный проект не имеет модулей.

librespot-java

Build Status Codacy Badge time tracker Maven Central

librespot-java is a port of librespot, originally written in Rust, which has evolved into the most up-to-date open-source Spotify client. Additionally, this implementation provides a useful API to request metadata or control the player, more here.

Disclaimer!

We (the librespot-org organization and me) DO NOT encourage piracy and DO NOT support any form of downloader/recorder designed with the help of this repository and in general anything that goes against the Spotify ToS. If you're brave enough to put at risk this entire project, just don't publish it. This is meant to provide support for all those devices that are not officially supported by Spotify.

Features

This client is pretty much capable of playing anything that's available on Spotify. Its main features are:

  • Tracks and podcasts/episodes playback
  • Stations and dailymixes support
  • Local content caching
  • Zeroconf (Spotify Connect)
  • Gapless playback
  • Mixed playlists (cuepoints and transitions)

The library

The lib module provides all the necessary components and tools to interact with Spotify. More here.

The player

The player module provides the full player experience. You can use it from Spotify Connect, and it operates in full headless mode. More here.

Protobuf generation

The compiled Java protobuf definitions aren't versioned, therefore, if you want to open the project inside your IDE, you'll need to run mvn compile first to ensure that all the necessary files are created. If the build fails due to missing protoc you can install it manually and use the -DprotocExecutable=/path/to/protoc flag. The com.spotify package is reserved for the generated files.

Logging

The application uses Log4J for logging purposes, the configuration file is placed inside lib/src/main/resources, player/src/main/resources or api/src/main/resources depending on what you're working with. You can also toggle the log level with logLevel option in the configuration.

Related Projects

Special thanks

  • All the developers of librespot which started this project in Rust
  • All the contributors of this project for testing and fixing stuff
  • that provided a free license for their Java Profiler
xyz.gianlu.librespot

Librespot Org

Версии библиотеки

Версия
0.6.2
0.6.1
0.5.2
0.5.1
0.5.0
0.4.0
0.3.0
0.2.0
0.1.3
0.1.2
0.1.1
0.1.0