-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Playlist item with infinite duration #4455
base: main
Are you sure you want to change the base?
Conversation
@joosthoi1 the existing checkbox "Repeat indefinitely" did not work for you? |
@softhack007 this change would allow for infinite play per entry, not the whole list. its a "hack" to allow preset grouping. I did not have time yet to look at the nested playlist commit from @blazoncek, that may also do something similar from what I was able to pick up on discord. |
There isan issue with this (and the reason I haven't published my solution 2 days ago). There's also a nonsense in this code. I think you will easily spot it. 😉 |
Do you think it should still be implented so that duration = 0 is manual advance, or should there be a separate variable to stop automatic advancing? I think duration 0 could still work and we'd just update the UI to abstract this away. I completely agree with you that this ui at the moment isn't great and a checkbox would be better.
The only reason I uploaded this was because I couldn't find your commit and wanted to use it on my personal machine. Feel free to close this pr if your implementation is better. I already got what I need :P
I'm not sure of the top of my head what you mean, if you mean dur > 1 or dur == 0, that can definitely be simplified to dur != 1 lol. I made this code late last night, so it's entirely stupid. |
Ah, I also saw that I didn't change how I checked if dur == 0 in handleplaylist, so that implementation is stupid aswell |
67c4dbf |
I haven't tested this yet, but doesn't this allow for duration = 1 (0,10 seconds)? which is specifically not allowed as explained in #4164 (comment) Other than that, looks good |
100ms is about 4 frames, plenty of time for ESP8266 to switch preset. |
Okay, that's fine then |
So how do we proceed from here? Do you make a seperate pull request, or add the changes to my branch? |
Infinite duration for playlist presets, so playlists can be controlled by just calling the next playlist api call.
The ui isn't great.