Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Saguaros Moderator
    #1090774

    Hi Juan,

    This will require a bit customization, you can try with my tweak here:

    • Go to file: root/templates/ja_healthcare/acm/video/tmpl/style-1.php
    • Add this JS code:
      $(window).on('scroll', function() {
      var scrolltop = document.window.getScrollTop() + 1000;
      var top = $('.acm-video').offset().top;
      if (scrolltop > top) {
          javideoPlay()
      }
      });

    I attach the file so you can have a comparison.

    With this JS code, when you scroll page to that video section, it will automatically play. However, this solution is applied for Youtube video only.

    Regards


    1. style-1.php_.zip
    Juan Carlos Stauring Friend
    #1090874

    Thank you @saguaros that worked very nice!

    jc

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

This topic contains 2 replies, has 2 voices, and was last updated by  Juan Carlos Stauring 6 years, 7 months ago.

The topic ‘JACM Auto Play video’ is closed to new replies.