Stop playback in HTML5 audio using Javascript
Stop playback in HTML5 audio using Javascript
You may wanted to stop playback of an audio playing via audio HTML5 tag.
Here is the code :
Here is the code :
document.getElementById(audio).currentTime = 0;//By IDIts that simple. Just use currentTime = 0.
document.getElementsByTagName(audio).currentTime = 0;//By Tag
download file now
Comments
Post a Comment