modernizr
Version:
Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.
19 lines (18 loc) • 505 B
JavaScript
/*!
{
"name": "Video crossOrigin",
"property": "videocrossorigin",
"caniuse": "cors",
"authors": ["Florian Mailliet"],
"notes": [{
"name": "MDN documentation",
"href": "https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes"
}]
}
!*/
/* DOC
Detects support for the crossOrigin attribute on video tag
*/
define(['Modernizr', 'createElement'], function(Modernizr, createElement) {
Modernizr.addTest('videocrossorigin', 'crossOrigin' in createElement('video'));
});