audiobookshelf icon indicating copy to clipboard operation
audiobookshelf copied to clipboard

Added location slider to Epub reader

Open MxMarx opened this issue 1 year ago • 4 comments

This pull request adds a location trackbar and bookmarks for EPUBS.

To minimize code changes, the audiobook trackbar was slightly modified to remove audio-only features when used for books, Instead of using time to represent position in audiobooks, book position is represented by the percentage. To convert this to pages, the 'playback rate' is set to 1 / total_pages.

MxMarx avatar Feb 05 '24 20:02 MxMarx

Does this cover up the audio player if the audio player is open?

advplyr avatar Feb 05 '24 20:02 advplyr

Does this cover up the audio player if the audio player is open?

It looks like it trackbars are on top of each other, I can try messing around with formatting for a bit

MxMarx avatar Feb 05 '24 20:02 MxMarx

Does this cover up the audio player if the audio player is open?

Fixed!

MxMarx avatar Feb 05 '24 22:02 MxMarx

Bookmarks might actually be a bit premature, I'll take a look at making it less of a bodge first

MxMarx avatar Feb 06 '24 15:02 MxMarx

I'm looking at this now and I think it is actually better to not use the existing PlayerUI and duplicate it into its own component. That PlayerUI is already pretty cluttered and a lot of that logic isn't necessary for the reader.

advplyr avatar Mar 08 '24 17:03 advplyr