View Full Version : embed refreshing shoutcast stats
July 24th, 2008, 09:58
I am trying to put the current song playing on my shoutcast stream into my website (seen at: http://camp.sharpertech.net/surge). The script i'm using for it is GMTT (http://camp.sharpertech.net/surge/radio/radio_stats.php). I had a problem when I tried using PHP include because the radio_stats.php refreshed every 10 seconds, so it would error out after 10 seconds.
I heard I can fix this with AJAX, but I have no clue what i'm doing there. Why method should I go about trying to get these stats to work. The iframe method I am using now is not working out too well because of browser compatibility and because the text on the stats is on the bottom and not shown as i'd like it.
Thanks so much for your help guys,
July 25th, 2008, 09:43
Pat, like i said, i am not ajax guru, and Joe will still be the best to help here, but, this may be able to help you in your quest without him.
check that out. sounds similar to what you want, but, you want to do it without clicking anything, so, just incorporate a JS refresh after so many seconds or something. that should work, but, not 100% and dont have time to fool with it myself since i am at work right now. if i get a chance later, i will see if i can put something together if you dont get it yourself.
July 25th, 2008, 22:13
Having some trouble with this - maybe there is an easier way to set this up.
I know www.fusionchicago.com was able to pull it off with their stats some how, but the source code isn't giving me any hints as to how. I hope I can get this working some how - otherwise, i'll just have to set the radio_stats.php to not auto-refresh, but that would kind of make the stats function pointless.
If you have any idea of how fusion put their stats together, please let me know. I may just have to go out and hire a programmer to try and put it together if it's too much of a complicated job - I know everyone here is busy with other programming projects.
Thanks for your help so far - let me know if you have an idea
July 25th, 2008, 23:20
Powered by vBulletin® Version 4.1.7 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.