advplyr / audiobookshelf-app

Mobile application for Audiobookshelf
https://audiobookshelf.org
GNU General Public License v3.0
1.24k stars 168 forks source link

[Enhancement]: Auto-duck currently playing media when notification is received #1259

Open Corgi opened 3 months ago

Corgi commented 3 months ago

Describe the Feature/Enhancement

Currently, on my Pixel 5 running Android 14, any notification received will cause the playing audiobook to fully pause during the notification sound before resuming.

I would like to see a feature to enable auto-ducking (temporarily lowering the volume but continuing to play) when a notification is received.

Why would this be helpful?

I get many notifications a day from my chat apps that I don't want to miss by turning on vibrate-only or DND, but I also find it jarring when my media fully stops to play a notification sound. This feature is native in Spotify and YouTube (or possibly just YouTube Revanced, which is what I use), and is also available as a setting option in Pocket Casts. I think it would be a good addition to ABS.

Future Implementation (Screenshot)

Screenshot_20240717-063853 How this feature is implemented in Pocket Casts

Audiobookshelf App Version

Android App - 0.9.74

Current Implementation (Screenshot)

No response

nichwall commented 3 months ago

Duplicate of https://github.com/advplyr/audiobookshelf-app/issues/980, but uses new issue template and has a screenshot