Answers for "video js toggle play pause"

0

video js toggle play pause

function playPause() {
 var video = document.querySelector("video");
 if (video.paused)
   video.play(); 
 else 
   video.pause();
}
Posted by: Guest on October-28-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language