audiobookshelf-app icon indicating copy to clipboard operation
audiobookshelf-app copied to clipboard

(android) Playback closes when connecting to car bluetooth

Open pooreboy opened this issue 3 years ago • 16 comments
trafficstars

Steps to reproduce

1.Listening to book on bluetooth headphones (jabra elite 85t Samsung Note 20 ultra) 2.start car (bluetooth to car connects automatically) 3.the bar showing what I am listening to in the app disappears and when I click on the book it doesnt show any progress at all

Expected behaviour

  • The progress should not be lost when connecting to a second bluetooth device

Actual behaviour

  • the book stops playing (which is expected) then the player seems to close and all progress on that book is lost

Environment data

Audiobookshelf Version:

  • [X ] Android 0.9.46-beta
  • [ ] iOS App

Android Issue

Android version: 12

Device model: Samsung Note 20 Ultra

Stock or customized system: Stock

pooreboy avatar May 24 '22 19:05 pooreboy

I also experienced this problem this morning on my drive, although the app did not switch between multiple Bluetooth devices. I pressed play on the app it showed progress happening, but no sound was playing. I force closed the app and when I reopened it, all of my progress was gone.

jberlyn avatar May 26 '22 03:05 jberlyn

I've also lost progress when the app hung and had to restart.

There should be a robust method to log progress as its happening, progress should never be lost.

andonevris avatar May 26 '22 14:05 andonevris

I too had this problem the other day. I connected to my cars Bluetooth and it reset unexpectedly to the beginning of the book.

binaryn3xus avatar May 28 '22 20:05 binaryn3xus

I can confirm this is routinely occuring to me too:-

From Sony WF-1000MX4 to Subaru Forrester

Audiobookshelf Version: Android 0.9.46-beta; AB 2.0.17 Android version: 12 Device model: Pixel 4A Stock or customized system: Stock

jcrmit avatar May 28 '22 22:05 jcrmit

I lose progress probably a good 2 to 3 times a day. Definitely need a really robust rolling progress save.

freitagdavid avatar Jun 01 '22 03:06 freitagdavid

The most recent release seems to have added some session tracking stuff to the web UI, as well as end points for an upcoming mobile release. Fingers cross this issue gets fixed.

https://github.com/advplyr/audiobookshelf/releases/tag/v2.0.19

jberlyn avatar Jun 05 '22 02:06 jberlyn

I'm on version 0.9.49 beta. Ran into the progress resetting issue. Connected to Bluetooth, played fine. Stopped at a gas station and turned car off. Playback stopped, when I got back in my car, connected to Bluetooth, and went to play all progress was gone. It didn't even remember the previous progress before I got in my car for the day. I do run the app basically in "local" mode when out and about. My server is on my Lan but not shared online in any way.

rboylesDev avatar Jun 25 '22 15:06 rboylesDev

Does this issue persist on the latest mobile release 0.9.52-beta and the latest server 2.0.24?

advplyr avatar Jul 17 '22 00:07 advplyr

I'm having sync problems still, but not total loss. Today I hopped in the car and drove for about 20 minutes, listening to an audiobook. I stopped, hopped out of the car for 10 minutes then hopped back in. When I resumed the book, the progress synced back to where it was when I first got in the car this morning. Then I drove to the shop, listening for 15 minutes. Got out, got back in a few minutes later and same problem, bounced back to the initial position from first thing this morning.

Server version is v2.0.24 and app version is 0.9.52-beta.

jberlyn avatar Jul 17 '22 22:07 jberlyn

same for me the progress seems to save but not where I was expecting it to I also had one other issue I had audiobookshelf open when I hopped back in my car and I noticed the little bar with the play pause rewind button etc. when my car connected the player disappeared completely. so when I hit the play pause button on my headphones nothing happens I had to go into the app and select the book I was listening to again for it to start. This seems to happen if the UI is open or not

pooreboy avatar Jul 18 '22 12:07 pooreboy

This issue may be fixed in 0.9.54-beta

Please give it another test

advplyr avatar Jul 22 '22 16:07 advplyr

just tried (sorry was out of town) same issue as soon as the cars BT connects the player just disappears from the UI. using the play pause button on my headphones does nothing I have to open the app select my book and hit play. the progress stuff seems to be good now though

pooreboy avatar Jul 30 '22 23:07 pooreboy

Sorry for the delay in getting back to you on this. My specific issue is no longer occurring. I haven't been getting any sync issues at all on my devices.

Server version is v2.1.2 and app version is 0.9.55-beta.

jberlyn avatar Aug 08 '22 10:08 jberlyn

again, sorry for the delay as well. My recent experience has been similar to others. It seems to always remember the last time it actually synced with the server. That said, I have had better luck when I explicitly open the application and tell it to pause playback rather than relying on the bluetooth disconnect event to cause playback to pause.

rboylesDev avatar Aug 13 '22 20:08 rboylesDev

I also have the problem of Playback closing when I get into my car. The problem is intermittent for me, though it occurs about 90% of the time. When it happens, I am usually listening on a Bluetooth headset (Shokz OpenRun Pro) when I get into the car (2021 Equinox). Playback stops as others have described when my phone connects to the car's bluetooth. I don't normally lose progress when this happens. On the head unit, I'll just see my device name and play/pause does nothing. I have to open my phone, navigate to the app, find my book, then play.

I'm on app version 0.9.63-beta at the moment and still see the issue.

If there is a way to gather logs or other data to help diagnose, I'm happy to do so as I can reproduce this very regularly.

Speewack avatar Mar 14 '23 19:03 Speewack

I had the same issue happen when my phone disconnected from my car's Bluetooth. Every time I start the car, it connects to the car and continues playing as expected, but when I turned off the car, it stopped playing, and when I tried to restart with my headset, it restarted at the start of the podcast. If I force the switch to my headset before turning off the car, it continues from where I am. I've just enabled MP3 seeking, so I'll see if that makes a difference.

politas avatar Mar 14 '24 06:03 politas