there is a code
$(document).ready(function () { $("body").on("mouseover", "video", function(){ this.play(); }); $("body").on("mouseleave", "video", function(){ this.pause(); this.currentTime = 0; // this.load(); }) }) First you need to native js
var video = document.getElementsByTagName("video"); video.onmousemove = function(){ this.play(); }; video.onmouseout = function(){ video.pause(); video.currentTime = 0; }; the point is that when you make a video it plays and when you move the cursor it returns to the beginning on Jquery works normally with any amount of video, and on the native it only works with one video ... Tell me how to do it correctly