within the last weeks, I had the idea for a spotify connect binding. This binding should allow for controlling a spotify connect device anywhere in your network (or any device logged in with your account) and it should be independent of the system providing the Spotify connect service (e.g. a Sonos or a Denon receiver).
If have already found a lot of ressources describing the (closed) protocol of how to implement a spotify connect controller: https://github.com/sashahilton00/spotify-connect-resources
There a two interesting libraries that could be useful: the official (but closed-source) library from spotify or an open-source reimplementation in Rust called librespot which is e.g. available for arm systems like RPi. However, the examples are either implemented in Go or in Rust. I do not have any idea of how to use them from Java (ok, there is a Java/Rust bridge using JNA, but I have no experience and no idea of how to use it).
Is here anyone how is familiar with Rust or Go and would help me in supporting the implementation of a Spotify Connect binding?
- General information on spotify connect: https://github.com/sashahilton00/spotify-connect-resources
- librespot: https://github.com/plietar/librespot
- Working spotify connect controller implemented in Go: https://github.com/badfortrains/spotcontrol
- JNA: Java/Rust: https://github.com/drrb/java-rust-example