stop a video jquery

JavaScript
$('#playButton').click(function(event){
  $('#theVideo').get(0).play(); 
  setTimeout(function(){
    $('#theVideo').get(0).pause();
    $('#theVideo').get(0).currentTime = 0;
  }, 7000);
});var media = $("#video-id").get(0);
media.pause();
media.currentTime = 0;
Source

Also in JavaScript: