dj_raw
05-10-2005, 01:23 AM
Hi all,
I'm new around here and got some problems...
I am trying to make a flash radio streamer. The server uses Shoutcast.I have searched on this forum but couldn't find one that works...
I have seen a player that works on http://radio.webcast.ro/player/ So i thought i should download the player and then decompile the swf using Sothink SWF Decompiler. I did that and opened it with flash and i get this code in the actionscript layer:
function getTitle()
{
loadVariablesNum("http://radio.webcast.ro/display.php?a-cache=" + random(100000), 0);
this.display.tickerMessages[0] = melodia;
} // End of the function
function playStream()
{
var _l1 = _root;
var _l2 = this;
_l2.counter.text = "00:00:00";
var _l3 = "http://radio.webcast.ro:" + port;
_l1.stream = new Sound();
_l1.stream.loadSound(_l3, true);
_l1.stream.play();
_l2.status.text = "Playing";
_l1.streamStop = false;
_l2.equalizer.gotoAndPlay("1");
} // End of the function
function stopStream()
{
var _l1 = this;
_l1.stream.stop();
_root.streamStop = true;
_l1.status.text = "Stopped";
_l1.equalizer.gotoAndPlay("61");
_l1.melodia = "Radio WEBcast Media - http://radio.webcast.ro/";
_l1.counter.text = "00:00:00";
} // End of the function
port = "8008/live";
this.closeWin.onPress = function ()
{
getURL("javascript:window.close();");
};
playStream();
Allright, now when i paste the code into my player with the other ip and port and open the swf on my pc it works. But when i upload the swf to a site it doesnt work anymore :(
I dont get it why this isnt working.
Pls help
Thanks in advance
I'm new around here and got some problems...
I am trying to make a flash radio streamer. The server uses Shoutcast.I have searched on this forum but couldn't find one that works...
I have seen a player that works on http://radio.webcast.ro/player/ So i thought i should download the player and then decompile the swf using Sothink SWF Decompiler. I did that and opened it with flash and i get this code in the actionscript layer:
function getTitle()
{
loadVariablesNum("http://radio.webcast.ro/display.php?a-cache=" + random(100000), 0);
this.display.tickerMessages[0] = melodia;
} // End of the function
function playStream()
{
var _l1 = _root;
var _l2 = this;
_l2.counter.text = "00:00:00";
var _l3 = "http://radio.webcast.ro:" + port;
_l1.stream = new Sound();
_l1.stream.loadSound(_l3, true);
_l1.stream.play();
_l2.status.text = "Playing";
_l1.streamStop = false;
_l2.equalizer.gotoAndPlay("1");
} // End of the function
function stopStream()
{
var _l1 = this;
_l1.stream.stop();
_root.streamStop = true;
_l1.status.text = "Stopped";
_l1.equalizer.gotoAndPlay("61");
_l1.melodia = "Radio WEBcast Media - http://radio.webcast.ro/";
_l1.counter.text = "00:00:00";
} // End of the function
port = "8008/live";
this.closeWin.onPress = function ()
{
getURL("javascript:window.close();");
};
playStream();
Allright, now when i paste the code into my player with the other ip and port and open the swf on my pc it works. But when i upload the swf to a site it doesnt work anymore :(
I dont get it why this isnt working.
Pls help
Thanks in advance