advplyr / audiobookshelf-app

Mobile application for Audiobookshelf
https://audiobookshelf.org
GNU General Public License v3.0
1.19k stars 163 forks source link

[iOS] Listen history #466

Open spiffzilla opened 1 year ago

spiffzilla commented 1 year ago

Previously I used the Android app "Listen Audiobook Player" to listen on books stored on my phone. Now that I have started to use the Audiobookshelf App there is one great feature I miss.

A position history, great to use when I fall asleep while listening. Then I can at least se a history of when I started to listen that time. Added screenshots from Listen Audiobook Player

First image is the basic level of the function, second is when a user pressses 'open history', it will be more detailed listen_1 listen_2

Albuca commented 1 year ago

I'm a fan of this idea as well, and quite like the way that Smart Audiobook Player (SAP) has implemented it.

For the sake of ease, I'll copy what I wrote about this feature in another issue (https://github.com/advplyr/audiobookshelf-app/issues/260#issuecomment-1353636508) that is holding me back from switching primary audiobook players:

SAP maintains a History of Playback, with play/pause, scrubbing, forward, back, etc. documented along the date/time this occurred. A tap will move the audiobook back to the selected point and resume playback from there (this move will also be documented in the history). This feature is extremely useful if/when my playback progress is moved by an inadvertent tap, I zoned out and want to go back to the point I was at when I first started my listening session, or just want to go back in time for some reason.

Here is a screenshot, with some data (I blocked out the filename, but it is a nice touch):

** Screenshot is hidden here to save space ** ![Screenshot_20221215-143925_Smart AudioBook Player](https://user-images.githubusercontent.com/699690/207967808-ba4c5775-6de4-45d9-bf20-c4307973c508.jpg)
advplyr commented 1 year ago

Thanks for the screenshots. This is planned for sure.

Dr-Blank commented 1 year ago

I'll put my 2 cents here if it helps.

Screenshot of the history activity from the app mAbook 👇.

It tracks 4 kinds of activities I do along with when I did them (brackets explains the bottom 4 activities in the screenshot):

  1. Play events (I started playing from 00:00, so started the book)
  2. Seeking from events (after it played for some time, I seeked from 00:12)
  3. Seeking to events (and seeked to 4:44:19, maybe manually or using chapter markers)
  4. Pause events (and then played some time and paused when book was at 4:56:35, manually or maybe the sleep timer did)

Whenever I press on the activity it takes me to that timestamp in book. (Basically doing 3 events for me, seeks from current position to the one in history, and starts playing)

hobesman commented 1 year ago

To be clear, this is more detailed than the current "session" info, which might span multiple pauses and resumes/plays without making those visible to the user.

Also, something that distinguishes this from other similar apps is that it might be different devices. So it might make sense for the history to say which device registered the event. But maybe that's not as important.

BionicAlice commented 1 year ago

Would love to see this as well, the only thing that would be neat would be if there was some sort of timer that logged the time , so it logs pauses and plays but also every lets say 15 minutes it logs the position of the file that is being listened to. OR maybe it also logs for chapter switches, That would work great if the audiobook is chaptered correctly.

As there has been multiple times on longer listening sessions where I or someone else touches my phone and moves the position, in turn causing me to skim through trying to figure out where I was at.

**I really like the way prologue app does it on the UI , at least for the pausing playing, just as an example. Here is some screenshots**

![IMG-1518](https://user-images.githubusercontent.com/20696864/212204073-3c697c5d-10c3-402c-9b09-94ace5f006e4.PNG) If you click where the chapters are "3 of 48", the next screen pops up showing one of the tabs as history. ![IMG-1519](https://user-images.githubusercontent.com/20696864/212204160-9c595d15-ab92-4ec9-9527-02ca67edcbe2.PNG)

advplyr commented 1 year ago

Added in v0.9.61-beta

advplyr commented 1 year ago

This is for Android only right now so I'll leave this open until implemented on iOS

dedors commented 1 year ago

I use history quite a lot. I have a small wishlist🙂:

As a small additional note, an option for adding a history icon on the main view would be nice. E.g. I don't use cast, but use history a lot.

AJolly commented 1 month ago

Is this loggged anywhere on the server? I even tried turning on the debug logs. I've only just started using audio bookshelf, but I've had a few times where my position has gotten reset, esp with switching between my pc and my phone.

advplyr commented 1 month ago

This is not logged on the server and there are no plans to do that. Listening sessions are planned to improve though so that they are closed and re-opened when not listening for extended periods. That may solve some users issues.

AJolly commented 1 month ago

It would be great if it would periodically log on the server. At least the furthest position that you've gotten to?

Also is there a suggestion then on how to best switch from listening from one device to another?

For me, I am usually listening for a very large part of my day, but I do switch back and forth between my devices at least several times a day. (With very little time between the switch.)

advplyr commented 1 month ago

The latest position that is synced will always be shown on the listening session. I'm not sure what you are doing that is having a syncing issue. You should be able to open the web client and watch the progress being updated and view the logs and see the progress syncs coming in while you are listening on your phone.