Page 1 of 1

Content for radio playback, if nothing else is playing in th

PostPosted: 29 Mar 2021, 12:00
by bholenath
I'm trying to achieve this: when I boot up, I'd rather start playing this station. I effectively added it to the "Webradio / MyNoise-PureNature.pls" file. When it plays, at the chance of it starting to play some music, it should clearly stop, but here's the interesting part, when I stop the music and nothing else will play, I prefer to start playing the radio again, so it becomes omegle tv bazoocam ome tv the basic type of sound, whenever the frame is active and nothing is played. At the moment I understand that it should be very easy to add at the beginning, but I have no idea how it is possible to slam content using a contingent "assuming nothing else plays in mpc, play .pls". I think that would be a decent thing, but I wasn't thinking about how to do it. Anyone can figure out how to create such content.

Re: Content for radio playback, if nothing else is playing i

PostPosted: 10 Jun 2021, 17:34
by kan_ibal
You can check mpc status for [paused]:

Code: Select all
mpc |grep paused

and then

Code: Select all
if [ $? -eq 0 ]; then
'play .pls'

or simple

Code: Select all
mpc |grep paused && 'play .pls'