Can't get wav files to play on iPad using Safari

party5animal

New Member
I have a web application that I have built and it needs to have three different kind of alerts. Single beep, long beep and triple beep. All the audio files are in .wav format. The application works as expected with all beep notifications playing at the right time on a Mac or PC, with IE, FireFox, Chrome and Safari on Mac.When I run the application on an iPad it only wants to play the single beep and will play it every time it is supposed to. When it's supposed to play the long beep or triple beep, it doesn't.Can somebody please tell me why this is happening and what I can do to get this working? This web application was built to run on the iPad and full web browsers. This is the last thing that needs to be worked out, before the application is completed.Thanks in advance. :)Here is my code for the audio tags and the javascript that makes it work.HTML\[code\] <span style="visibility:hidden; display: none; "> <audio src="http://stackoverflow.com/questions/7335687/sounds/beep.wav"></audio> <audio src="http://stackoverflow.com/questions/7335687/sounds/longBeep.wav"></audio> <audio src="http://stackoverflow.com/questions/7335687/sounds/tripleBeep.wav"></audio> </span>\[/code\]JavaScript\[code\] function playBeep() { var beepAudio = document.getElementsByTagName('audio')[0]; beepAudio.play(); } function playLongBeep() { var beepAudio = document.getElementsByTagName('audio')[1]; beepAudio.play(); } function playTripleBeep() { var beepAudio = document.getElementsByTagName('audio')[2]; beepAudio.play(); }\[/code\]All the audio files are using the same codec and the format.
WHODv.png
 
Top