Use a simple video tag

This commit is contained in:
Jiiks 2016-03-29 02:42:35 +03:00
parent e2c4546ca8
commit 3dcacb5199
1 changed files with 1 additions and 3 deletions

View File

@ -13,9 +13,7 @@ videoSupport.prototype.convert = function () {
if(href.endsWith(".mp4")) type = "mp4";
if(href.endsWith(".ogg")) type = "ogg";
t.replaceWith( '<video width="480" height="320" controls>' +
'<source src="'+href+'" type="video/'+type+'">' +
'</video>');
t.replaceWith( '<video width="480" height="320" src="'+href+'" type="video/'+type+'" controls></video>');
});
};