I am experiencing problems in the mobile version. From desktop to scroll the video starts correctly but from mobile it doesn’t work. Searching I also found this question but it did not lead to the solution. I appreciate any suggestions, thank you
jQuery(window).on("load", function() {
var distance = jQuery('#page00').offset().top;
jQuery(window).scroll(function () {
if (jQuery(window).scrollTop() >= distance) {
if (jQuery("#page00").hasClass("stopVid")) {}else{
jQuery('#page00').addClass("stopVid");
jQuery("#videoHero0").get(0).play();
}
} else {
jQuery('#page00').removeClass("stopVid");
}
});
} );
1