audiobookshelf-app
audiobookshelf-app copied to clipboard
[Android] Show progress bar by chapters instead of by audio file
Steps to reproduce
- Have an audiobook with chapters
- Play the book, and turn on the "chapter track" setting
- 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
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?
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
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.
Yes, I think all the books I've tested have been single-file m4b with internal chapter marks.
I love this idea, and will look to implement this on the iOS side.
I added an explanation for why this happens here https://github.com/advplyr/audiobookshelf-app/issues/729#issuecomment-1575082870 for future reference
This has been added for iOS in v0.9.71-beta so this is Android specific now