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);
}
|