BLeeEZ / amperfy

Amperfy is an iOS/iPadOS/macOS app to play songs from an Ampache or Subsonic server
GNU General Public License v3.0
459 stars 37 forks source link

Music player view: playback position loss #197

Open alexander-nf opened 1 year ago

alexander-nf commented 1 year ago

Hello @BLeeEZ / Maximilian, thank you for the outstanding application!

I feel aesthetically happy using the app and indeed appreciate your efforts and time to build and maintain it.

I'm choosing subsonic client and I'd like to stay with Amperfy. But some things are not very comfortable for me and I can't figure out how to fix it:

Additional user context

Personal music streaming is a new concept for me. Probably I should modify my approach or tune something somewhere out of the app's scope. For example, maybe something is managable on a server side. I've searched for ideas on sub-server projects sites, in "Readme" and "Issues" (opened & closed) and I think there are no answers to my questions. Excuse me if I'm wrong.

  1. Switching to Podcasts view and back resets playback position to 0:00.

My actions, I:

Q: Is it possible to keep/save playback position in this case?

  1. Sometimes playback position also resets after period of inactivity without an interaction with the app's interface.

I pause playback, go to my iPhone main/desktop screen or to another app, then after some period of time minutes/hours/day open Amperfy again and see it keeps previously played track in the player interface, but the playback position of the track is set to 0:00. It could happen even after I lock the phone, do not use it at all, then unlock directly to the player interface. I checked also the particular case, it could happen when I don't use media player apps or embedded players (in Safari, for example) between Amperfy sessions.

However, sometimes after a day of my inactivity in Amperfy I open the app and it does keep the playback position, but more often it's gone to 0:00. My workaround: I backup timeline position by saving a screenshot of the player view before leaving Amperfy.

My speculation is that the solution to keep/save the playback position would solve this issue too.

Q: Is it possible to synchronize Amperfy user experience to the native Apple apps (like Podcasts) behavior where I can reboot the iPhone or return after weeks of inactivity and resume playback from the point I leaved the app?

BLeeEZ commented 5 months ago

Playback save is implemented but only for podcasts. Music will start at the beginning. I had some discussions in the past about this topic and we decided to only keep progression of podcasts.

Erdbeergeist commented 4 months ago

Would it be possible to add this as an option ? I would love to use the app but this is an absolute deal breaker as I use it mostly for long audio books and it not saving the position makes the app unusable sadly. However I must say I really love the rest of the app!

BLeeEZ commented 4 months ago

I think a simple remember playtime will not do the job. It is very confusing if it is active for regular songs too.

I think we need to go the full way down. An artist/album should be able to be marked as „audio book“. If the item is marked as such it is not displayed under the old section. Instead a new library type „Audio Book“ is available. „Songs“ which their album/artist is marked as audio book will behave like Podcast Episodes. So the playtime will be save for them too.

Erdbeergeist commented 4 months ago

I do agree, being able to mark an artist / album as an audio book and have it behave like a podcast is a lot nicer. Even though a global switch defaulting to off would also be completely fine for me.