O
OBAFGKM_RNS
In my html, I have an embedded sound wav. I access that sound from my
javascript using Play() and Stop(). However, once stopped, the sound
will aways resume from where it left off, (making Stop behave more
like a Pause). I want it to start from the beginning.
The only way I've been able to start the sound from the beginning
every time, is to use inner.HTML to reload the embedded wav, thereby
reopening the media plugin. There is always a little hang time when
this happens.
Is it possible to have the wav play from the beginning every time
without reloading it every time? This is what I have:
in my javascript:
var sound = document.getElementById("wl1_click");sound.Play();
and in my html:
<embed id="wl1_click" src="clickb.wav" width="0" height="0"
autostart="false">
javascript using Play() and Stop(). However, once stopped, the sound
will aways resume from where it left off, (making Stop behave more
like a Pause). I want it to start from the beginning.
The only way I've been able to start the sound from the beginning
every time, is to use inner.HTML to reload the embedded wav, thereby
reopening the media plugin. There is always a little hang time when
this happens.
Is it possible to have the wav play from the beginning every time
without reloading it every time? This is what I have:
in my javascript:
var sound = document.getElementById("wl1_click");sound.Play();
and in my html:
<embed id="wl1_click" src="clickb.wav" width="0" height="0"
autostart="false">