I am trying to preload a HTML5 Audio element by play, pause then set currentTime to 0 but unfortunately it doesn't work for on Windows Phone 8?
I have tried using other device and it works as expected.
Here is my code:
audio = new Audio("sound/C1.mp3");
audio.muted = true;
audio.play();
audio.pause();
audio.currentTime = 0;
Is there anyway to preload this sound before playing? I don't want any delay to users. Thanks in advance
Aucun commentaire:
Enregistrer un commentaire