get supported format

This commit is contained in:
j 2011-02-11 15:50:41 +05:30
commit b41d381866
2 changed files with 11 additions and 2 deletions

View file

@ -14,6 +14,15 @@ jQuery.support.video = function() {
} else {
video.support = false;
}
video.supportedFormat = function(formats) {
var format;
formats.forEach(function(f) {
if(!format && video[f]) {
format = f
}
});
return format;
}
return video;
}();