happyleavesaoc/python-snapcast

Server updates troubles

StalkerSVR opened this issue · 2 comments

Is there an example of how to use callbacks? I want to write a little script that does some things when the state of a thread changes. Everything is installed on Orange Pi (Armbian).
I thought that the internal variables of the server object are changing in the background, then something was happening on the snapcast server. But when I stop one of the streams, the state of the stream in the server object does not change :( I have to close my script and restart it again to get the new status of the stream from the server, but I think this is only because of my misunderstanding of the logic of the script

Have you a found a solution for your issue ? :/