Where to post an audio file?

He has: 286 posts

Joined: Mar 2003

I need to embed some audio files on web pages. I've been using this format:
<embed src = "audiofile.mp3" hidden autostart=true loop=true></embed>

I have been embedding them, just after the tag. This works fine, except that there is a pause of up to 30 seconds on some computers before the audio begins to play.

Is there a way I can make the audio start as soon as the page is opened?

Thanks, in advance,


Greg K's picture

He has: 2,145 posts

Joined: Nov 2003

It is probably pausing so that the audio file can buffer for playing back. Nothing to do about that unless you get it preloaded into browser cache on another page (not too reliable)


He has: 286 posts

Joined: Mar 2003

Thanks for the quick reply.

One other question: Visitors to my site will be using a variety of browsers. That being the case, do you think it is better to use the <object> tag instead of the <embed> tag?

Thanks again.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.