Bug 453924 - Add an option to pause the currently playing song/video on an audio sink that vanishes
Summary: Add an option to pause the currently playing song/video on an audio sink that...
Status: RESOLVED DUPLICATE of bug 444818
Alias: None
Product: frameworks-kmediaplayer
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: Alex Merry
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-17 07:37 UTC by Raphaël Jakse
Modified: 2022-05-17 12:21 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raphaël Jakse 2022-05-17 07:37:39 UTC
SUMMARY

I'm not sure where this should be reported, sorry if I picked the wrong one.

On Android and probably other platforms, when an headset (bluetooth or jack) or a speaker is disconnected, the currently playing song is paused. This is a sensible behavior: if I'm listening to something on my headset and I unplug it, it's likely I want to pause the thing being played or that I unplugged it inadvertently and I don't want to annoy people next to me. Other problematic situation: Bluez gets updated and restarted, or the headset runs out of battery. This disconnects the  headset, and this can result in my music suddenly screaming out of my internal speakers.

In addition to annoy people, it's likely that if I'm actually listening to a podcast or watching a video, I will need to get back to the moment the disconnection happened because I missed what followed.

The disconnection and sink switching is already a disruption in itself so pausing whatever can be paused would not add much disruption. IHMO, ideally, only things playing on this vanishing sink should be paused, not the other stuff.

Pausing should be done before the sink switch. Otherwise, the sound could be heard for a brief moment or a bit of the song / video could be missed.

I think this should be an option because likely not everyone want this, but it should be turned on by default because people are not likely to turn it on before being burned by the song that keeps playing after a disconnection.

Maybe if the sink is back again without other user interaction / within some time interval, the song / video that has been paused could be restored automatically, a bit like when you get a call on a phone connected to the computer using KDE Connect.

STEPS TO REPRODUCE
1. Play something with software that supports MPRIS
2. disconnect your headset (Bluetooth or jack)

OBSERVED RESULT

The player is automatically switched to another available sink. It still plays its thing, even if the sink is loud or muted.

EXPECTED RESULT

Whatever the player was playing is pause. Only then, the player is automatically switched to another available sink. Maybe the song/video is restored if the sink appears again.
Comment 1 Nicolas Fella 2022-05-17 12:21:04 UTC

*** This bug has been marked as a duplicate of bug 444818 ***