I'm trying to play or pause the video while clicking a button using jquery and javascript. When I trying to use javascript functions, it not working properly and the console says the paused keyword is not a function. I'm giving the code below.
var myVideo = $(".videoo:visible");
function playPause() { 
  window.alert(myVideo);
  if (myVideo.paused) 
    myVideo.play(); 
  else 
    myVideo.pause(); 
}
 
     
    