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

Raspberry Pi related support

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

Postby bholenath » 29 Mar 2021, 12:00

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.
bholenath
 
Posts: 1
Joined: 29 Mar 2021, 11:56

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

Postby kan_ibal » 10 Jun 2021, 17:34

You can check mpc status for [paused]:

Code: Select all
mpc |grep paused


and then

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


or simple

Code: Select all
mpc |grep paused && 'play .pls'
kan_ibal
 
Posts: 3
Joined: 10 Jun 2021, 17:17

support RuneAudio Donate with PayPal


Return to Raspberry Pi

Who is online

Users browsing this forum: Google [Bot] and 9 guests