ngAudio Service Reference
load(path:String):NgAudioObject |
Takes a string and returns an audio object. The audio object can be used before the sound is loaded. Tries first to find an embedded native audio tag with the same ID as the string passed. Tries secondly to load it remotely as a URL. If it fails, an error property will be set to true. |
play(path:String):NgAudioObject | Shortcut to load a sound and play it right away. Not recommended for remote URLs as there will be a delay. |
mute() | Shortcut to globally mute all sounds loaded this way. Global mute is from the sounds individual mute and can't be unmuted except globally. |
unmute() | Globally unmutes all the sounds. |
performance : Number | Changes the interval that Angular Audio observes the audio. A lower number here will improve responsiveness at the cost of processor power. |
unlock = true : Boolean | If true, attempts to 'unlock' audio files so that they work on mobile devices. Disabling this can break this library in mobile! |