Okay, so, my problem is that I have a video in my HTML and I managed it to set it up to play on the mouse hover, but the problem is that it dosen't work until I clicked anywhere on my Website first. For example: If I try to play video by hovering mouse over it, it won't play. But if I click first anywhere on the site, then it's working. How do I fix that? I want to be able to play my video without having to click somewhere first.
Here's my code:
JavaScript:
<!-- Mouse hover over .video1 to play -->
var $video1 = $(".video1");
$video1.on("mouseenter focus", function () {
$video1.get(0).play();
});