tizonia / tizonia-openmax-il

Command-line cloud music player for Linux with support for Spotify, Google Play Music, YouTube, SoundCloud, TuneIn, iHeartRadio, Plex servers and Chromecast devices.
https://tizonia.org
GNU Lesser General Public License v3.0
1.69k stars 85 forks source link

[Suggestion] Show as Spotify Device in daemon mode or otherwise return to control #604

Open carsonelmore opened 5 years ago

carsonelmore commented 5 years ago

Description

When playing from Spotify as a daemon, the Tizonia instance is not controllable from Spotify on a different device. This would be helpful for applications of Tizonia on a headless device.

Steps to Reproduce

Given: Tizonia installed and configured on a local network with automatic login to a Spotify Premium account on a Raspberry Pi.

  1. SSH into the Pi
  2. tizonia -sd --spotify-playlist-id 3T8mqtWP0HuLt9qkg15f7F
  3. Open Spotify in another device, click on Devices Available

Expected behavior:

Spotify will indicate the existence of some currently playing device pi@raspberry.local or pi@pub.lic.ip.addr

Actual behaviour:

Spotify says to start Spotify on another device and it will magically appear here.

Reproduces how often: [What percentage of the time does it reproduce?]

Without fail. (100%)

Versions

Host

This software is part of the Tizonia project <http://tizonia.org>

Debug Info:
            * [Boost 1_62]
            * [TagLib 1.11.1]
            * [MediaInfoLib - v0.7.91]

Desired Controller


Windows 10 Home 10.0.18362 Build 18362

Installation Method Used

curl -kL https://goo.gl/Vu8qGR | bash and then installing additional dependencies as the errors required with pip and sudo apt install pulseaudio

Additional Information

An alternate way of controlling a remote Tizonia daemon would provide similar functionality, even if it was ssh-ing back to the remote device and bringing the program back to foreground somehow.

tizonia commented 5 years ago

Hi @carsonelmore !

Thanks very much for your suggestion (and apologies for the delayed reply). Yes, this would be a really nice addition. At the moment TIzonia does not implement Spotify Connect. I think https://github.com/librespot-org/librespot is a project that provides this functionality. I don't know how easy this would be to integrate with Tizonia. I believe librespot is written in Rust. I will have a look, it is an interesting question to answer.