diff -r b9bf0f859121 -r 30864533a356 web/index.html --- a/web/index.html Thu Oct 24 15:17:48 2013 +0200 +++ b/web/index.html Thu Oct 24 17:06:48 2013 +0200 @@ -166,7 +166,7 @@ + ' type: "AutoPlayer",' + ' height: "360",' + ' autostart: true,' - + ' url_transform: function(url) { if(url.substr(url.length - 4).toLowerCase()==".flv"){ return url.replace("/ddc_player/video/","/ddc_player/flv:video/"); } return url.replace("/ddc_player/video/","/ddc_player/mp4:video/"); }' + + ' url_transform: function(url) { var can_play_mp4 = !!document.createElement("video").canPlayType("video/mp4"); if(!can_play_mp4){ return url.replace(/\.mp4$/i,".webm"); }else{ return url; } }' + ' }' + ' ,{' + ' type: "Polemic",'