Skip to content

Java port of librespot, the Open Source Spotify client library

License

Notifications You must be signed in to change notification settings

Bhanditz/librespot-java

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

librespot-java

Build Status Maven Central

librespot-java is a port of librespot, originally written in Rust. Additionally, this implementation provides an useful API to request metadata or control the player, more here.

Get started

All the configuration you need is inside the conf.properties file, there you can decide to authenticate with:

  • Username and password
  • Zeroconf
  • Facebook
  • Auth blob

Username and password

This is pretty straightforward, but remember that having hardcoded passwords isn't the best thing on earth.

Zeroconf

In this mode librespot becomes discoverable with Spotify Connect by devices on the same network. Just open a Spotify client and select librespot-java from the available devices list.

Facebook

Authenticate with Facebook. The console will provide a link to visit in order to continue the login process.

Auth blob

This is more advanced and should only be used if you saved an authentication blob. The blob should have already been Base64-decoded.

Run

You can download the latest release from here and then run java -jar ./librespot-core-jar-with-dependencies.jar from the command line.

Build it

This project uses Maven, 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. Remember that you need to clone the project with its submodules (git clone --recursive https://github.com/librespot-org/librespot-java).

To run the newly build jar run java -jar ./core/target/librespot-core-jar-with-dependencies.jar.

About

Java port of librespot, the Open Source Spotify client library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%