[GH-ISSUE #406] onevent / onstart alternative behaviour #261

Closed
opened 2026-02-27 19:29:42 +03:00 by kerem · 3 comments
Owner

Originally created by @hifiberry on GitHub (Dec 5, 2019).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/406

I need to run a script before music playback is started. While "onvent" seems to be the correct option for this, the problem is that it is started in background. This causes the playback to start before the script has been finished. I need librespot to wait until the script has been finished.
It would be good to have some "synchronous" option for onevent or at least for the "start" event.

Originally created by @hifiberry on GitHub (Dec 5, 2019). Original GitHub issue: https://github.com/librespot-org/librespot/issues/406 I need to run a script before music playback is started. While "onvent" seems to be the correct option for this, the problem is that it is started in background. This causes the playback to start before the script has been finished. I need librespot to wait until the script has been finished. It would be good to have some "synchronous" option for onevent or at least for the "start" event.
kerem closed this issue 2026-02-27 19:29:42 +03:00
Author
Owner

@ashthespy commented on GitHub (Dec 5, 2019):

@hifiberry I managed to including the Sink events, but its on a different branch. I will get my computer and dig it out in a few hours.
Out of curiosity, what does the script have to do?

<!-- gh-comment-id:562128106 --> @ashthespy commented on GitHub (Dec 5, 2019): @hifiberry I managed to including the Sink events, but its on a different branch. I will get my computer and dig it out in a few hours. Out of curiosity, what does the script have to do?
Author
Owner

@hifiberry commented on GitHub (Dec 5, 2019):

It stops other players that have exclusive access to the sound card.

<!-- gh-comment-id:562128385 --> @hifiberry commented on GitHub (Dec 5, 2019): It stops other players that have exclusive access to the sound card.
Author
Owner

@ashthespy commented on GitHub (Dec 5, 2019):

Had the same issue for Volumio, so check out of if my tweaked Vollibrespot works for you. It exposes a udp socket that reports these events.

<!-- gh-comment-id:562130404 --> @ashthespy commented on GitHub (Dec 5, 2019): Had the same issue for Volumio, so check out of if my tweaked [Vollibrespot](https://github.com/ashthespy/Vollibrespot) works for you. It exposes a udp socket that reports these events.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#261
No description provided.