Somehow pause or sleep javascript on iOS Safari
I have a piece of javascript where I'm playing a sound like so...
var audio = document.createElement('audio');
audio.src = 'folder/test.wav';
audio.play();
I need to play more than one file spaced apart so you know what it's
saying. iOS doesn't allow you to use setTimeout. I tried that in separate
functions and it fails to sound off the second audio clip when using
setTimeout. Any other ideas?
No comments:
Post a Comment