move static and files
This commit is contained in:
parent
86305e4c76
commit
aeaa875608
21 changed files with 29 additions and 14 deletions
19
static/js/jquery/jquery.js
vendored
Normal file
19
static/js/jquery/jquery.js
vendored
Normal file
File diff suppressed because one or more lines are too long
18
static/js/jquery/jquery.videosupport.js
Normal file
18
static/js/jquery/jquery.videosupport.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
jQuery.support.video = function() {
|
||||
jQuery.browser.chrome = /chrome/.test(navigator.userAgent.toLowerCase());
|
||||
var video = {};
|
||||
var v = document.createElement('video');
|
||||
if (v) {
|
||||
video.support = true;
|
||||
video.webm = !!(v.canPlayType && v.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/no/, ''));
|
||||
//Disable WebM on Safari/Perian, seeking does not work
|
||||
if(video.webm && jQuery.browser.safari && !jQuery.browser.chrome)
|
||||
video.webm = false;
|
||||
video.h264 = !!(v.canPlayType && v.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"').replace(/no/, ''));
|
||||
video.ogg = !!(v.canPlayType && v.canPlayType('video/ogg; codecs="theora, vorbis"').replace(/no/, ''));
|
||||
} else {
|
||||
video.support = false;
|
||||
}
|
||||
return video;
|
||||
}();
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue