advplyr / audiobookshelf-app

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

[Android] Automatic behaviour on Bluetooth connection #1055

Open Gathaeryx opened 9 months ago

Gathaeryx commented 9 months ago

Is your feature request related to a problem? Please describe.

Many other music/audiobookplayers are able to automatically start playing as soon as a Bluetooth device is connected, without having to open the app. I have to admit that this is the single feature that keeps me from switching to Audiobookshelf permanently, since it is one I cannot live without.

Describe the solution you'd like

For the app to automatically start playing (perhaps with a small rewind) when a Bluetooth device is connected, and to pause when Bluetooth is disconnected.

Describe alternatives you've considered

The Android App 'Listen Audiobook Player' has the best and most complete iteration of this functionality that I have seen so far: it allows to also ignore certain Bluetooth divices, so your audiobooks will start playing when you connect your headset, but not when you connect to your living room speakers, for instance.

Additional context

See a screenshot of the Listen Audiobook Player here, with several of the Automated options it offers: listenaudiobookplayer

nichwall commented 9 months ago

As of right now, the app is required to be open to allow for playback to work. Related FR: https://github.com/advplyr/audiobookshelf-app/issues/768

advplyr commented 9 months ago

The app still needs to be open in the background though, right? You just don't need to put the app in the foreground and press play.

Gathaeryx commented 9 months ago

I believe most apps require the app to be opened once after startup, but don't require it to be open in the forekground.