I have controls that load mp3 files from other sites, but if it take the audio file a while to start loading, the controls stay disabled for a few seconds and appear not to be working.
If I show an activity indicator when the audio control starts loading the resource, is there a callback I can use to hide the indicator when the audio control is ready to start playing the audio and ready for user interaction?
element.addEventListener('loadedmetadata', callback, false);apart form
loadedmetadata,loadcan also be used to see if the song is also loadedhttps://developer.mozilla.org/en/Introducing_the_Audio_API_Extension