we use the Uber Theme template. We have an ACM Module using Hero: style-4. There is no audio in the video. It's meanth to play in the background. It used to automatically play when the page loads. It no longer does. We try on both youtube and vimeo. How can we get the video to autoplay again? Thanks!

Nevermind! I figured it out.

Go to templates/uber/acm/hero/tmpl/style-4.php

Replace

       $video_src = '//player.vimeo.com/video/' . trim($arr[1]) . '?title=0&byline=0&portrait=0&autoplay=1&loop=1';
      $video_link = trim($arr[1]);
      break;
    case 'youtube':
      $video_src = '//www.youtube.com/embed/' . trim($arr[1]) . '?playlist=' . trim($arr[1]) . '&autoplay=1&loop=1&html5=1';
       $video_link = trim($arr[1]);
      break;
    default:
      break;

with

          $video_src = '//player.vimeo.com/video/' . trim($arr[1]) . '?title=0&byline=0&portrait=0&autoplay=1&loop=1&muted=1';
          $video_link = trim($arr[1]);
          break;
        case 'youtube':
          $video_src = '//www.youtube.com/embed/' . trim($arr[1]) . '?playlist=' . trim($arr[1]) . '&autoplay=1&loop=1&html5=1&muted=1';
           $video_link = trim($arr[1]);
          break;
        default:
          break;
Ninja locked the discussion.
Write a Reply...
You need to Login to view replies.