Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1268856

    Servus, Hi Krisi-team,

    I followed this topic to solve the same problem – just play the video once and finish with last frame in color-section:

    https://kriesi.at/support/topic/how-to-stop-background-video-in-color-section-from-auto-looping/#post-712224

    In child theme I made a new folder ”shortcodes” with the ”section.php” modified as suggested from ”true” to ”false”. In functions.php I added this code:

    add_filter(‘avia_load_shortcodes’, ‘avia_include_shortcode_template’, 15, 1);
    function avia_include_shortcode_template($paths)
    {
    $template_url = get_stylesheet_directory();
    array_unshift($paths, $template_url.’/shortcodes/’);

    return $paths;
    }

    But nothing happend, the video is still looping as bevore.
    As the Tread ist already four years old, is there any new way that makes my whish work?

    best regards
    chris

    #1269252

    Hi Christian,

    The Color Section still uses:

    'video_loop'		=> true,

    for looping videos.
    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
      ( to be sure that we have enough time to debug ).
    5. Click ” Submit “.
    6. You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.

    When your issue is fixed, you can always remove the plugin!
    If you prefer to not use the plugin, you can manually create an admin user and post the login credentials in the “private data” field.

    Best regards,
    Nikko

    #1269306
    This reply has been marked as private.
    #1269966

    Hi,
    Sorry for the very late reply, and thanks for the login, it looks like you (*someone) added the “section.php” to your child theme, but the function to use it was commented out:

    /*
    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
    function avia_include_shortcode_template($paths)
    {
      $template_url = get_stylesheet_directory();
          array_unshift($paths, $template_url.'/shortcodes/');
    
      return $paths;
    }
    */

    I uncommented this function so your custom “section.php” will be used, and in my test it is now working, please clear your browser cache and check.

    Best regards,
    Mike

    #1270042

    Hi,
    thanks now this works,
    I even managed to make a transfer to the main web-side where this function will be needed.

    But just one more try to optimize it more:
    Is it possible to finish the video with the last picture/frame of the film as a still/picture,
    not as now, with (looping) and stopping with the first frame/picture after getting to the startpoint after loop,
    without running the whole video once more.

    Please see an example here: https://www.glademichelwirtz.com/team/

    Hope we can manage this too!
    Best regards,
    Chris

    #1270094

    Hi,

    This should be possible using a custom script that checks for the current position or time of the video., then manually pause it on a specified time. If you are using an mp4 or a locally hosted video, you can check for the timeUpdate event.

    // https://www.w3schools.com/tags/av_event_timeupdate.asp

    Example of the snippet can be found here.

    // https://kriesi.at/support/topic/stop-background-video-at-last-frame-and-keep-showing-it/#post-1181735

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.