Bug 402324 - Pausing the current track on Soundcloud skips to the next track on first play
Summary: Pausing the current track on Soundcloud skips to the next track on first play
Status: RESOLVED FIXED
Alias: None
Product: plasma-browser-integration
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-18 21:27 UTC by Neousr
Modified: 2019-04-22 09:29 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Neousr 2018-12-18 21:27:51 UTC
SUMMARY

Starting a song on any playlist/stream on Soundcloud will show the current song name on the plasmoid but will not change the icon from playing/none to pause.

Pressing the "play" button while is already playing will make the current song on Soundcloud enter a buffering loop and skip to the next song.  (The play button the orange one will flash with tree dots)

Making impossible to pause/play and making the Plasmoid misbehave.

Manually playing a new song from the same playlist from the website will produce the same result skipping to the next song.

To circumvent the loop reloading the page and starting a song will be the fist step then the second one will be from the website pause the current song. This will remove the loop and make the Plasmoid work as intended at least until refreshed.


STEPS TO REPRODUCE

1. Go to https://soundcloud.com/ and browse an artist stream or user playlist and click play. (Need to be at least two songs on the stream/playlist)

2. Click on the Plasmoid to see the current track and the media controls (Play will be available while the song is already playing)

3. Click on the "play" button (This will skip to the next song)

OBSERVED RESULT

Using the play/pause buttons will skip to the next song making it buffer	indefinitely, manually going to the next one will repeat the same loop until no more songs are left or the browser tab is refreshed.


EXPECTED RESULT

Pausing the song should refresh accordingly and not skip to the next track on the playlist.


SOFTWARE/OS VERSIONS

KDE Plasma: 5.14.4
KDE Frameworks Version: 5.53.0
Qt Version: 5.11.2


ADDITIONAL INFORMATION

Firefox/Chrome Extensions both version 1.4

Multimedia controls option is checked on both.
Comment 1 Kai Uwe Broulik 2018-12-19 10:48:25 UTC
Can you try enabling "Enhanced media controls" in the extension's settings? I recall Soundcloud disliking if we directly poke their player item.
Soundcloud uses Media Sessions API, so a Pause call can be routed through this if enabled in settings. Since this feature is quite invasive and prone to break websites, it is off by default.
Comment 2 Neousr 2018-12-19 16:31:09 UTC
Enhanced media controls is already enabled just missed the name on the report as Multimedia controls options on additional info.

If unchecked there is no interaction whatsoever between the website and browser integration.
Comment 3 Kai Uwe Broulik 2019-04-22 09:29:53 UTC
Git commit eb583434a5611e5a3bb8046e6627469753115b3c by Kai Uwe Broulik.
Committed on 22/04/2019 at 09:29.
Pushed by broulik into branch 'master'.

Keep player around when emptied but the website tells us it's actually just paused

Requires "Enhanced media controls" to be enabled in extension settings to work

Differential Revision: https://phabricator.kde.org/D20724

M  +10   -0    extension/content-script.js

https://commits.kde.org/plasma-browser-integration/eb583434a5611e5a3bb8046e6627469753115b3c