• Resolved rose18

    (@rose18)


    We want to play the video when user enters the viewport, and pause the video when they leave the viewport. Does using postMessage achieve that functionality? Can you point me in the right direction?

    thank you

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Animesh Gaurav (a11n)

    (@bizanimesh)

    Hello there – could you please share an example with us from any site so that we can check if it is possible with the VideoPress video or not?

    Looking forward to your reply!

    Thread Starter rose18

    (@rose18)

    @bizanimesh

    I’m using my test site for testing and I have installed the ‘Jetpack VideoPress’ plugin. I have uploaded a test video and created a page with that video (using the VideoPress block).

    https://sc.thedev.ca/roseelementor/wp-block-page/

    I want the video to auto play/start once it enters the viewport (when user scrolls down to the video). When it leaves the viewport, the video will pause.

    Does using postMessage achieve that functionality??

    Thank you!

    Plugin Support Animesh Gaurav (a11n)

    (@bizanimesh)

    Hello there – thanks for adding additional information. I’m afraid it is not currently possible with VideoPress. It has the autoplay feature, but the video won’t automatically stop if you leave the viewport.

    You may try the custom solution that you want, but as per our scope, we won’t be able to assist with it.

    In case the custom solution doesn’t work – you may also open a feature request for our team.

    Thread Starter rose18

    (@rose18)

    thank you @bizanimesh ! I was planning to use GASP to detect if users has scrolled to the start point (when the video enter viewport), if so, then it will execute a function to start the video, but does VideoPress support using postMessage to start / pause videos?

    Plugin Support Animesh Gaurav (a11n)

    (@bizanimesh)

    Hello there – it looks like it does support it, but let me confirm once from the team and get back to you with a 100% confirmation.

    Plugin Support Animesh Gaurav (a11n)

    (@bizanimesh)

    Hello there – it does support it, and we have this public repo that documents the player APIs.

    I hope that will help you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Play jetpack videopress video when enter viewport’ is closed to new replies.