rasmuslos / ShelfPlayer

Native Audiobookshelf player for iOS & iPadOS
Other
146 stars 15 forks source link

[Feature Request] Playback History Tracking #90

Open JoshStark opened 2 months ago

JoshStark commented 2 months ago

Would it be possible for ShelfPlayer to keep track of playback history per audiobook? This would then allow for a timeline to be generated so I can see when I’ve listened to portions of a book, and for how long (start/end timestamps etc).

I’ve found this to be useful on occasion when losing my place. I can refer back to the history and skip back to a specific timestamp.

Something similar to how Prologue does it. As far as I know this kind of tracking isn’t supported natively in ABS or Plex (which Prologue uses) so I guess it’d need to be stored locally.

This is what Prologue looks like:

IMG_3558

rasmuslos commented 2 months ago

It would be possible to implement this with ABS listening session (your stats), but they only include start/stop, not play/pause. Do you think this would suffice or is there something important about play/pause?

JoshStark commented 2 months ago

I think start/stop is probably close enough. I would expect if I pause long enough it would likely be classed as an end to that session anyway. I suspect the play/pause icons are used in the same way in Prologue because there isn’t really a way to “stop” playback other than pausing and closing the app, which is the same thing as in ABS/SP.

But yes, a display of my sessions, displayed somewhere on the audiobook view, would be great. Then I can easily track back to the last point if for any reason I lose my place.

rasmuslos commented 1 month ago

https://github.com/advplyr/audiobookshelf/pull/2920 is a prerequisite for this