• Welcome to RadioDJ - Free Radio Automation Software Forum. Please log in or sign up.

How to play/stop with script?

Started by kalalu, June 28, 2020, 10:29:03 PM

kalalu

Hi all, I have a peculiar question.  :)
I have two pcs, currently one of them commands the video in a led display, the other plays music in several outdoor speakers with Radiodj.

I've developed a simple application using node.js and the youtube API. In practice, people can search for a song in youtube with their smartphones. Then if another youtube song is already playing, it goes in a queue, otherwise it's played immediately.

As you can see, this application is independent from Radiodj, that is to say I have to manually stop the Radiodj playlist when I want to use the application. I'd like to start the Radiodj playlist when no youtube song is played, then stop it if someone choose a new youtube song.

How could I play/stop the Radiodj playlist with a script? Maybe a batch file or something? Thank you.  :)