Bug 392849 - Playback starts paused song when closing other application
Summary: Playback starts paused song when closing other application
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: Phonon
Classification: Frameworks and Libraries
Component: frontend (show other bugs)
Version: 4.10.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Harald Sitter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-07 23:03 UTC by Huw
Modified: 2022-11-26 08:47 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Huw 2018-04-07 23:03:49 UTC
I use Phonon to switch devices when I want to switch between headphones and speakers.  I do this by changing the order of preference in Phonon configuration.

When I move the speakers output higher than headphones output (i.e. switching from headphones to speakers) Amarok immediately starts playing a song in the current playlist.

Reproducible: always.
Comment 1 Myriam Schweingruber 2018-04-09 23:59:14 UTC
What state is Amarok in before you switch device, pause or stop? Also please make sure you do not have "Resume playback on start" activated.
Comment 2 Huw 2018-04-10 00:07:02 UTC
Ah, I do apologise; I've got this wrong.  It's when I close Mumble.  The reason I misidentified the conditions is because I'm always switching back to speakers when closing Mumble (in fact this is the only time I do this).

So what actually happens is Amarok resumes playback if it's paused and I close Mumble.  However the setting "resume playback on start" is NOT checked.

It doesn't happen if the state is stopped, although I usually pause instead of stop because left-clicking pause is a lot easier than right-clicking the tray icon and selecting stop.
Comment 3 Myriam Schweingruber 2018-04-12 20:23:27 UTC
How exactly do you close Mumble, with a shortcut? Then maybe it is a shortcut that does not respect the shortcuts list in Amarok. KDE apps and Plasma have a distinct list of global and private related shortcuts that are not necessarily respected by external application, which Mumble is.
Comment 4 Huw 2018-04-12 20:55:20 UTC
No, I always click the X close button on the title bar of Mumble's window.
Comment 5 Myriam Schweingruber 2018-04-13 20:26:23 UTC
Just to be precise: the playback starts when paused as soon as you switch the Phonon output, right? Or when you actually close the Mumble application, which happens before or after the output device switch?
Comment 6 Huw 2018-04-13 21:50:30 UTC
I've done some work to narrow it down.  This is the only condition under which I can reliably reproduce the issue:

Have Phonon set to prefer my headset for output.  Have a song paused in Amarok (not stopped).  "Resume playback on start" is not checked.  Launch Mumble.  Close Mumble.

The song will then play.

The issue does not appear if my soundcard is the preferred output, or if the song in Amarok is stopped.

(Again, I apologise for my initial inaccurate report; I will be more thorough before submitting future bugs)
Comment 7 Myriam Schweingruber 2018-04-16 23:49:15 UTC
Thank you for the quick response, I updated the bug description accordingly, but I suspect this to be actually a Phonon issue, reassigning.
Comment 8 Justin Zobel 2022-11-21 08:21:57 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 9 Huw 2022-11-26 08:47:12 UTC
(In reply to Justin Zobel from comment #8)
> Thank you for reporting this issue in KDE software. As it has been a while
> since this issue was reported, can we please ask you to see if you can
> reproduce the issue with a recent software version?
> 
> If you can reproduce the issue, please change the status to "REPORTED" when
> replying. Thank you!

Sorry, I no longer use this combination of software so I guess I'll just close the bug.