Simbul/baker — Issue #267: Playing Audio in iOS 4.3
Author: nruffilo
Created: 2012-01-05 19:43:49+00:00
State: open

I'm having an issue with audio. I have an activity where 4 sound files play in succession. In iOS 5, and latest safari, things play wonderfully, but in 4.3(.2) things aren't working. I'm not sure if this can be solved in baker or not.

Below are the MANY solutions I have tried. It should be noted that playing ONE sound file on a page is not a problem. I have Voice Over audio playing on page-load for most of my pages and that works fine.

If you can think of a way to get this working, let me know. All of the below methods work perfectly in 5.0 and latest desktop safari, just not in iOS 4.3 simulator/device:

1) Have a hidden div, set innerHTML = an tag with the appropriate src file
1a) onended -> clear div innerHTML, load next audio file
1b) setTimeout, delay 2 seconds between each file (which is 1 second long) then load next sound
2) Hidden div, set innerHTML = 4 audio tags
2a) onended -> .play() next audio file
2b) setTimeout -> .play() next audio file
3) replaced with
4) replaced with