ENHANCEMENT: sync back played for offline downloaded #78

Closed
opened 2026-04-24 22:57:47 +02:00 by adam · 12 comments
Owner

Originally created by @docfactory37 on GitHub (Oct 25, 2021).

i have downloaded an audiobook to my phone to listen in offline mode, but it would be good that if i reconnect back to the server that it sync what has been played back to the server to continue play once home.

at the moment if i play in offline mode i have to continue on that device only and not able to continue on another device or by the web portal.

Please let me know your thoughts?

Note: awesome what you have done been looking a long time for a good AudioBook / book manager :)

Originally created by @docfactory37 on GitHub (Oct 25, 2021). i have downloaded an audiobook to my phone to listen in offline mode, but it would be good that if i reconnect back to the server that it sync what has been played back to the server to continue play once home. at the moment if i play in offline mode i have to continue on that device only and not able to continue on another device or by the web portal. Please let me know your thoughts? Note: awesome what you have done been looking a long time for a good AudioBook / book manager :)
adam closed this issue 2026-04-24 22:57:47 +02:00
Author
Owner

@davidszp commented on GitHub (Oct 26, 2021):

This functionality supposedly has worked before, potentially a regression. I can confirm I could not get sync to work in my test today. Referenced here previously 9

@davidszp commented on GitHub (Oct 26, 2021): This functionality supposedly has worked before, potentially a regression. I can confirm I could not get sync to work in my test today. Referenced here previously [9](https://github.com/advplyr/audiobookshelf-app/issues/9)
Author
Owner

@advplyr commented on GitHub (Oct 26, 2021):

I got it working again but it still needs testing. Both the server and app need to be updated.
Server v1.5.3 and mobile app v0.9.10-beta

The mobile app and web app should both update the audiobook progress in realtime, so when testing the sync you shouldn't need to refresh the browser.

Mobile app will be live on the play store in an hour or 2.

@advplyr commented on GitHub (Oct 26, 2021): I got it working again but it still needs testing. Both the server and app need to be updated. Server `v1.5.3` and mobile app `v0.9.10-beta` The mobile app and web app should both update the audiobook progress in realtime, so when testing the sync you shouldn't need to refresh the browser. Mobile app will be live on the play store in an hour or 2.
Author
Owner

@ChilliGeologist commented on GitHub (Oct 26, 2021):

Hey @advplyr I've updated to server 1.5.3 and android 0.9.10-beta and I can confirm that the progress updates instantly on the web version when scrobbling around in the app. However when I stop playing the book in app, and press play in the browser, the browser version seems to ignore the progress and go back to wherever the browser version previously had the progress stored at. Happy to do further testing if you need, and just wanted to say really appreciate the work you've done on this app, it's truly fantastic.

EDIT:
Also just wanted to add, when I try that same process the other way around, I scrobble around on the browser and I can see the progress instantly updating in the mobile app, then I cancel the stream in browser, start in the app, and the app will respect the new progress and follow on from where the browser was.

Also tested all of this using a non-downloaded book and everything works perfectly as expected, so this does seem to be isolated to having a downloaded book on mobile.

EDIT 2:
Also found that if I play the book without having the AudioBookshelf browser page open at all, play around with the progress, then open up the browser page of that book, the progress will not have updated. As soon as I then start scrobbling around with the progress in-app the browser one updates again.

@ChilliGeologist commented on GitHub (Oct 26, 2021): Hey @advplyr I've updated to server 1.5.3 and android 0.9.10-beta and I can confirm that the progress updates instantly on the web version when scrobbling around in the app. However when I stop playing the book in app, and press play in the browser, the browser version seems to ignore the progress and go back to wherever the browser version previously had the progress stored at. Happy to do further testing if you need, and just wanted to say really appreciate the work you've done on this app, it's truly fantastic. EDIT: Also just wanted to add, when I try that same process the other way around, I scrobble around on the browser and I can see the progress instantly updating in the mobile app, then I cancel the stream in browser, start in the app, and the app will respect the new progress and follow on from where the browser was. Also tested all of this using a non-downloaded book and everything works perfectly as expected, so this does seem to be isolated to having a downloaded book on mobile. EDIT 2: Also found that if I play the book without having the AudioBookshelf browser page open at all, play around with the progress, then open up the browser page of that book, the progress will not have updated. As soon as I then start scrobbling around with the progress in-app the browser one updates again.
Author
Owner

@docfactory37 commented on GitHub (Oct 26, 2021):

I have also updated the mobile app and Docker container to the latest updates you have made.

Please see steps to reproduce below.

  1. open app in online mode.
  2. download audiobook
  3. close app and go offline.
  4. reopen app and click on the folder on top right to see downloaded files
  5. click play and listen to audiobook
  6. close app
  7. go back online again, and open app i can see the that progress is updated on Server. :)

test 2

  1. open app in online mode.
  2. download audiobook
  3. close app and go offline.
  4. reopen app and click on the the opener / file with book image
  5. click play and listen to audiobook
  6. close app
  7. go back online again, and open app then check the server if it has updated no updates made.

thank you for all your hard work on this :) again great audiobook manager :)

also happy to complete any future testing 👍 :)

@docfactory37 commented on GitHub (Oct 26, 2021): I have also updated the mobile app and Docker container to the latest updates you have made. Please see steps to reproduce below. 1. open app in online mode. 2. download audiobook 3. close app and go offline. 4. reopen app and click on the folder on top right to see downloaded files 5. click play and listen to audiobook 6. close app 7. go back online again, and open app i can see the that progress is updated on Server. :) test 2 1. open app in online mode. 2. download audiobook 3. close app and go offline. 4. reopen app and click on the the opener / file with book image 5. click play and listen to audiobook 6. close app 7. go back online again, and open app then check the server if it has updated no updates made. thank you for all your hard work on this :) again great audiobook manager :) also happy to complete any future testing 👍 :)
Author
Owner

@davidszp commented on GitHub (Oct 26, 2021):

Result of my test today:

  • downloaded book to mobile
  • went out for a run and listened to audiobook in full offline mode (no wifi, no data connection)
  • came back to house and paused playback by switching off bluetooth headphones
  • Thus far, I did not unlock the phone, it was in sleep mode
  • Phone automatically reconnects to wifi in house
  • Checked webserver, it did not get the sync from my phone
  • I unlocked the phone and opened audiobookshelf app, after a few seconds the sync position showed up on the webserver

So far so good, this was IMO a successful test. More to follow.

@davidszp commented on GitHub (Oct 26, 2021): Result of my test today: - downloaded book to mobile - went out for a run and listened to audiobook in full offline mode (no wifi, no data connection) - came back to house and paused playback by switching off bluetooth headphones - Thus far, I did not unlock the phone, it was in sleep mode - Phone automatically reconnects to wifi in house - Checked webserver, it did not get the sync from my phone - I unlocked the phone and opened audiobookshelf app, after a few seconds the sync position showed up on the webserver So far so good, this was IMO a successful test. More to follow.
Author
Owner

@davidszp commented on GitHub (Oct 28, 2021):

I updated to server 1.5.5 and latest android app. I noticed the following when testing syncing:

  • connected on wifi
  • playing audiobook on mobile, syncs automatically to server and shows playback position on desktop browser
  • stop mobile playback, close app
  • trying to play on desktop starts from beginning and does not use the displayed progress position %

Regression? I believe this worked fine yesterday with a previous version for me.

@davidszp commented on GitHub (Oct 28, 2021): I updated to server 1.5.5 and latest android app. I noticed the following when testing syncing: - connected on wifi - playing audiobook on mobile, syncs automatically to server and shows playback position on desktop browser - stop mobile playback, close app - trying to play on desktop starts from beginning and does not use the displayed progress position % Regression? I believe this worked fine yesterday with a previous version for me.
Author
Owner

@ChilliGeologist commented on GitHub (Oct 28, 2021):

@davidszp From all my testing, I've found that if I play a downloaded book on my phone in any way, the progress will appear on the desktop version but when you press play it doesn't seem to respect that progress. This only happens with a downloaded book on mobile, if I play a book via streaming on mobile then the desktop will pick up at the correct point.

@ChilliGeologist commented on GitHub (Oct 28, 2021): @davidszp From all my testing, I've found that if I play a downloaded book on my phone in any way, the progress will appear on the desktop version but when you press play it doesn't seem to respect that progress. This only happens with a downloaded book on mobile, if I play a book via streaming on mobile then the desktop will pick up at the correct point.
Author
Owner

@davidszp commented on GitHub (Oct 28, 2021):

I now tested it with numerous different audiobooks, and I can confirm @proteus077 observation:

  • syncing between mobile player and web desktop player works correctly when the mobile copy is not cached/offline but is streamed via wifi. Then switching between the web player and mobile works seamlessly, back and forth.
  • if instead I play a local/cached copy on the mobile, then syncing does not work correctly currently. I seek to a position on the mobile app, the web server/desktop gets the sync information correctly (e.g. position @ 25%) and displays it accordingly. But once I press the play button, it will always start at 0% which appears to be a bug.
@davidszp commented on GitHub (Oct 28, 2021): I now tested it with numerous different audiobooks, and I can confirm @proteus077 observation: - syncing between mobile player and web desktop player works correctly when the mobile copy is not cached/offline but is streamed via wifi. Then switching between the web player and mobile works seamlessly, back and forth. - if instead I play a local/cached copy on the mobile, then syncing does not work correctly currently. I seek to a position on the mobile app, the web server/desktop gets the sync information correctly (e.g. position @ 25%) and displays it accordingly. But once I press the play button, it will always start at 0% which appears to be a bug.
Author
Owner

@zombiehoffa commented on GitHub (Nov 11, 2021):

I can also confirm on the very latest server and app. I was just coming to report this but you guys have the problem completely hashed out already.

@zombiehoffa commented on GitHub (Nov 11, 2021): I can also confirm on the very latest server and app. I was just coming to report this but you guys have the problem completely hashed out already.
Author
Owner

@davidszp commented on GitHub (Nov 26, 2021):

I tried downloading a file for offline use in the mobile app, and it currently does not work (0% progress spinning). Updated to latest docker server and mobile app from play store.

@davidszp commented on GitHub (Nov 26, 2021): I tried downloading a file for offline use in the mobile app, and it currently does not work (0% progress spinning). Updated to latest docker server and mobile app from play store.
Author
Owner

@advplyr commented on GitHub (Nov 26, 2021):

@davidszp Have you tried downloading other audiobooks? Is the server showing any errors?

Have you tried selecting a different folder to download to? It seems there are still issues with some users and selecting some folders.

@advplyr commented on GitHub (Nov 26, 2021): @davidszp Have you tried downloading other audiobooks? Is the server showing any errors? Have you tried selecting a different folder to download to? It seems there are still issues with some users and selecting some folders.
Author
Owner

@davidszp commented on GitHub (Nov 28, 2021):

@advplyr You were right, for some reason my original download folder was reset. I had to manually select it and then downloading worked fine again.

@davidszp commented on GitHub (Nov 28, 2021): @advplyr You were right, for some reason my original download folder was reset. I had to manually select it and then downloading worked fine again.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#78