HTMLAudioTagPool Class
HTMLAudioTagPool is an object pool for HTMLAudio tag instances.
Item Index
Methods
- get static
- getDuration static
- remove static
- set static
Methods
get
(
static
-
src
Get an audio tag with the given source.
Parameters:
-
src
StringThe source file used by the audio tag.
getDuration
(
Number
static
-
src
Gets the duration of the src audio in milliseconds
Parameters:
-
src
StringThe source file used by the audio tag.
Returns:
Number:
Duration of src in milliseconds
remove
(
Boolean
static
-
src
Delete stored tag reference and return them to pool. Note that if the tag reference does not exist, this will fail.
Parameters:
-
src
StringThe source for the tag
Returns:
Boolean:
If the TagPool was deleted.
set
(
static
-
src
-
tag
Return an audio tag to the pool.
Parameters:
-
src
StringThe source file used by the audio tag.
-
tag
HTMLElementAudio tag to set.
Properties
_tagPool
TagPool
private
static
An object pool for html audio tags