Jump to content

Onair script ala sc_trans


PapaBearPW
 Share

Recommended Posts

If you use sc_trans for autodj and for your dj connections, I have a script I put together a while back which will dynamically display the onair dj image. The script checks the sc_trans api to see who is onair and then uses that name to check for a .gif (you can change that to whatever filetype you like) of the same name to be displayed.

 

These checks are performed via ajax calls so there is no need to refresh the page to see the new onair dj. And, since the changes are based on who is actually onair, there is no need to worry about making changes to the script when new djs are added. All that is needed is to add an image for the new dj in the image file location you set in the config.php file. For my Joomla! sites, I just created a folder in the joomla backend media section. That made it even easier to add new dj images, change images, etc.

 

Have fun.

 

Download here: http://www.lunarcaster.com/stuff/onair_sctrans.tgz

 

Preview it here: http://www.lunarcaster.com/onair/

Or here: http://bluemoon-radio.de

or here: http://dev.lunarcaster.com

Link to comment
Share on other sites

Look quite good although i think it could do with being a bit wider and without the Marquee scrolling. I've downloaded it will have a play around and see what i can do.

My Blog https://djgarybaldy.blogspot.com

User of RadioDJ FREE radio playout software since 2010.

How to Install RadioDJ: https://djgarybaldy.blogspot.com/2020/08/how-to-install-radiodj-free-radio.html

RadioDJ is my most FAVOURITE piece of software EVER

 

 

Link to comment
Share on other sites

I've realised why it wont work for me as i don't have an Sc Trans to call back on. Couldn't get that part working from the SMI config files youi gave me ....

My Blog https://djgarybaldy.blogspot.com

User of RadioDJ FREE radio playout software since 2010.

How to Install RadioDJ: https://djgarybaldy.blogspot.com/2020/08/how-to-install-radiodj-free-radio.html

RadioDJ is my most FAVOURITE piece of software EVER

 

 

Link to comment
Share on other sites

I only tested your SMi on a local connection never did get round to switching it on our webserver. Now we are hosting a few streams i can't really do anything at present as it's working fine with the old SMI config.

My Blog https://djgarybaldy.blogspot.com

User of RadioDJ FREE radio playout software since 2010.

How to Install RadioDJ: https://djgarybaldy.blogspot.com/2020/08/how-to-install-radiodj-free-radio.html

RadioDJ is my most FAVOURITE piece of software EVER

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...