From c2edc5b0cb559d2f51f396589e21be9662f9949b Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 7 Apr 2011 12:43:22 +0200 Subject: [PATCH] sadly chrome should know better --- static/js/jquery/jquery.videosupport.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/js/jquery/jquery.videosupport.js b/static/js/jquery/jquery.videosupport.js index 4cf7320f7..d54dffa5e 100644 --- a/static/js/jquery/jquery.videosupport.js +++ b/static/js/jquery/jquery.videosupport.js @@ -10,6 +10,8 @@ jQuery.support.video = function() { video.webm = false; } video.h264 = !!(v.canPlayType && v.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"').replace(/no/, '')); + if(jQuery.browser.chrome && video.webm) + video.h264 = false; video.mp4 = video.h264; video.ogg = !!(v.canPlayType && v.canPlayType('video/ogg; codecs="theora, vorbis"').replace(/no/, '')); video.ogv = video.ogg;