Created
October 25, 2010 22:31
-
-
Save watson/645925 to your computer and use it in GitHub Desktop.
Get a HTML5 audio element to replay without loading it from the server again
This file contains 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
var audio = document.getElementById('my_audio'); | |
audio.currentTime = 0; | |
audio.play(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment