Making HTML5 audio actually work on mobile
This story starts when we had to provide audio to an HTML5 game we were building.
The game is for mobile browsers, actually a limited and updated range of mobile browsers: Safari for iOS 6+, and the stock browser (i.e. the default browser) for Android 4+. With the well known scaling trick (CSS “transform: scale(…)”) which we built in our mobile app, we got it to run quite nicely in all resolutions, so also on desktop browsers. Hence we would want our audio solution to work also on desktops.
How to play background audio on iOs devices’ web pages
This is a horrible hack that works beautifully (’till next Apple iOs update). It was a while that we where looking for a background audio solution for our Adslife browser game when played on iPad or other iOs devices. Apple’s…