View Single Post
  #1  
Old 05-16-2006, 11:14 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Question Dreaded Radio Script.

Hi all,

I've seen a few servers making scripts like this so I tried. I looked at some of Stefan music and post and now got this so far.

Quote:
function onActionServerSide() {
if (params[0]=="electronica") {
this.req = requesturl("http://www.shoutcast.com/sbin/shoutcast-playlist.pls?rn=1029&file=filename.pls");
catchevent(this.req,"onReceiveData","onData");

function onData(obj) {
for (line: obj.data) {
if (line.starts("File1=http://64.236.34.4:80/stream/1035")) {
play(line.substring(6));
setTimer(0.1);
break;
}
}
this.req = NULL;
}
}
}
Not much but I still can't get it to play. XD I'm using a triggeraction for it becuase I believe it needs to be serverside since it's dealing with actual internet stuff ._.
So what am I doing wrong? Why wont it play. Here's the triggeraction part.

Quote:
function electronica.onAction(){
triggeraction(0, 0, "serverside", this.name, electronica);
}
__________________
Deep into the Darkness peering...
Reply With Quote