Okay
  Public Ticket #2004365
Disabling auto-play of video backgrounds until they are on screen
Closed

Comments

  • Jordan started the conversation

    Hi there,

    I've been reading through the WPBakery guide and Newave guides to try and disable background videos from auto-playing until they're actually on-screen, and I can't figure out at all how to do this. Can you please point me in the direction of hot to disable auto-play until the video is actually on-screen.

    Regards,

    Jordan

  •  1,973
    Support replied

    Hello Jordan,

    are we talking about the video background home section?

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  • Jordan replied

    Apologies for the delay,


    Yes that;s correct, the video background from home section. Ideally I'd want the video to start actually playing when it's in the user's view-port.


    Regards,


    Jordan

  •  1,973
    Support replied

    That's quite complex. you need implement an algorithm monitoring the scroll events and get the screen height of the video home section that will trigger a play. An the opposite, pause, when the section is out of view.

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy