stop or pause video on click jquery code example
Example 1: jquery video play
$('#videoId').get(0).play()
Example 2: stop a video jquery
var media = $("#video-id").get(0);
media.pause();
media.currentTime = 0;
$('#videoId').get(0).play()
var media = $("#video-id").get(0);
media.pause();
media.currentTime = 0;