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

Field Detail

SC.mediaCapabilities.hasAudioPlayback Boolean
Specifies whether the browser has audio playback capabilities.
SC.mediaCapabilities.hasMicrophone Boolean

Specifies whether the browser supports audio recording via the HTML5 stream API or the Adobe Flash plugin.

SC.mediaCapabilities.hasVideoPlayback Boolean
Specifies whether the browser has video playback capabilities.
SC.mediaCapabilities.isHTML5AudioSupported Boolean
Specifies whether the browser supports the HTML5
SC.mediaCapabilities.isHTML5StreamApiSupported Boolean

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.

SC.mediaCapabilities.isOggSupported Boolean
Specifies whether the browser supports Ogg Vorbis.
SC.mediaCapabilities.isQuicktimeSupported Boolean
Specifies whether the browser supports quicktime media playback.
SC.mediaCapabilities.isWebMSupported Boolean
Specifies whether the browser supports the WebM/VP8 Video format.
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Apr 08 2015 10:02:20 GMT-0600 (CST)