Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

video js toggle play pause

function playPause() {
 var video = document.querySelector("video");
 if (video.paused)
   video.play(); 
 else 
   video.pause();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #video #js #toggle #play #pause
ADD COMMENT
Topic
Name
9+8 =