get supported format
This commit is contained in:
parent
5cfa194497
commit
b41d381866
2 changed files with 11 additions and 2 deletions
|
|
@ -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;
|
||||
}();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue