Synopsis

var a = document.createElement('audio');
return !!(a.canPlayType && a.canPlayType('audio/mp4; 
          codecs="mp4a.40.2"').replace(/no/, ''));

Get HTML5: Up and Running now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.