HTML Audio/Video DOM pause() Method
Example
var vid = document.getElementById("myVideo");
function playVideo() {
vid.play();
}
function pauseVideo() {
vid.pause();
}
Meaning
The pause() method pauses the currently playing audio or video and use the play() method to start playing the current audio/video.
Standard Syntax
audio|video.pause()
Advertisement