WINAMP.COM | Forums : Powered by vBulletin version 2.3.9 WINAMP.COM | Forums > SHOUTcast > SHOUTcast Technical Support > Flash Streaming Script
  Last Thread   Next Thread
Author
Thread Post New Thread    Post A Reply
Terrum
Junior Member

Registered: Dec 2006
From: England

Flash Streaming Script

I did search for hours, And i really just give up...

I just want a normal script what works and you can stream your radio to a stand-alone flash player (.exe) i used to have one, but i lost the exe. This is really urgent. Thanks.

__________________
Thanks. Terrum.

Quick Link | Report this post to a moderator | IP: Logged

Terrum is offline Old Post 10-12-2007 09:20 PM
Click Here to See the Profile for Terrum Click here to Send Terrum a Private Message Click Here to Email Terrum Find more posts by Terrum Add Terrum to your buddy list Edit/Delete Message Reply w/Quote
Sawg
Forum King

Registered: Jun 2000
From: Phoenix, AZ

Here is a crazy long thread about it:
http://forums.winamp.com/showthread.php?threadid=125430

The short of it, Adobe decided not to add real SHOUTcast support to Flash

__________________
| Brought to you by ^V ^C |

Quick Link | Report this post to a moderator | IP: Logged

Sawg is offline Old Post 10-13-2007 02:39 AM
Click Here to See the Profile for Sawg Click here to Send Sawg a Private Message Visit Sawg's homepage! Find more posts by Sawg Add Sawg to your buddy list Edit/Delete Message Reply w/Quote
Terrum
Junior Member

Registered: Dec 2006
From: England

So i have to do this script?

onClipEvent (load) {mysound=new Sound(this);mysound.loadSound("http://masala.hopto.org:8000/",true);

Where do some enters go in the script? coz it can't be just 2 lines.. isn't it like onClipEvent, enter, (load), enter, {mysound etc etc

Can someone fix the script to work, Or am i just being stupid and doing it wrong. Thanks

Also if i paste it into the flash script, it all comes up in one line.. i really need someone to fix the script to make it work (i swear the script is not all one line) thanks

__________________
Thanks. Terrum.

Quick Link | Report this post to a moderator | IP: Logged

Terrum is offline Old Post 10-13-2007 09:59 PM
Click Here to See the Profile for Terrum Click here to Send Terrum a Private Message Click Here to Email Terrum Find more posts by Terrum Add Terrum to your buddy list Edit/Delete Message Reply w/Quote
Bansheeman
Junior Member

Registered: Oct 2007
From:

JW_mp3_Player works great!

JW_mp3_Player works great!
I am using it on my website, with NO problems, and it is free!! and may be downloaded at URL submitted by user.
This is for PHP enabled Servers!!!! just follow the these instructions:
put the mp3player.swf, the swfobject.js, LISTEN.php, and the player.php in the same directory on your webserver.

Use this config code to make the player.php webpage that will connect the flash player to your ShoutCast stream:
<HTML>
<HEAD>
<TITLE>MP3 Player</TITLE>
<script type="text/javascript" src="swfobject.js"></script>
</HEAD>
<BODY>
<CENTER>
<div id="player" ><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.
</div>

<script type="text/javascript">
var so = new SWFObject('mp3player.swf','single','400','20','7');
so.addVariable('type', 'mp3');
so.addVariable('file', 'http://PUBLIC IP ADDRESS:PORT/;stream.nsv');
so.write('player');
</script>
<BR>
<iframe src="LISTEN.php" name="info" scrolling="auto" width="400" height="100" frameborder="0"></iframe>
</CENTER>
</BODY>
</HTML>

Save it as player.php
then create a new .php file and name it LISTEN.php
this will also go into the same directory.
the code is:

<?php
header("Refresh: 180;");
?>
<div style="Visibility: Hidden; Position: Absolute;">
<?php
$open = fsockopen("PUBLIC IP ADDRESS","PORT");
if ($open) {
fputs($open,"GET /7.html HTTP/1.1\nUser-Agent:Mozilla\n\n");
$read = fread($open,1000);
$text = explode("content-type:text/html",$read);
$text = explode(",",$text[1]);
} else { $er="Connection Refused!"; }
?>
</div>
<?php
if ($text[1]==1) { $state = "Up"; } else { $state = "Down"; }
if ($er) { echo $er; exit; }
echo "<font face=verdana size=1>
Listeners: $text[0] of $text[3] ($text[4] Unique)<br>
Listener Peak: $text[2]<br>
Server State: <b>$state</b><br>
Bitrate: $text[5] Kbps<br>
Current Song: $text[6]
</font>";
?>
This will read out the stats of your broadcast, and the REFRESH will show the newest info BTW 180 = 3 minutes.
good luck and enjoy.

Quick Link | Report this post to a moderator | IP: Logged

Bansheeman is offline Old Post 10-14-2007 04:11 PM
Click Here to See the Profile for Bansheeman Click here to Send Bansheeman a Private Message Find more posts by Bansheeman Add Bansheeman to your buddy list Edit/Delete Message Reply w/Quote
Terrum
Junior Member

Registered: Dec 2006
From: England

That's great, But is there just a script you can send me i can put in flash what will stream from SHOUTcast radio. Thanks.

__________________
Thanks. Terrum.

Quick Link | Report this post to a moderator | IP: Logged

Terrum is offline Old Post 10-15-2007 04:38 PM
Click Here to See the Profile for Terrum Click here to Send Terrum a Private Message Click Here to Email Terrum Find more posts by Terrum Add Terrum to your buddy list Edit/Delete Message Reply w/Quote
Bansheeman
Junior Member

Registered: Oct 2007
From:

Don't know flash actionscript very well but here is a link that just may help.

blog.madarco.net/44/memory-leaks-playing-shoutcasticecast-streams-in-flash/

also try this :
onClipEvent (load) {mysound=new Sound(this);mysound.loadSound("http://masala.hopto.org:8000/;stream.nsv",true);

Or this:

var my_sound:Sound = new Sound();
my_sound.loadSound("http://masala.hopto.org:8000/;stream.nsv", true);

Last edited by Bansheeman on 10-15-2007 at 11:21 PM

Quick Link | Report this post to a moderator | IP: Logged

Bansheeman is offline Old Post 10-15-2007 09:45 PM
Click Here to See the Profile for Bansheeman Click here to Send Bansheeman a Private Message Find more posts by Bansheeman Add Bansheeman to your buddy list Edit/Delete Message Reply w/Quote
Terrum
Junior Member

Registered: Dec 2006
From: England

I got a working script here i've been using for some time, But i can't view the script as I converted it to a Flash Executable, If anyone can get the script from this .exe somehow then that would be great.

http://www.freewebs.com/terrum123/radio_station.zip

w w w . f r e e w e b s . c o m / t e r r u m 1 2 3 / r a d i o _ s t a t i o n . z i p

__________________
Thanks. Terrum.

Quick Link | Report this post to a moderator | IP: Logged

Terrum is offline Old Post 10-25-2007 12:49 PM
Click Here to See the Profile for Terrum Click here to Send Terrum a Private Message Click Here to Email Terrum Find more posts by Terrum Add Terrum to your buddy list Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 09:28 PM. Post New Thread    Post A Reply
  Last Thread   Next Thread
WINAMP.COM | Forums : Powered by vBulletin version 2.3.9 WINAMP.COM | Forums > SHOUTcast > SHOUTcast Technical Support > Flash Streaming Script
Show Printable Version
 | 
Email this Page
 | 
Subscribe to this Thread

Forum Jump:
 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is off
vB code is ON
Smilies are ON
[IMG] code is ON