Git Product home page Git Product logo

librespot-java's Introduction

librespot-java

Build Status Maven Central

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

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

Get started

All the configuration you need is inside the config.toml 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.

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.