mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #406] onevent / onstart alternative behaviour #261
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#261
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@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?
@hifiberry commented on GitHub (Dec 5, 2019):
It stops other players that have exclusive access to the sound card.
@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.