Class: SC.mediaCapabilities
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/
Defined in: media_capabilities.js
- See:
- http://caniuse.com/
- Since:
- SproutCore 1.8.1
Field Summary
- SC.mediaCapabilities.hasAudioPlayback
- SC.mediaCapabilities.hasMicrophone
- SC.mediaCapabilities.hasVideoPlayback
- SC.mediaCapabilities.isHTML5AudioSupported
- SC.mediaCapabilities.isHTML5StreamApiSupported
- SC.mediaCapabilities.isOggSupported
- SC.mediaCapabilities.isQuicktimeSupported
- SC.mediaCapabilities.isWebMSupported
Field Detail
SC.mediaCapabilities.hasAudioPlayback BooleanSpecifies whether the browser supports audio recording via the HTML5 stream API or the Adobe Flash plugin.
Specifies whether the browser supports the HTML5 getUserMedia
/Stream API.
NOTE: As of February 2012, this feature is still in Draft status and is likely to change frequently. It's included here for the sake of completeness, however concrete implementations don't yet exist.