Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

How do you make mp3s preload sequentially?

Feb 20, 2007 9:22AM PST

I need to embed some MP3 files into my website ( http://www.rpwsj.com : podcast/talk show). I would like to have them preloaded for performance reasons, but it needs to be done sequentially not all at once to be nice to the user's bandwidth.

What I need is to be able to start preloading the next immediately after the previous one has completed. How can I determine when one embedded MP3 has finished downloading so that I can have the page start the next one?

Is there some other way of doing this?

Thanks in advance!

Discussion is locked

- Collapse -
Sorry, just a link.
Feb 20, 2007 9:00PM PST
- Collapse -
What I found
Feb 21, 2007 9:05AM PST

I was looking around as well, and someone suggested to preload the mp3's by playing them with a volume of zero. That way they are playing (and caching) and then when you want to play them with a volume, they are cached and ready to go-- it seems like a good idea, and maybe worth a shot.

I also read somewhere that you should be able to use image preloading scripts for mp3's as well. There are a lot of hits when searching on image preloading, and maybe you can find one that does audio as well.

Let us know if anything above mentioned works for you.

~Sovereign

- Collapse -
Let me add one thing
Feb 21, 2007 9:10AM PST

I looked at your website, and I see what you mean by loading mp3's in order. Take a look at this website http://www.sechrest.com and scroll down to the end of any blog entry. See the little flash player? You can click on anyone of them, it loads almost instantly and then plays back with no lag. You don't need any flash skills either. You could get that player, load it to your website, and then just change the source code to your file. I tested it out and it works.

Just another idea to play with.

~Sovereign