Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1142635

    Hi,
    I have a mp4 video on my page. Self hosted and inserted with the Avia builder. Enfold theme version 4.6.2
    The video loops. I would like to disable this.
    I found another thread with a fix but as I understand this was for an older Enfold version and this issue should have been resolved in the version I use.

    Can you help me out ?

    Thanks

    • This topic was modified 5 years ago by marcusss.
    #1143393

    Hi marcusss,

    We apologize for the delayed response.
    In your child theme, please do the following: https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb
    Then copy the video.php file from the Enfold theme to your child theme’s shortcodes folder.
    Finally edit video.php on your child theme and look for this code (line 347 in Enfold 4.6.2):

    $video_html_raw = avia_html5_video_embed( $src, $fallback_img );

    replace it with:

    $video_html_raw = avia_html5_video_embed( $src, $fallback_img, array( 'webm' => 'type="video/webm"', 'mp4' => 'type="video/mp4"', 'ogv' => 'type="video/ogg"' ), array( 'autoplay' => 0, 'loop' => 0, 'preload' => '', 'muted' => ''  ) );

    Best regards,
    Nikko

    #1143454

    Hi Nikko,

    Your solution works, thanks !

    #1143465

    Hi marcusss,

    We’re glad that we could help :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Avia builder self hosted video loops in Enfold 4.6.2’ is closed to new replies.