New 2023 Spotify Plugin

Have you tried to simply not log in Spotify on volumio?
Should do the trick

2 Likes

Thank you so much. It can be so easy :slight_smile:

1 Like

Does it work?

1 Like

I just tried it …

Sign out of Spotify in Volumio
Play radio on Volumio
Try to play track via Connect, doesn’t start
Stop radio and select new track on Connect, all OK

Edit: Tried the same after restarting, same result.

I upgraded plugin to 4.0.3, seemed to work great.
Since then, I realized the plugin systematically skips the last few seconds of every track I play - maybe 1 or 2 secs, not really sure.
Uninstalled, tried with 4.0.1, same issue.
Any clue as to what is causing this or how to solve it?
I’m attaching the log, http://logs.volumio.org/volumio/h8KBiWE.html
Thank you, keep up the great work!

@joaquim_sanmarti
The same happened for me. I got the answer in this thread, that I should try to disable Multiroom playback as Source.
That fixed it. But I can’t enable multiroom again without the issue returns.
Hopefully they are working on a fix :crossed_fingers:

Hi, thanks for the tip.
Unfortunately I’m not a premium user, so I can’t even enable Multiroom.
Hopefully there’s some other workaround…

Hi
There’s another issue I found with 4.0.x, apart from the skipping of the last seconds of every track.
After I start a track from my smartphone or PC - connected to Volumio as the playing device - the track progress bar does not move on.
If I pause the track, the bar progress seems to synchronize.
If then I resume, progress bar works normally until the end of the track (in both PC and phone, I verified).
The issue reproduces on the next track if I’m listening to a record.

http://logs.volumio.org/volumio/SkHn8U5.html

I realized that now the PC desktop app pops up a message: “Network connection failed while playing this content” at the end of each track. Sometimes at the beginning of the next track - near the transition anyway.
It does appear often, not always.
Maybe this is related to the track skipping I’m experimenting?
The message does not appear on the smartphone app.

Hi

The new plugin is great, thanks, but I always have to re-authorize the Spotify plugin after boot up.
Here is the log:
http://logs.volumio.org/volumio/o5DudxH.html

thanks

Hi, when I’m using Spotify Connect it is not posible to play songs from a playlist randomly. It plays always the next title in the list. It makes no difference which one I choose, random or not random.
If I disconnect from Volumio and play the songs on my phone, random playing ist possible.

Actually I don’t think we have the same issue, as I misread your post. At my end the tracks are skipping all the time, and not only at the end.
But who knows if the issue is related :sweat_smile:

To me the skipping of songs only occurs in combination with Peppymeter. If I disable Peppymeter all is running fine and no skipping happens.

The system is running on older hardware (Raspberry Pi 2), Maybe the device is just running out of CPU or RAM?

Pretty sure it’s related to your hardware.

Try to install FusionDsp and play something.
Let us know :stuck_out_tongue_winking_eye:

It seems like we have the same issue. There’s also fast skipping on my Primo v1. I got the answer further up to try and disable ‘Multi room’ as source. That solves the problem, but now I can’t use multi room anymore :-/

There’s an issue I don’t know if anyone else is experiencing.

Everything is working beautifully! But when I change the device from the Spotify app the status of Volumio remains on Playing. I click on pause but it doesn’t stop it. This is a big issue for me because I use the Amp Switch plugin to turn off my amp when I stop playing, and it changes the state when it detects Volumio has stopped playing (or paused).

The only way around is to pause the music before changing the device or clearing up the queue (even though there’s no queue).

I will add the log if necessary.

Hi everyone!

First time posting here, happy Volumio user for a few months now.
However, I did run in to a little issue that developed over time.

Problem is, when playing from Spotify, it seems that Volumio doesn’t return the track progress to the connected client(s). This used to work fine, but not anymore.

What happens is that I connect the Spotify Windows10 app to Volumio, and it will report that it’s connected and playing on Volumio. I then start a song which will begin to play.
After a few seconds of playing a popup shows up just above the play controls saying “network connection failed while playing this content”.
The track progress indicator will be stuck at 0:00 and won’t update until I hit pause. It then updates to the current time in the song. When I hit play again, it’ll stay there but the song will continue.
It’ll play perfectly fine. Also, it’ll continue to the next track in the playlist.

Same thing also happens on the Spotify Android app, except for the message that the Windows app will show.

When multiple clients are connected (Windows PC and Android smartphone together), the behavior is the same and when I hit next on the PC, the screen on the phone will instantly update to the track being played (and vice versa)

What I’ve already tried:

  • Removing all plugins, rebooting Volumio and then re-adding them.
  • Added the Music Shield plugin, thinking it could be a resource problem, but that didn’t do anything.
  • reinstalling the Windows app
  • Changed settings, rebooted a lot, nothing seems to help.
  • Logged into my Spotify account from Volumio
  • (newly tested) Volumio android app does show track progress, as does the WebUI.
  • Fresh install to a blank SD card, still no track progress
  • Found out I can revert to an older version of the Spotify plugin. Tried 4.0.3/2/1/0. Problem persists.

(UPDATE)The only thing I haven’t done is a complete factory reset or even a brand new install.
I’ve installed Volumio to a new SD card, did only the necessary things to get Spotify to work. Still returns no track progress.

My setup is:

  • Raspberry Pi 3B
  • Behringer UCA222 USB DAC
  • RPi, desktop, laptop all connected through wired ethernet on the same switch, only phone on WiFi.
  • Volumio set to auto-update during the night, so always on the latest version.
  • Desktop PC with WIn10 and Spotify app from Store.
  • Company laptop (win10, spotify app)
  • Android 9 phone with Spotify app.

Looking at the live logging, it’ll occasionaly show “error: errror” during play, without any explanation. Log snippet below:

time="2023-11-30T11:55:57+01:00" level=debug msg="handling skip_next player command from d99fc168ad49e9a152d99df630cef39d70f25712"
time="2023-11-30T11:55:57+01:00" level=debug msg="skip next track"
time="2023-11-30T11:55:57+01:00" level=debug msg="loading track spotify:track:1KK7Jyf8kzQO1LkNF85uO4 (paused: false, position: 151ms)"
time="2023-11-30T11:55:57+01:00" level=debug msg="put connect state because PLAYER_STATE_CHANGED"
time="2023-11-30T11:55:57+01:00" level=trace msg="emitting websocket event: will_play"
SPOTIFY: received: {"type":"will_play","data":{"uri":"spotify:track:1KK7Jyf8kzQO1LkNF85uO4","play_origin":"playlist"}}
time="2023-11-30T11:55:57+01:00" level=debug msg="selected format OGG_VORBIS_320 for spotify:track:1KK7Jyf8kzQO1LkNF85uO4"
time="2023-11-30T11:55:57+01:00" level=debug msg="requested aes key for file e3293f77f06fcdce27dee99f27c08efeef87a821, gid: 1KK7Jyf8kzQO1LkNF85uO4"
time="2023-11-30T11:55:58+01:00" level=debug msg="fetched first chunk of 17, total size is 8507928 bytes"
time="2023-11-30T11:55:58+01:00" level=trace msg="seek to 151ms (diff: 151ms, samples: 6659, bytes: 0)"
time="2023-11-30T11:55:58+01:00" level=info msg="loaded track \"I Left My License in the Future\" (uri: spotify:track:1KK7Jyf8kzQO1LkNF85uO4, paused: false, position: 151ms, duration: 212635ms)"
time="2023-11-30T11:55:58+01:00" level=debug msg="put connect state because PLAYER_STATE_CHANGED"
time="2023-11-30T11:55:58+01:00" level=trace msg="emitting websocket event: metadata"
time="2023-11-30T11:55:58+01:00" level=debug msg="fetched chunk 2/16, size: 524288"
SPOTIFY: received: {"type":"metadata","data":{"uri":"spotify:track:1KK7Jyf8kzQO1LkNF85uO4","name":"I Left My License in the Future","artist_names":["Thundermother"],"album_name":"I Left My License in the Future","album_cover_url":"https://i.scdn.co/image/ab67616d00001e024321edc7c772eef4ee84779a","position":151,"duration":212635}}
time="2023-11-30T11:55:58+01:00" level=debug msg="sending successful reply for delaer request"
time="2023-11-30T11:55:58+01:00" level=debug msg="fetched chunk 3/16, size: 524288"
time="2023-11-30T11:55:58+01:00" level=debug msg="put connect state because PLAYER_STATE_CHANGED"
time="2023-11-30T11:55:58+01:00" level=trace msg="emitting websocket event: playing"
SPOTIFY: received: {"type":"playing","data":{"uri":"spotify:track:1KK7Jyf8kzQO1LkNF85uO4","play_origin":"playlist"}}
SPOTIFY: PUSH STATE SPOTIFY
SPOTIFY: {"status":"play","service":"spop","title":"I Left My License in the Future","artist":"Thundermother","album":"I Left My License in the Future","albumart":"https://i.scdn.co/image/ab67616d00001e024321edc7c772eef4ee84779a","uri":"spotify:track:1KK7Jyf8kzQO1LkNF85uO4","trackType":"spotify","seek":151,"duration":212,"samplerate":"44.1 KHz","bitdepth":"16 bit","bitrate":"320 kbps","codec":"ogg","channels":2,"random":null,"repeat":null,"repeatSingle":null,"stream":false,"repeatMode":"all"}
info: CoreCommandRouter::servicePushState
info: CoreStateMachine::pushState
info: CoreCommandRouter::executeOnPlugin: volumiodiscovery , saveDeviceInfo
info: CoreCommandRouter::volumioPushState
time="2023-11-30T11:55:58+01:00" level=debug msg="fetched chunk 1/16, size: 524288"
SPOTIFY: PUSH STATE SPOTIFY
SPOTIFY: {"status":"play","service":"spop","title":"I Left My License in the Future","artist":"Thundermother","album":"I Left My License in the Future","albumart":"https://i.scdn.co/image/ab67616d00001e024321edc7c772eef4ee84779a","uri":"spotify:track:1KK7Jyf8kzQO1LkNF85uO4","trackType":"spotify","seek":151,"duration":212,"samplerate":"44.1 KHz","bitdepth":"16 bit","bitrate":"320 kbps","codec":"ogg","channels":2,"random":null,"repeat":null,"repeatSingle":null,"stream":false,"repeatMode":"all"}
info: CoreCommandRouter::servicePushState
info: CoreStateMachine::pushState
info: CoreCommandRouter::volumioPushState
error: error
time="2023-11-30T11:56:08+01:00" level=debug msg="fetched chunk 4/16, size: 524288"
time="2023-11-30T11:56:21+01:00" level=debug msg="fetched chunk 5/16, size: 524288"
time="2023-11-30T11:56:33+01:00" level=debug msg="fetched chunk 6/16, size: 524288"
time="2023-11-30T11:56:46+01:00" level=debug msg="fetched chunk 7/16, size: 524288"
error: error
time="2023-11-30T11:57:00+01:00" level=debug msg="fetched chunk 8/16, size: 524288"

Anyone any idea what’s going on here?

1 Like

Hi on my site the player 1 stops when switching to player 2 from Spotify App

Hi, when I use the spotify app on android and play on my volumio device, I do not receive propper data about how long I played the song. the behavor is:

I play and the counter for the time shows 0:00 in the spotify app and it stays on 0:00 but song is playing.

I pause the song and I receive the time e.g. “1:20” I press “play” and the time stops again at “1:20” I press pause at it will become “1:50” etc…