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

    Hello,

    I have placed a video in the layer slider and when I click on the video it repeats, so it plays a loop from the beginning of the video.
    What can I do if the loop should start at frame 40 of the video every time I click on the video, i.e. not from the beginning, but from frame 40 onwards, what are the possibilities?

    #1364645

    Hey spee65,
    Thank you for your patience, if you are going to loop the video then your best option is to edit the video so it contains only the frames you wish, the layerslider doesn’t have an option to start a video at a certain frame. Perhaps other sliders do but I have not investigated this.

    But the HTML5 video element does have a wat to start video at 3 seconds, for example, by adding #t=3 to the source url, and the layerslider video layer uses this element, so you can add this like this:
    2022-09-11_001.jpg
    but if you are looping the video the second loop will start from the beginning not from the same frame.
    You can also use a start and end time like this: #t=3,6, but the video will stop playing and not loop.

    You can also use javascript to start the video at a frame, if the video’s ID is “myVideo” this would work:

    document.getElementById('myVideo').addEventListener('loadedmetadata', function() {
      this.currentTime = 4;
    }, false);

    but once again, this will not work if you loop the video, this javascript adds no benefit over the HTML5 function.

    Best regards,
    Mike

    #1364742

    Thanks for help!

    #1364744

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Videoloop Layerslider’ is closed to new replies.