Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/librespot-org/librespot-java
The most up-to-date open source Spotify client
https://github.com/librespot-org/librespot-java
java librespot player spotify spotify-connect zeroconf
Last synced: about 17 hours ago
JSON representation
The most up-to-date open source Spotify client
- Host: GitHub
- URL: https://github.com/librespot-org/librespot-java
- Owner: librespot-org
- License: apache-2.0
- Created: 2018-07-20T20:00:38.000Z (over 6 years ago)
- Default Branch: dev
- Last Pushed: 2024-12-05T05:29:47.000Z (16 days ago)
- Last Synced: 2024-12-06T22:10:04.141Z (15 days ago)
- Topics: java, librespot, player, spotify, spotify-connect, zeroconf
- Language: Java
- Homepage:
- Size: 4.07 MB
- Stars: 390
- Watchers: 17
- Forks: 95
- Open Issues: 106
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-my-raspberrypi-micro-desktop - librespot-java - The most up-to-date open source Spotify client_ (Daily List / General Use)
README
# librespot-java
[![Maven build / deploy](https://github.com/librespot-org/librespot-java/actions/workflows/maven.yml/badge.svg?branch=dev)](https://github.com/librespot-org/librespot-java/actions/workflows/maven.yml)
[![time tracker](https://wakatime.com/badge/github/librespot-org/librespot-java.svg)](https://wakatime.com/badge/github/librespot-org/librespot-java)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/xyz.gianlu.librespot/librespot-java/badge.svg)](https://maven-badges.herokuapp.com/maven-central/xyz.gianlu.librespot/librespot-java)`librespot-java` is a port of [librespot](https://github.com/librespot-org/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](api).
## 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.> [!WARNING]
> `librespot-java` is no longer being actively developed. Development efforts have been moved to [go-librespot](https://github.com/devgianlu/go-librespot) to provide a better experience for embedded devices. No features or fixes requiring a lot of effort will be done here. If you are not using a feature specific to this project, you are encouraged to move to `go-librespot`.## 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](https://github.com/devgianlu/librespot-android))
- Optional HTTP API (see [librespot-api](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](lib).## 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](player).## 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](https://oss.sonatype.org/content/repositories/snapshots/xyz/gianlu/librespot/).## Related Projects
- [go-librespot](https://github.com/devgianlu/go-librespot)
- [librespot](https://github.com/librespot-org/librespot)
- [ansible-role-librespot](https://github.com/xMordax/ansible-role-librespot/tree/master) - Ansible role that will build, install and configure librespot-java.
- [spocon](https://github.com/spocon/spocon) - Install librespot-java from APT
- [librespot-android](https://github.com/devgianlu/librespot-android) - Run librespot-java on your Android device
- [MMM-LibrespotJava](https://github.com/l3d00m/MMM-LibrespotJava) - Show the current librespot-java playback on your [MagicMirror](https://github.com/MichMich/MagicMirror)# Special thanks
- All the developers of [librespot](https://github.com/librespot-org/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](https://www.yourkit.com/java/profiler/)