Giter VIP home page Giter VIP logo

librespot-java's Introduction

librespot-java

Maven build / deploy 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)
  • DACP metadata pipe
  • Execute commands for various events
  • Android compatible (see librespot-android)
  • Optional HTTP API (see librespot-api)
  • Supports custom sinks and decoders
  • Actively developed and up-to-date with the latest internal API

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.

Snapshots

Snapshots for all variants are available here.

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

librespot-java's People

Contributors

devgianlu avatar dependabot-preview[bot] avatar dependabot[bot] avatar funtax avatar uvjustin avatar josephcarroll avatar lkwg82 avatar iscle avatar mitschwimmer avatar sjjdgg avatar joaopms avatar fiechtor avatar zvertigo avatar ashthespy avatar xvello avatar thorstenhaga-tradedoubler avatar spocon avatar sashahilton00 avatar snekiam avatar njitram2000 avatar markuspi avatar landern avatar jordi735 avatar shinoby92 avatar dimitarnestorov avatar crsmoro avatar leafy7382 avatar brnold avatar

Watchers

James Cloos avatar

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.