Re:Google's playing the closed-open game again, this time wi...
by pornel on Wednesday July 27, 2011 @04:08PM
(#2813882)
None of this '90s-style sniffing is necessary: HTML5 supports multiple <source> elements allowing browser to choose and has canPlayType('video/webm') for JavaScript.
this.src = src.replace(/(\.webm+)$/, (navigator.userAgent.indexOf('Chrome/') == -1 && (navigator.userAgent.indexOf('MSIE') != -1 || navigator.userAgent.indexOf('Safari/') != -1)) ? '.mp4' : '.webm');
but looks like they didn't upload any mp4 files :( sad