audiobookshelf icon indicating copy to clipboard operation
audiobookshelf copied to clipboard

[Bug]: Web sessions dont show sync to mobile app

Open hskrtich opened this issue 1 year ago • 7 comments

What happened?

When I listen to a book I have already started on my mobile device and switch to web, the book picks up at the correct place. When I switch back to my mobile it doesnt pick up the new place in my book.

I have tried completely closing out of the book and closing out of the app to try to get it to sync.

When checking the backend listening sessions, I do see both the web sessions and the mobile but the mobile app still will only see its sessions.

Web interface image

Android App image

What did you expect to happen?

The mobile app should at least show the web sessions.

Steps to reproduce the issue

  1. Start a book on android
  2. Switch to web player
  3. Try to switch back to android

Audiobookshelf version

v2.9.0 server, 0.9.73-beta android

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Windows

If the issue is being seen in the UI, what browsers are you seeing the problem on?

None

Logs

https://logpaste.com/z19XWMfu

Additional Notes

No response

hskrtich avatar May 09 '24 04:05 hskrtich

The listening sessions you see on Android are device specific and do not sync with the server. The server listening sessions are only "total time listened during the session."

Listening sessions are planned to be reworked to allow for better syncing and viewing, but this hasn't happened yet.

https://github.com/advplyr/audiobookshelf/issues/2004

nichwall avatar May 09 '24 15:05 nichwall

The play/pause history page is local only but the green cloud checkmark shows that it has been synced with the server.

Is the book downloaded? Have you tried this with other books?

advplyr avatar May 09 '24 18:05 advplyr

This book is downloaded in the android app. I have tried this with others ~~(including one that isnt downloaded)~~ and I still cant get web progress to sync.

hskrtich avatar May 09 '24 18:05 hskrtich

Ok, it doesnt seem to be happening with streamed books, just with downloaded books. Although I am not seeing the "sync" entry under history.

hskrtich avatar May 09 '24 19:05 hskrtich

With even more testing, it seems to be only happening with this one book. I will try to narrow the issue down some more but this isnt the only book I have had this issue with.

hskrtich avatar May 09 '24 19:05 hskrtich

M4B or MP3? Variable bitrate mp3 can have issues seeking correctly

advplyr avatar May 10 '24 00:05 advplyr

M4B but now im not seeing the issue at all. I have no idea what has changed.

hskrtich avatar May 10 '24 07:05 hskrtich

Maybe a networking hiccup. Lmk if it becomes reproducible

advplyr avatar May 10 '24 22:05 advplyr

@advplyr this is happening for me. if I completely restart the android app, it will sync to the appropriate place. Maybe it would be useful to do a force sync on the app?

Steps to repro:

  1. play book on computer
  2. play book on phone (phone will not sync unless app is restarted)

context: for me, this was a book I had downloaded on the phone, i.e. it was not streaming.

danielb2 avatar Jul 04 '24 07:07 danielb2