Stop video on scroll

paulo.custodio's Avatar

paulo.custodio

25 Sep, 2017 11:46 AM

Hi there.

Is there a way to stop video when scrolling? I have a jquery function that listens to scroll changes and I wanted to stop the iframe video playback once the user scrolls down.

Thank you.

  1. 1 Posted by paulo.custodio on 25 Sep, 2017 11:52 AM

    paulo.custodio's Avatar

    Update: I think I solved it.

    $('.royalSlider').royalSlider('stopVideo');

  2. Support Staff 2 Posted by Dmitry Semenov on 25 Sep, 2017 02:27 PM

    Dmitry Semenov's Avatar

    Yea, that's the correct way.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac