Note: The below was moved from a new thread with the same topic that I created because this thread was more than 120 days old, which however got deleted and put here instead by staff. Its nearly identical to the first post here so it can be ignored by whoever is reading this. Although it may seem confusing, I am leaving it, just in case the staff member found that there was a reason to do it like this.
Dear All,
I am using a PC with Tuneblade to stream music to my rpi 4b with latest official libreelec (also happened on pi3b and libreelec 10.0.0) on it via Airblade. This shows up as "System Audio". There´ is one problem though:
If I stop libreelec from receiving the stream using Kore on Android by pressing the stop button, I can no longer connect to libreelec with Tuneblade until the rpi has been rebooted. In other words, pressing stop simply crashes or stops the service.
Now I could just stop the music by disconnecting on Tuneblade, but the thing is that sometimes if I watch a movie via libreelec, it suddenly gets interrupted when I for instance receive an email on the PC, which generates a sound that´s being sent via Airplay. Then when I start the movie again, the Airplay service has been shut down next time I want to hear music via Tuneblade, and I need to reboot the rpi.
And.. it´s actually convenient for me to get those interruptions from the email program, theyre work related, but I could of course just remember to stop the Tuneblade stream before watching movies and use my mobile instead to warn me about emails, but unfortunately also a ton of other things, that I dont want to be bothered about, when Im watching a movie.
So what Im looking for is an elegant way to restart Airplay from the shell without having to reboot (or prevent airplay from being shut down in the first place). I have tried with systemctl restart avahi-daemon, but that didnt do the trick.
Here is a log file made when the the problem took place:
Any advise?