advplyr / audiobookshelf-app

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

Progress lost on downloaded audiobooks when connected to server #828

Closed wbio closed 1 year ago

wbio commented 1 year ago

Steps to reproduce

  1. Listen to locally-downloaded audiobook
  2. Close app
  3. Reopen app

Expected behaviour

Actual behaviour

Environment data

Audiobookshelf Server Version: server v2.3.3 Audiobookshelf App Version: 0.9.65-beta

iOS Issue

iOS Version: 16.5.1

iPhone model: iPhone 14 Pro

Notes

I saw similar issues about progress loss, but didn't see any that fit this exact scenario, so apologies if I missed it.

This has been happening both when closing/reopening the app as well as when I have been listening while disconnected to the server and then reconnect (examples of both below). I see Listening Sessions on my server, so it does appear that listening data is being sent/received. This behavior does not happen when streaming a book, only when playing a downloaded one.

I took a break from audiobooks for a little while (last listen on 7/7/23) and just started back last week. Prior to the break, I hadn't experienced this issue, but it's been consistent ever since I started back. I'm not sure if I was on app version 0.9.65-beta before (looks like it had been released at that point), but it looks like there have been several server releases since then (I have auto-updates turned on and am currently on the latest version).

Examples

In this video I have been listening to the book while connected to the server. When I exit the app and reopen it, progress has been reset to 0%.

https://github.com/advplyr/audiobookshelf-app/assets/7266957/223a7d75-8b75-4b77-8ffa-2c3cfab3d691

In this video I have been listening to the book locally (on cell network so not connected to my server). When I connect to Wifi and select "Connect to server" within the app (without closing/reopening it), the progress is reset to 0%.

https://github.com/advplyr/audiobookshelf-app/assets/7266957/2b5c18a2-827c-46a5-8afc-e4b1a8330c59

jakoss commented 1 year ago

I had this few times for big audio files and re-upload of the same content in chunks seems to help, but no idea why

florianehmke commented 1 year ago

I am facing the same issue, also both ways (connected, local). iOS App on 14 pro.

noja11 commented 1 year ago

I am also experiencing this issue on iOS. Progress is only maintained when I pause and play over a short period of time. Switching from headphones to the car also causes progress to be lost.

CORRECTION

I'm also losing my progress when streaming directly from the server. I haven't tried the web app yet to see if the same problem persists, but I doubt it will.

barelylit commented 1 year ago

Same thing happened to me:

image

b0rrasca commented 1 year ago

I have had the same issue several times for a number of months.

barelylit commented 1 year ago

Same thing again this morning

Screenshot_20230904-093130

jakoss commented 1 year ago

I have constant reproduction pattern. Play, hide app to the background, play it for 1 hour. Then pause the playback using external media controller (like bluetooth buds or car music system). Then, if you try to play, the playback is rolledback by the hour. It's like the app saved the position before going into background and then rolling back to it on playback start

barelylit commented 1 year ago

That is consistent with what i just experienced, i just paused it with earphone button there

advplyr commented 1 year ago

I just reproduced and fixed the issue mentioned by @jakoss

advplyr commented 1 year ago

Fixed in v0.9.66-beta