Wait for wav file to get downloaded!
Hello!Found your excelent site at last!
I have some problemo with Mediaplayer play wav files.
Problemo 1)
I have to wait for a file being downloaded complete before playing it.
Problemeo 2)
When I\'m playing it I should be able to stop it.
My code so for is:
var s2Flag = false;
function s2PlayOrStop()
{
if(!s2Flag)
{
//if(Need som code to check if it is downloaded complete)
//{
s2.play();
//}
}
else
{
s2Stop();
}
}
function s2Play()
{
s2.play();
}
function s2Stop()
{
s2.stop();
}
window.document.all.b2.onclick = s2PlayOrStop;
So far I can start the sound (s2) by clicking the button (b2), but I can\'t stop it while playing.
really hope you can help me with this!
Best regards
Fredrik Andersson
