flackbash / AudioAnchor

Android audio player that tracks the listening progress of your audio books and podcasts
GNU General Public License v3.0
223 stars 42 forks source link

[Feature Request] Audiobook chapters #61

Open mimmiechan opened 4 years ago

mimmiechan commented 4 years ago

The M4B format supports chapters and chapter images. iTunes does this for audiobooks. I would love if I were able to see which chapter I was on when listening to an audiobook and to easily hop between chapters. Possibly chapter markers and names popping up when scrobbling, sort of like the new YouTube chapter feature if you've seen that.

flackbash commented 4 years ago

I agree this would be a useful feature. I had been looking into this a while ago and it seemed after a quick search that it is surprisingly complicated to retrieve chapter information in Android, but I'll look into it again.

However, if I implement this, it will probably not be via markers on the seekbar as in the YouTube chapter feature. I think especially for long audio books with many chapters this would not be feasible without an additional seekbar-zooming feature (think e.g. a 20h audio book with 100+ chapters on a smartphone-sized screen).

Instead, the most feasible way is probably to implement this similar to the bookmarks feature. You would have a dialog with a list of chapters to choose from. Additionally, one could display the current chapter title somewhere on the screen.

mimmiechan commented 4 years ago

I agree this would be a useful feature. I had been looking into this a while ago and it seemed after a quick search that it is surprisingly complicated to retrieve chapter information in Android, but I'll look into it again.

However, if I implement this, it will probably not be via markers on the seekbar as in the YouTube chapter feature. I think especially for long audio books with many chapters this would not be feasible without an additional seekbar-zooming feature (think e.g. a 20h audio book with 100+ chapters on a smartphone-sized screen).

Instead, the most feasible way is probably to implement this similar to the bookmarks feature. You would have a dialog with a list of chapters to choose from. Additionally, one could display the current chapter title somewhere on the screen.

Thank you for looking into it! I hope you'll find a solution.

zouthie commented 3 years ago

Hello.

I just stumbled upon a .m4b file which has a companion .cue, i't would be great if AudioAnchor could incorporate that data.

Maybe the "seekbar-zooming feature" would be a hassle, and can be replaced with a list of faux files ...

DearFox commented 3 weeks ago

It's a shame this is still not supported. I downloaded the audiobook in mp3 and it's just a list of audio files without normal chapter titles. I could use m4b in place of this, but unfortunately this will not solve the problem :(

oliwer commented 1 week ago

FYI, androidx.media3 supports MP4 metadata, including [audio book chapters](https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_AUDIO_BOOK()).