Home Forums WoodMart support forum stop video background from playing in mobile devices

stop video background from playing in mobile devices

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #218374

    shuki
    Participant

    im using wpbakery Use “row settings: video background – YouTube link” in one of my rows. and added a youtube link to run in the background.
    in mobile phones this is heavy and id’e like to disable it.
    using
    CSS display:none
    doesnt stop DOM from loading and im still seeing the streaming happening in the developer tools “network tab”.
    i tried using jQuery

    jQuery(“.vc_video-bg-container”).attr(“data-vc-video-bg”, “”);
    jQuery(“.vc_video-bg-container”).attr(“data-vc-parallax-image”, “”);

    same result…..

    can you help me understand how to achieve this ?
    Thanks

    #218399

    Hello,

    Video cannot be used as a background in mobile by its nature. Any background is scaled on mobile what make impossible to apply video. That is why video background is often replaced with the image or color.

    Best Regards

    #218413

    shuki
    Participant

    as you can see,
    its still loading the videos in the background. even in mobile view
    see image
    this is very heavy on the page load

    #218484

    Hello,

    This is WP bakery functionality and it is the way it works, our theme does not influence this, unfortunately.

    Best Regards

    #218571

    shuki
    Participant

    ok, thanks

    #218610

    You are welcome! If you have any questions please feel free to contact us.

    Best Regards

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