Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

3. Multimedia Hacking > Hack 36. Simplify Your HTML5 Media with MediaElement.js

Hack 36. Simplify Your HTML5 Media with MediaElement.js

HTML5 media is generally easy to implement, but with flexibility comes complexity. MediaElement.js was made to bring simplicity back to even the most complex of multimedia environments.

This hack was provided by John Dyer, creator of MediaElement.js. John is a long-time web developer and is currently the director of Web Development at Dallas Theological Seminary.

In my own situation, I had a backlog of several thousand older H.264-encoded MP4s that couldn’t easily be re-encoded to WebM. I wanted to use the HTML5 API, but to do so, I needed a cross-browser way to support H.264 playback with a consistent API. To make this happen, I created MediaElement.js, a JavaScript library that helps all browsers from IE 6 and later think they support HTML5 and H.264 playback.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint