AIMP Forum

AIMP for Android => Вопросы / Questions => Topic started by: Tom656516516 on May 23, 2022, 12:11:40

Title: Bookmarks and Paused Playback
Post by: Tom656516516 on May 23, 2022, 12:11:40
Hello,

When I pause playback and leave AIMP in the background (this is what I think happens), when I return to playback, the paused song starts from the beginning rather than from where it was paused.
I have automatic bookmarking in the settings.
I am using Android 11.

What setting should I change in AIMP or Android to be able to go back to listening where I paused?
Title: Re: Bookmarks and Paused Playback
Post by: Artem on May 23, 2022, 18:20:48
What is your app version?
Title: Re: Bookmarks and Paused Playback
Post by: Tom656516516 on May 23, 2022, 21:10:27
What is your app version?
3.22 b. 1193
Title: Re: Bookmarks and Paused Playback
Post by: Tom656516516 on May 24, 2022, 12:05:45
What is your app version?
I already wrote about the same thing some time ago, I just remembered - but I didn't find a solution, it just sort of "fixed" itself
I think I've checked all the settings in Android, but I guess A11 is aggressive about killing left behind processes and I don't know how to deal with it.
Title: Re: Bookmarks and Paused Playback
Post by: Tom656516516 on May 24, 2022, 12:13:19
My debug.log is in the attachment - what means
main   23/05/2022 16:36:45.135   D/AppEngine:   Cannot resume playback because option is not set
?
Did I forgot something to set in settings?
Title: Re: Bookmarks and Paused Playback
Post by: Artem on May 25, 2022, 08:44:21
main   23/05/2022 16:36:45.135   D/AppEngine:   Cannot resume playback because option is not set
?

It related to start playback on headset connection. Please, download build 1195 (it was published by Google today). In it, I have fixed one bookmark storing issue. I hope that this is root of issue in your case.
Title: Re: Bookmarks and Paused Playback
Post by: Tom656516516 on May 25, 2022, 09:19:33
It related to start playback on headset connection. Please, download build 1195 (it was published by Google today). In it, I have fixed one bookmark storing issue. I hope that this is root of issue in your case.
OK, I'll check. Thanks!
Title: Re: Bookmarks and Paused Playback
Post by: Tom656516516 on May 25, 2022, 12:16:00
It related to start playback on headset connection. Please, download build 1195 (it was published by Google today). In it, I have fixed one bookmark storing issue. I hope that this is root of issue in your case.
It's still the same; I'm sure it's on the system side and not your app - if I can locate the problem, I'll share it.
I'm using a custom ROM - crDroid 7.16 - and I can't seem to get it to not kill AIMP for me.
I also noticed that when returning to the program, I would see the correctly set song progress for a split second, which would almost immediately reset to the beginning.
Title: Re: Bookmarks and Paused Playback
Post by: Artem on May 25, 2022, 13:19:39
Please, can you share debug log from latest update? (I have added new checkpoints for bookmarks storing)
Title: Re: Bookmarks and Paused Playback
Post by: Tom656516516 on May 25, 2022, 16:51:16
Please, can you share debug log from latest update? (I have added new checkpoints for bookmarks storing)

Sure.
Title: Re: Bookmarks and Paused Playback
Post by: Artem on May 25, 2022, 18:52:40
as I see in log, player receives stop command from the system ui component. It lead to reset bookmark. Can you explain what actions you did before issue was happened?
Title: Re: Bookmarks and Paused Playback
Post by: Tom656516516 on May 26, 2022, 08:53:05
as I see in log, player receives stop command from the system ui component. It lead to reset bookmark. Can you explain what actions you did before issue was happened?
If I understand what you are asking correctly:
I pause the listening (either by pressing pause on the player or by pressing the button on the BT headphones), on the phone I return to the main screen by pressing Home and put the phone down, launch another app or answer a call.
Title: Re: Bookmarks and Paused Playback
Post by: Tom656516516 on May 26, 2022, 09:28:21
My version of crdroid is no longer maintained, so maybe there is a bug in battery optimization. I checked all the settings about battery and app and nothing.
If i will have more time i will flash new ROM and then i will see if something changes
Title: Re: Bookmarks and Paused Playback
Post by: Artem on May 26, 2022, 13:17:36
I have put down spike that made for Android 12 to Android 11 too.
Please, try this build:
https://disk.yandex.ru/d/GnT-_2_K-y9w3A

Title: Re: Bookmarks and Paused Playback
Post by: Tom656516516 on May 28, 2022, 00:36:54
I have put down spike that made for Android 12 to Android 11 too.
Please, try this build:
https://disk.yandex.ru/d/GnT-_2_K-y9w3A

I have this version, meanwhile installed crdroid 8.4 (a12) - nothing has changed.  Still AIMP restarts the mp3 instead of going back to the auto-bookmark (created I think when pause was pressed).  I am writing for information only, because your application is not an audiobook reader, but a (great) music player, so I won't go into it further and take your time.  Thanks for your commitment.
Title: Re: Bookmarks and Paused Playback
Post by: Tom656516516 on May 28, 2022, 08:42:22
After installing the new system I haven't had much time to listen to myself yet I noticed that a tab appeared in the only song I was listening to and it works.
I will keep testing
Title: Re: Bookmarks and Paused Playback
Post by: Artem on May 30, 2022, 12:22:28
I will keep testing

Thanks, let me know about your results.
Title: Re: Bookmarks and Paused Playback
Post by: Tom656516516 on May 30, 2022, 12:30:58
At the moment I have crDroid 8.4 and bookmarks work (that is, my problem is solved), I use the version you have provided. For a moment I wondered if the problem was related to Bluetooth headphones in some way, but so far I haven't noticed a noticeable connection.
Right now I can pause the playback, select another file, listen to something else, pause the listening, and go back to where I left off! It works both ways. Success!

Android settings:
Battery/Battery usage/(AIMP) With optimization

I wish I knew what the cause was, as there is no noticeable solution, other than to say: "it already works".
Title: Re: Bookmarks and Paused Playback
Post by: Artem on May 30, 2022, 12:53:46
Thanks for testing. I will commit the patch to release branch
Title: Re: Bookmarks and Paused Playback
Post by: Tom656516516 on May 31, 2022, 19:35:34
I noticed something else - just reporting, maybe this information will be useful, because it doesn't bother me so much:
When I switch (while listening, last time I did it by mistake) to the next song, when I return to the one with the bookmark (because it is created I think) this playback starts from zero. But if I switch again and select the one with the bookmark - it starts from the place with the bookmark :)

Are there skins that have bigger control buttons? I listen a lot while driving, the phone is in the holder and I have to aim well to switch to the next song. The album cover is not important to me, the control is more important.

I hope I'm not too annoying, but your app suits me very well :)
Title: Re: Bookmarks and Paused Playback
Post by: Artem on May 31, 2022, 21:34:25
when I return to the one with the bookmark (because it is created I think) this playback starts from zero

Bookmark is catched only when you start the track by tap on it in playlist.

Are there skins that have bigger control buttons?

You can increase UI scaling factor in app settings.

I listen a lot while driving, the phone is in the holder and I have to aim well to switch to the next song

Are you using phone for that, or you have installed AIMP to your Car PC?
Title: Re: Bookmarks and Paused Playback
Post by: Tom656516516 on June 01, 2022, 08:31:43
I really appreciate the fact that you are active all the time, answering my questions: you are a role model on this topic.

I don't use Android auto, I play directly on my phone. UI scaling doesn't quite work, I've already tried it.
Title: Re: Bookmarks and Paused Playback
Post by: Artem on June 01, 2022, 10:07:48
I don't use Android auto, I play directly on my phone. UI scaling doesn't quite work, I've already tried it

In v3.30, I planing to improve UI for CarPC layout. That's why I asked you about CarPC.But, as I can see now, its not your case. CarPC layout is available for landscape orientation only. Anyway, if you want to test new UI let me know.
Title: Re: Bookmarks and Paused Playback
Post by: Tom656516516 on June 01, 2022, 12:33:38
In v3.30, I planing to improve UI for CarPC layout. That's why I asked you about CarPC.But, as I can see now, its not your case. CarPC layout is available for landscape orientation only. Anyway, if you want to test new UI let me know.
I'd love to see CarPC
Title: Re: Bookmarks and Paused Playback
Post by: Artem on June 01, 2022, 12:58:48
I'd love to see CarPC

I send via personal messages