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

[Android] Show progress bar by chapters instead of by audio file

Open DDriggs00 opened this issue 2 years ago • 7 comments

Steps to reproduce

  1. Have an audiobook with chapters
  2. Play the book, and turn on the "chapter track" setting
  3. Exit the app and expand the notification to reveal the progress bar

Expected behaviour

  • The progress bar covers only the current chapter when chapter tracks are enabled

Actual behaviour

  • The progress bar covers the entire book, not just the current chapter

Environment data

Audiobookshelf Version: Android App

Android Issue

Android version: Oxygen OS 11.0.7.1.HD65AA

Device model: OnePlus 7T

Stock or customized system: Stock

DDriggs00 avatar Jun 12 '22 03:06 DDriggs00

Are you saying it doesn't work when you close and re-open the app? Or it doesn't work at all?

Are you able to see the chapters in the web app to make sure they are recognized by abs?

Do you have any audiobooks that do work as expected?

advplyr avatar Jun 12 '22 22:06 advplyr

It doesn't work at all. The in-app progress bar (with both collapsed and full-screen players) works as it should, showing progress for the current chapter. It is only the notification (seen when outside the app) that doesn't respect the setting. The web app shows the chapters. All audiobooks with chapters are affected. Screenshots

DDriggs00 avatar Jun 13 '22 16:06 DDriggs00

Oh I see what you mean. The notification is getting passed in the duration of the currently playing audio file I believe. Are you using a single audio file with chapters? I think I have an idea on how this could be fixed. It may also be worthwhile showing the chapter title in place of the book title and the book title in place of the author.

advplyr avatar Jun 13 '22 17:06 advplyr

Yes, I think all the books I've tested have been single-file m4b with internal chapter marks.

DDriggs00 avatar Jun 13 '22 17:06 DDriggs00

I love this idea, and will look to implement this on the iOS side.

ronaldheft avatar Aug 20 '22 19:08 ronaldheft

I added an explanation for why this happens here https://github.com/advplyr/audiobookshelf-app/issues/729#issuecomment-1575082870 for future reference

advplyr avatar Jun 03 '23 17:06 advplyr

This has been added for iOS in v0.9.71-beta so this is Android specific now

advplyr avatar Jan 02 '24 13:01 advplyr