Link to home
Start Free TrialLog in
Avatar of gron
gronFlag for Canada

asked on

timer controlled audio loop

My html page has a audio loop as follows:

<bgsound src="mysound.wav" loop="3">

I would like to have a pause of 1 or 2 seconds between the loop repeats. How?
ASKER CERTIFIED SOLUTION
Avatar of DreamMaster
DreamMaster

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
no way to do it with bgsound, but it could be possible with imbed. However it would take some pretty tricky scripting that would be very unreliable.

Cd&
I would do that same as Max said, just add some silence to the actual file itself.
Avatar of pleasenospam
pleasenospam

How about reloading the entire page, automatically, based on time?  I can't see any reason
why this couldn't be done, because we use this same trick to jump to another URL.
In this instance the process would continue indefinitely until the user went to another page.

Here are two examples with an immediate jump, but the parameter can be set to any amount of time:


http://personal.cfw.com/~write/no-no-no.html

http://personal.cfw.com/~write/unsocial.html

Yes ok pleasenospam, you could do that, but you would rely on two extra factors (loading time, you wouldn't know when the music would actually start, which makes for a factor of uncertainty, then you need to know to the second how long the music lasts, and add extra seconds to that, and then the reloading of the page even takes extra time, so that would be an unreliable way of getting the extra time.
Avatar of gron

ASKER

Thanks all. I opted for DreamMaster's suggestion. I had not edited an audio file before, but it was easy enough with free editors available at:
http://www.audiomelody.com/AudioEditors.htm
Glad to have been helpfull gron.. :)

Thanks for the Grade A.. :)

Max.