In my page , I dynamically create an HTML5 Audio element in JavaScript:
bell = new Audio("alarmclock.mp3");
Later (in response to the expiration of the jQuery countdown object) I reproduce it:
bell.play();
Results:
- Chrome (6.0.472.55) for Mac: Sound plays normally.
- OmniWeb (5.10.2): the sound plays normally.
- Safari (5.0.1) for Mac:
I hear nothing. The sound is playing great. (I do not know why it did not work before.) - MobileSafari (iOS 3.1.3 - latest version for my device): I donβt hear anything.
How can i solve the problem? I would really like it to work in MobileSafari, so my web application can be portable.
source share