Created
April 21, 2018 22:02
-
-
Save NinoSkopac/83be0c1ad37945a468dad3dec6b30ce3 to your computer and use it in GitHub Desktop.
Track all audio events (aka debug)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"abort, canplay, HAVE_ENOUGH_DATA, readyState, canplaythrough, CAN_PLAY_THROUGH, currentTime, durationchange, emptied, load(), ended, error, interruptbegin, interruptend, loadeddata, loadedmetadata, loadstart, mozaudioavailable, pause, play, playing, progress, buffered, ratechange, seeked, seeking, stalled, suspend, timeupdate, volumechange, muted, waiting".split(', ').forEach( event => { | |
new Audio('PUT YOUR AUDIO SOURCE HERE').addEventListener(event, firedEvent => { | |
console.log(firedEvent); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment