stefaniabje/siglufjordur — pull request #3 by johannth (2014-07-10 19:03:34+00:00)
Title: Audiosprite proof of concept

Small proof of concept on playing html5 audio using audio sprites on iOS.

+ Show a small splash alert in the beginning. Pressing start preloads the audio sprite.
+ Wait for the `timeupdate` event and then show the map.
+ Tapping the thumb plays a random sound.

With this approach it is possible to autoplay the sound when you get near the location.

In order to get more stability I hosted the audio file in my dropbox, the local dev server was erroring on some requests from the browser.