Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creation of a Radio Tuner 2

Status
Not open for further replies.
Code:
my_btn.onPress = function() {
	my_sound = new Sound();
	my_sound.loadSound("urlhere", true); //true is streaming
		my_sound.setVolume(100);
	my_sound.play();
};

Im not sure if it works for m3u file types, but that would be the way you go about doing this.

Regards,

Martin

Computing Help And Info:
 
I dont know if you know this but...

m3u (winamp) and asx (windows media player) are not actually songs ... just playlist files. They are nothing but textfiles with urls to songs online and maybe some syntax so your music player knows how to read them

Open them up yourself with notepad:

goajiru2.mp3.m3u:
Code:
[URL unfurl="true"]http://203.131.199.131:8040/goajiru2.mp3[/URL]

listen.asx:
Code:
<Asx Version = "3.0" > 
<Title > Playlist4</Title>

<Param Name = "AllowShuffle" Value = "yes" />

<Entry> 
<Param Name = "Bitrate" Value = "48000" />

<Duration value = "00:00:0.000" />

<Param Name = "FileSize" Value = "0" />

<Param Name = "Is_Protected" Value = "False" />

<Param Name = "Is_Trusted" Value = "false" />

<Param Name = "MediaType" Value = "audio" />

<Param Name = "SourceURL" Value = "[URL unfurl="true"]http://www.radioenlinea.com:8181"[/URL] />

<Title > SickOnion.com - jpop jrock anime j-pop j-rock</Title>

<Param Name = "type" Value = "downloaded" />

<Param Name = "WM/Genre" Value = "jpop jrock anime" />

<Ref href = "[URL unfurl="true"]http://www.radioenlinea.com:8181"/>[/URL]
</Entry>
</Asx>

A lot of times people use playlist files because they DONT want people to download the actual song. With a playlist file, your music player only streams real-time from a server; usually the server is locked and passworded so you can't actually download the song (and burn it to a cd).

Im not sure you can play such playlist files through flash, (it would have to somehow connect to the server) but i could be wrong
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top