-
Notifications
You must be signed in to change notification settings - Fork 5
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
Direct file play: error on second one if soonafter #76
Comments
Also noticed that repeat status is changed (i.e. not restored) after play single file. |
The current code should not allow the playing of another "Play Now" song" while one is playing so I'm surprised you were able to just wait a few seconds to do that. If this were very short audio files though I guess there could be a small enough window for that to happen. I've revisited the code and cleaned up the synchronization of all the required MPD commands. This will allow new "Play Now" songs to be added while one is running. It should also ensure that the repeat and consume values are restored correctly. It should be in the next release I'me working on now. |
Thanks for the quick fix: works a treat! |
Yes, only repeat & consume are saved and restored |
Hi, It often works fine (single file will just interrupts radio stream, which will come back right after), but in some cases (several files played one after the other), server sequence becomes erratic...for instance it could come back to another radio stream (some prev/next command might run in wrong order?) |
It sounds like I will have to attempt to recreate. To recap the scenario :
Sound about right ? |
Yes indeed. Thanks |
Hi. Did you have a chance to replicate the issue, or do you need some more info? |
I've tried to recreate with my Mac Mini based MPD server with no luck. I'm wondering if the capabilities of the MPD hosting machine has something to do with it. If I recall you are running on a PiZero. Perhaps that has something to do with it. I have an old Pi series 2 that i might be able to try and recreate on |
Thanks for feedback. |
There are 2 scenarios where the "deleteid" command is use
As much as possible I use MPD command lists to ensure the commands are executed sequentially. I guess it's still possible that a timing issue could be at play here |
Yes possibly. |
I don't think there is a way to do that apart from using the command lists. I'm not sure if MPD ensures other client commands are blocked while a list is being processed though |
Wouldn't temporarily setting While at this, have you checked the "One-shot single mode" available since MPD 0.21 as MAFA quotes it: Was also thinking about this usecase if in random mode initially (not my case): does it need to be done setting prioid? |
Yes it should however i would expect the deletion from the queue to be performed indirectly, whereas the deleteid command is directly executed. command_list are executed in order and the list stopped if one of the commands fails "If a command fails, no more commands are executed and the appropriate ACK error is returned."
I have not yet looked at "One-shot single mode" |
seems like MPD will provide a "one-shot" consume mode with v0.24: it may ease things... (relevant merge) |
Hi,
I just noticed a small issue with direct file playback (swipe-right on a file): initial file will play fine, but it I play another file right-away, then that file won't play and I get the following error on screen:
After a little while (few seconds in-between), I can play again another file with swipe-right.
It seems there might be a sync/refresh issue between server & client.
You may notice that with short audio files in particular.
The text was updated successfully, but these errors were encountered: