Antz
Member
Registered: 28th Jul 03
Location: Leeds Drives: Myself Insane!
User status: Offline
|
I need to build a flash player that will play a Real Stream
http://trancentral.ffradio.co.uk:443/listen.pls
How do I dod it? I know how to get it to play an MP3 but I just can't seem to get this to work!
I'm using something like...
code: onClipEvent (load) {
MySound.loadSound('http://trancentral.ffradio.co.uk:443/listen.pls')
}
onClipEvent (mouseUp) {
MySound.start()
}
at the mo.
[Edited on 17-04-2005 by Antz]
|
Neil
Member
Registered: 2nd Nov 03
Location: Newcastle Drives: E46 MSport Coupe
User status: Offline
|
You need to give the browser the mime type and headers somehow.. I don't know much about flash, but you need these html headers (I do it in php btw):
<?
$file = "[playlist]\r\nNumberOfEntries=1\r\nFile1=http://hcore.fm:8000/";
header("Content-type: audio/x-scpls");
header("Content-Disposition: inline; filename="listen.pls");
echo $file;
?>
[Edited on 17-04-2005 by NeilM]
|
Antz
Member
Registered: 28th Jul 03
Location: Leeds Drives: Myself Insane!
User status: Offline
|
it's got me lost has all this
|