Class lime.audio.Audio
Defined in: audio.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
lime.audio.Audio(filePath)
Audio stream object
|
| Field Attributes | Field Name and Description |
|---|---|
|
Internal audio element
|
|
| <private> | |
| <private> |
| Method Attributes | Method Name and Description |
|---|---|
|
isLoaded()
Returns true if audio file has been loaded
|
|
|
Returns true if audio file is playing
|
|
| <private> |
Handle loading the audio file.
|
|
play()
Start playing the audio
|
|
|
stop()
Stop playing the audio
|
Class Detail
lime.audio.Audio(filePath)
Audio stream object
- Parameters:
- {string} filePath
- Path to audio file.
Field Detail
baseElement
Internal audio element
<private>
{bBoolean}}
loaded_
<private>
playing_
Method Detail
{boolean}
isLoaded()
Returns true if audio file has been loaded
- Returns:
- {boolean} Audio has been loaded.
{boolean}
isPlaying()
Returns true if audio file is playing
- Returns:
- {boolean} Audio is playing.
<private>
loadHandler_()
Handle loading the audio file. Event handlers seem to fail
on lot of browsers.
play()
Start playing the audio
stop()
Stop playing the audio