// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2012 Michael Krotscheck and contributors. // License: Licensed under MIT license (see license.js) // ========================================================================== /** * @class * * An easy-to-reference list of media capabilities which the current running * browser supports such as HTML5 and Plugin detection. It is modeled after * Flash Player's browser capabilities class, with all the non-media related * properties removed. Rather than performing specific browser checks, we * instead test by creating some basic DOM elements. It's both more reliable and * easier to maintain than browser version checks. * * To see whether your target browser will support what you're trying to do, * check http://caniuse.com/ * * @see http://caniuse.com/ * @since SproutCore 1.8.1 * @author Michael Krotscheck */ SC.mediaCapabilities = SC.Object.create({}); /** * Automatic detection of various browser media capabilities. */ (function() { /** * Specifies whether the browser supports the HTML5