I\'m working on a website that has a chat for a client, however, we\'re experiencing problems with audio in iPad (iOS 5).
The target is in fact the iPad with support
Source code(version simple)
Enable Sound
var sound = new Audio("/Assets/audio/yourAudio.mp3");;
$("#enableSound").click(function() {
sound.play();
});
User has to click on div "#enableSound", from that moment on whenever you want to play above sound, just call
sound.play()
http://jsbin.com/virixukavo/1/edit?html,js,output