Answers for "stop a video jquery"

0

stop a video jquery

$('#playButton').click(function(event){
  $('#theVideo').get(0).play(); 
  setTimeout(function(){
    $('#theVideo').get(0).pause();
    $('#theVideo').get(0).currentTime = 0;
  }, 7000);
});
Posted by: Guest on August-17-2020
0

stop a video jquery

var media = $("#video-id").get(0);
media.pause();
media.currentTime = 0;
Posted by: Guest on August-17-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language