Last active
September 10, 2020 08:08
-
-
Save robozavri/bb978285de72fb0e5dbb684d4c9d7d30 to your computer and use it in GitHub Desktop.
#javascript audio html5
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
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