Playing cached audio for offline use on iOS Safari has long been a challenge that has proved to be mission impossible. But with the advent of the (WebKit-only) Web Audio API, it is now finally achievable — although you still need to jump through a few hoops.
The bad news is that you still can’t cache an MP3 file using Application Cache and then simply load it using an
. Safari on iOS 6 will cache the MP3 but then refuse to play it and fail silently (how useful!).
But all is not lost…Details