Loader provides a mechanism to preload Cordova audio content via PreloadJS or internally. Instances are returned to the preloader, and the load method is called when the asset needs to be requested. Currently files are assumed to be local and no loading actually takes place. This class exists to more easily support the existing architecture.
_getMediaDuration
Defined in
_getMediaDuration:106
will attempt to get duration of audio until successful or time passes this._item.loadTimeout
_mediaErrorHandlererror
Defined in
_mediaErrorHandler:95
Fires if audio cannot seek, indicating that src does not exist.
error
Object
_loadTime
Defined in
_loadTime:62
A time counter that triggers timeout if loading takes too long
_media
Defined in
_media:54
A Media object used to determine if src exists and to get duration
_TIMER_FREQUENCY
Defined in
_TIMER_FREQUENCY:70
The frequency to fire the loading timer until duration can be retrieved