Class Index | File Index

Classes


Class mmir.env.media.AudioCordovaImpl


Defined in: cordovaAudioOutput.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
The Audio abstraction that is returned by mmir.MediaManager#getURLAsAudio.
Field Summary
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.AudioCordovaImpl()
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.AudioHtml5Impl.

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. NOTE Android has limited resources available - not releasing resources may result in not being able to instantiate new (audio) resources.

setVolume
Set the volume of this audio file

stop
Stop playing audio.

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Feb 26 2016 21:33:47 GMT+0100 (Mitteleuropäische Zeit)