Add .ogg check
This commit is contained in:
parent
31fc14aa5c
commit
bd1274cf92
|
@ -7,7 +7,7 @@ videoSupport.prototype.convert = function () {
|
|||
var t = $(this);
|
||||
var href = t.attr("href");
|
||||
if(href == undefined) return true;
|
||||
if(!href.endsWith(".mp4") && !href.endsWith(".webm")) return true;
|
||||
if(!href.endsWith(".mp4") && !href.endsWith(".webm") && !href.endsWith(".ogg")) return true;
|
||||
var type = "webm";
|
||||
if(href.endsWith(".mp4")) type = "mp4";
|
||||
if(href.endsWith(".ogg")) type = "ogg";
|
||||
|
|
Loading…
Reference in New Issue