News for hackers. Stuff that matters.
Re:Google's playing the closed-open game again, this time wi... by mrpollo on Wednesday July 27, 2011 @03:45PM (#2813779)
i just tried accessing the app with Safari and it came to my attention that its trying to load mp4 and mp3 files instead of the webm videos http://yfrog.com/h7x8xup then i got even more curious and found this file http://www.allisnotlo.st/static/js/VideoList.js look around line 236

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

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.