AudioUtils Class
A collection of utilities for detecting the availability of HTML5 audio
Item Index
Methods
- _fileSupport
- canPlayURL static
- getPlayableURL static
- importSpriteMap static
- supported static
Methods
_fileSupport
()
Bool
private
Get the the internal cache support
Returns:
Bool:
canPlayURL
(
Bool
static
-
url
Determines playability of a URL based on audio support.
Parameters:
-
urlStringThe URL to test
Returns:
Bool:
URL playability
getPlayableURL
(
String
static
-
url
Get the url from the sprite resources array or single url
Parameters:
-
urlThe resources (i.e {url""}, {url}, or string url)
Returns:
String:
Result url
importSpriteMap
(
SwishSprite
static
-
The -
config
Create an SwishSprite object from config
Parameters:
-
TheSwishSpritereference to the SwishSprite
-
configObjectThe JSON config created from autogenerated
Returns:
SwishSprite:
SwishSprite instance
