Bug 451500

Summary: Current timestamp for some media players (e. g. Spotify) is wrong / starts at 0:00 when opening the applet
Product: [Plasma] plasmashell Reporter: Firlaev-Hans <firlaevhanskde.upstream314>
Component: Media Player widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: kde
Priority: NOR    
Version First Reported In: 5.24.3   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Firlaev-Hans 2022-03-14 17:46:51 UTC
SUMMARY
If you play a song in Spotify and let it play for a few seconds, then open the media player applet, it will display the timestamp as 0:00 and count up from there, rather than displaying the correct timestamp. If you then close the applet and open it again a few seconds later, it will continue at the timestamp at which you closed it.

STEPS TO REPRODUCE
1. Play a song in Spotify (some other players might be affected too)
2. A few seconds later, open the media control applet and compare the timestamp displayed in there with the one in Spotify itself
3. Close the applet and open it again a few seconds later

OBSERVED RESULT
The time code displayed in the media control applet is different from the actual time code (starts at 0:00 instead of the actual time code).
E. g. the current song is at 0:23 of 3:53, you open the applet, it says 0:00 of 3:53, 5 seconds later the song is at 0:27 but the applet either says 0:05 of 3:53 instead of 0:27, or it's simply frozen at 0:00.

EXPECTED RESULT
The media control applet should get the correct timestamp from Spotify, or, if that's not possible, just don't display a (wrong) time code at all as it's rather confusing to the user.

SOFTWARE/OS VERSIONS
Betriebssystem: Arch Linux
KDE-Plasma-Version: 5.24.3
KDE-Frameworks-Version: 5.92.0
Qt-Version: 5.15.3
Kernel-Version: 5.16.14-zen1-1-zen (64-bit)
Grafik-Plattform: Wayland
Comment 1 Kai Uwe Broulik 2022-03-21 21:58:56 UTC
Unfortunately, that appears to be the value that gets reported by Spotify no matter the actual playback position.

$ qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Position 
0