HTML5 Audio and Modernizr
May 14, 2011
Previously, I was generating HTML5 audio elements into my source and then getting a handle to them by id. It turns out there's a simpler way - you can create audio instances directly in JavaScript by using new Audio('path')
.
That does, however, leave the problem of formats. Some browsers …