Friday, July 10, 2009

Enabling audio on your webpage on page load

Hi Sara
There are many ways to play music on page load, including flash (easiest) or playlists.
You can load a m3u playlist to play your songs in order.
However, what you want to achieve (play one clip only once, and sequentially play another one, within a loop) is very complex, but not impossible.

First of all, playing mp3 files are not advised, given the huge size (~3mb or more).

My first guess to solve your problem is as follows:

Initiate both clips at the same time on page load (e.g. t=0).
Liberi Fatali should have a 3-5 seconds initial blank so that your first clip can be heard without interference.

To do this, place the following in the HEAD section of your page:


<embed src="http://emmie.surgero.com/HerGroovyTrick.mp3" width="310" height="45" autostart="true" autoplay="true" loop="false" volume="85%">
<embed src="http://emmie.surgero.com/LiberiFatali.mp3" width="310" height="45" autostart="true" autoplay="true" loop="true" volume="85%">


Remember to add 3-5 seconds blank in your Liberi Fatali clip and that should do the trick!

Denis

No comments:

Post a Comment