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:
-
url
StringThe URL to test
Returns:
Bool:
URL playability
getPlayableURL
(
String
static
-
url
Get the url from the sprite resources array or single url
Parameters:
-
url
The resources (i.e {url""}, {url}, or string url)
Returns:
String:
Result url
importSpriteMap
(
SwishSprite
static
-
The
-
config
Create an SwishSprite object from config
Parameters:
-
The
SwishSpritereference to the SwishSprite
-
config
ObjectThe JSON config created from autogenerated
Returns:
SwishSprite:
SwishSprite instance