Totally unrelated to mAirList- instead, I’m asking about flash players.
I’ve searched high and low to find tutorials on if this is possible, as what I am wanting to do, is to have a custom flash player (instead of the bog standard embedded windows media player) that is able to stream the station’s audio.
I’ve read tutorials to create a simple player in flash that has volume, start, stop and able to play an mp3. Is it possible to have a live stream of audio going through a flash player?
Sorry if that sounds confusing- any help would be brilliant!
Zut alors! Mais c’est un applet Français?!! Mais … dewplayer est utilisé par Virgin Radio, n’est-ce pas? Incroyable!
(Hope Ryan’s French is good! ;))
Seriously though: nice one, Chris! I’ll put that in my Proper Useful Things collection. In return, you might want to type freewarefiles prompter into your Googlythingy … It’s wroten by someone you know >ahem!<.
I’ve been using it to play podcasts for people without podcatchers (do they exist??) on our website. Seems excellent so far.
[quote=“Cad, post:5, topic:5732”]Zut alors! Mais c’est un applet Français?!! Mais … dewplayer est utilisé par Virgin Radio, n’est-ce pas? Incroyable!
(Hope Ryan’s French is good! ;))
Seriously though: nice one, Chris! I’ll put that in my Proper Useful Things collection. In return, you might want to type freewarefiles prompter into your Googlythingy … It’s wroten by someone you know >ahem!<.
Actually Cad- A* 1 year early in French, so I did get all that haha!!
The dewplayer doesn’t seem that versatile (what/where do Virgin (Absolute?) radio use it for?), where as the JW player uses skins etc which could be modified pretty easy.
I’m used to the JW player so I could probably use that.
I’m trying to get my way round modifying skins on it at the moment!
Hi Ryan,
in case you want to program your own, you just have to put your stream’s url and port into the loadSound Method’s URL parameter, and set the second (isStreaming) parameter to true, eg mySound.loadSound(“http://www.your_stream_url:port/mountpoint.mp3”, true);
To make a simple player, just create a button called “listen”, containing a dynamic text field called “status” and add the following code to its (the button’s) script:
on (press) {
if (!listening){
myradio = new Sound();
myradio.loadSound("http://195.10.228.4:8000/209radio_relay.mp3", true);
myradio.setVolume(90);
myradio.start();
listen.status.text="stop stream";
listening=true;
}
else {
listening=false;
listen.status.text="listen (mp3)";
myradio.stop();
}
} Here’s a bit more of an in-depth explanation of the sound object in actionscript