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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I stream or buffer audio???

Status
Not open for further replies.

cfull

IS-IT--Management
Oct 23, 2000
5
US
I would like to make a jukebox, in which I would stream a MP3 file over the internet. The jukebox would contain many songfiles, thus, I do not want to include them in the library, due to the size. Is this possible. I know it is in Director, because you can insert a URL as the address for audio and set the buffer size. Can anyone shed some light on Flash's buffer capibilities???
 
well streaming with mp3 with flash is very cool. i know you can use a macromedia communication server and handle it.

but its too expensive i think. i have another method read here in the forum, and then i expand this a little bit. it works fine.

you can try it out:

put this action in the first frame:

mysound = new sound();
mysound.loadSound("1.mp3",true);
mysound.start();

then make a button and put this code to the button:

on (release) {
stopAllSounds();
mysound2 = new sound();
mysound2.loadSound("2.mp3",true);
mysound2.start();
}

an now its your turn:
try to change the following lines:
// first frame
mysound.loadSound("1.mp3",true);

to

mysound.loadSound("YOUR_URL_TO_YOUR.mp3",true);


//and the button
mysound2.loadSound("YOUR_URL_TO_YOUR.mp3.mp3",true);

anyone who try this out, please reply to my post here. i have a lot of work around. your comments will help me a little bit to have more time in programming flash.

thnx ;-)

GtPA - gOd tHnX PROGrAMmERS ArmY
 
All you ever wanted to know about sound but were afraid to ask!


Regards,

cubalibre2.gif

Bacon, eggs and sunshine are still good for me!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top