Skip to content

Instantly share code, notes, and snippets.

@robozavri
Last active September 10, 2020 08:08
Show Gist options
  • Save robozavri/bb978285de72fb0e5dbb684d4c9d7d30 to your computer and use it in GitHub Desktop.
Save robozavri/bb978285de72fb0e5dbb684d4c9d7d30 to your computer and use it in GitHub Desktop.
#javascript audio html5
audio = document.getElementsByTagName("audio")[0];
//functions
audio.load();
audio.play();
audio.pause();
//properties
audio.currentSrc
audio.currentTime
audio.duration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment