Class Index | File Index

Classes


Class Karma.kAudio

This object is the prototype for audio files submitted to Karma in the Karma() method
Defined in: karma.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Prototype object for audio files
Field Summary
Field Attributes Field Name and Description
<static>  
Karma.kAudio.file
file location of asset
<static>  
Karma.kAudio.media
Media object.
Method Summary
Method Attributes Method Name and Description
<static>  
Karma.kAudio.play()
Plays the audio file
Class Detail
Karma.kAudio()
Prototype object for audio files
 kAudio is the prototype object for audio
 The audio assets are loaded in a distinctly different way
 from the canvas or svg assets. They also have distinctly different
 helper methods 
 
 You initialize the kAudio assets by passing an array of objects
Throws:
{Error}
if the individual audio asset is set to be localized but the globale locale is not set on the Karma object
{Error}
if the name and file properties are not supplied
Field Detail
<static> {String} Karma.kAudio.file
file location of asset
Default Value:
""

<static> {Audio} Karma.kAudio.media
Media object. You can access the src, autobuffer, autoplay, loop, and controls attributes via the media property of kAudio. Read more about the properties of the HTML 5 media element
Default Value:
undefined
Method Detail
<static> Karma.kAudio.play()
Plays the audio file

Documentation generated by JsDoc Toolkit 2.3.2 on Mon Feb 01 2010 11:23:19 GMT+0545 (NPT)