noson-app icon indicating copy to clipboard operation
noson-app copied to clipboard

KDE Media Player unable to advance song when playing via Spotify Connect

Open motoridersd opened this issue 3 years ago • 4 comments

Just started using Noson and love what it looks like today!

I'm on KDE and noticed that if I play music on the Sonos speaker through Spotify Connect, the KDE Media Player widget is unable to control next/previous tracks. It works fine on Noson. If I start Spotify playback from the Sonos app, the controls in Media Player work as expected.

Seems to consistently be able to reproduce:

Start Sonos playback from Spotify using Spotify Connect Open KDE Media Player Previous/Next buttons are grayed out and I'm unable to click on them. Play/Pause button works (Noson is able to skip/next, but not go back)

image

image

Expectation is that they are not grayed out and can be used to control playback

Same playlist played directly from Sonos app allows the controls to work

image

This is a very minor issue and probably very niche, but figured I opened it up just in case. Happy to help collect data to diagnose.

I tried this with the flatpak and then built it from source, behavior was the same.

motoridersd avatar Mar 08 '21 23:03 motoridersd

With Noson, the button Next and Previous are designed to control the playing track in the playlist. A button is grayed out if there is no previous or next track. On the first track the Previous button should be grayed out, on the last track the next button should be grayed out. If you need to rewind or forward the playback just move the blue slider.

janbar avatar Mar 09 '21 21:03 janbar

I've been using GNOME 40 now and I see similar behavior with the Mpris Indicator Button extension. It seems it's MPRIS that isn't receiving the information that the track can be skipped

image

The Noson app shows the track can be skipped, and using the Next media key will skip. This is again, super minor. I am mostly excited to be able to control Sonos volume from a permanent location with this extension.

*Missing album art is a known GNOME bug according to the developer of the MPRIS extension

motoridersd avatar Apr 21 '21 16:04 motoridersd

Hi, it works as expected with gnome 3. I guess it is a bug elsewhere with mpris or gnome 4.

janbar avatar May 01 '21 08:05 janbar

My guess would be that they don't check CanGoNext and CanGoPrevious anymore, and since noson returns false to HasTrackList they just assume it isn't possible to skip.

edit: nvm, at least plasma seems to be doing it correctly, though: https://github.com/KDE/plasma-workspace/blob/master/applets/mediacontroller/contents/ui/main.qml#L76-L77

sandsmark avatar Aug 07 '21 21:08 sandsmark