Home Forums WoodMart support forum Video Issue

Video Issue

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #516146

    evanlee01141991
    Participant

    Normally, after playing the video, if you slide left or right, the video will automatically pause. It will only resume autoplay when you slide back to the video.

    However, in the current situation, the video keeps playing regardless of the slide direction.

    Attachments:
    You must be logged in to view attached files.
    #516341

    Luke Nielsen
    Keymaster

    Hello,

    The below code will help you to stop the video after changing the product thumbnail, please add it to the “On document ready” area in Theme Settings -> Custom JS.

    (function($) {
    	$('.woocommerce-product-gallery__wrapper:not(.quick-view-gallery)').on('changed.owl.carousel', function(e) {
    		$('.woocommerce-product-gallery__wrapper:not(.quick-view-gallery)').find('.product-image-wrap.wd-video-playing .wd-play-video').trigger('click');
    	});
    })(jQuery);

    Kind Regards

    #518889

    evanlee01141991
    Participant

    It worked, but it’s not perfect yet, I want it to be auto play after back to the selected video.

    Mean after customer click play on first time, it will stop the video after changing the product thumbnail and it will auto play the video after changing back the to video.

    #519026

    Luke Nielsen
    Keymaster

    Hello,

    After careful consideration and evaluation, we regret to inform you that there may be challenges in ensuring the proper functionality of the customizations you have requested. Unfortunately, the proposed customizations may pose technical limitations or compatibility issues that could impact the overall performance.

    So for now, there is no proper way to make it as you want because it could cause a lot of issues, unfortunately.

    Kind Regards

Viewing 4 posts - 1 through 4 (of 4 total)