Class mmir.env.media.AudioHtml5Impl
Defined in: html5AudioOutput.js.
Constructor Attributes | Constructor Name and Description |
---|---|
The Audio abstraction that is returned by mmir.MediaManager#getURLAsAudio.
|
Field Attributes | Field Name and Description |
---|---|
Disable audio (should only be used internally).
|
|
Enable audio (should only be used internally).
|
|
Get the duration of the audio file
|
|
Check if audio is currently enabled
|
|
Check if audio is currently paused.
|
|
Play audio.
|
|
Release audio: should be called when the audio
file is not used any more.
|
|
Set the volume of this audio file
|
|
Stop playing audio.
|
Class Detail
mmir.env.media.AudioHtml5Impl()
The Audio abstraction that is returned by mmir.MediaManager#getURLAsAudio.
NOTE: when an audio object is not used anymore, its #release method should be called.
This is the same interface as mmir.env.media.AudioCordovaImpl.
Field Detail
disable
Disable audio (should only be used internally).
enable
Enable audio (should only be used internally).
{Number}
getDuration
Get the duration of the audio file
{Boolean}
isEnabled
Check if audio is currently enabled
{Boolean}
isPaused
Check if audio is currently paused.
NOTE: "paused" is a different status than "stopped".
play
Play audio.
release
Release audio: should be called when the audio
file is not used any more.
setVolume
Set the volume of this audio file
stop
Stop playing audio.