spotify-connect-web icon indicating copy to clipboard operation
spotify-connect-web copied to clipboard

Playback seek and push notifications

Open Saiyato opened this issue 6 years ago • 0 comments

First of all, awesome work! I've been using your work for over a year now without problems! So kudo's to you sir.

The thing is, I'd like an LCD to show what I'm playing, I can get the info from /api/info/metadata and status. But I'd like to react to pushed notifications instead. This would make it less heavy than polling every x seconds.

Secondly, and actually I'd like this one a bit more, I'd like to show the progression of playback. Since there's no seek (or played time) property I can only time it myself, but this is not too accurate... especially when I pause playback. Don't get me wrong, I love your work, I just thought maybe this would improve it? :)

Current metadata object:

{
  "album_name": "Brothers In Arms (Remastered)", 
  "album_uri": "spotify:album:1NF8WUbdC632SIwixiWrLh", 
  "artist_name": "Dire Straits", 
  "artist_uri": "spotify:artist:0WwSkZ7LtFUFjGjMZBMt6T", 
  "context_uri": "spotify:internal:search:tracklist:bt-4", 
  "cover_uri": "spotify:image:78ace3900b14d836c3d45603872dd63300cb89f5", 
  "data0": "", 
  "duration": 424000, 
  "track_name": "Brothers In Arms", 
  "track_uri": "spotify:track:7EmSPZ9f1AiLR9eVHNSI62", 
  "volume": 59636
}

Saiyato avatar Sep 26 '17 20:09 Saiyato