I have put a video on my slider. It looks fine but it alwasy loops the video. I want to play the video only once.
Normally the loop is done with the HTML attribute "loop" but there is no "no-loop" attribute in HTML5. And there is - as far as I know - no "no-loop" in layerslider. So I think you've put the "loop" maybe into the javascript?
Is there a way to play it only once? And maybe again, if I slide back from another slide, but not when I keep the slide with the video.
Thank you for getting in touch with us. My name is Attila and I'm happy to assist you today. I appreciate your patience while we've been working towards your ticket.
Did you add the video as a normal video layer or as a slide background video ? Videos added as slide backgrounds will always be looped.
yes, the video is a layer not a slide background. I put a screenshot as attachement. So it should not loop, but it does. Could you please help? I want to use LayerSlider on multiple homepages and they will be based on video, so this function is very essential.
Thank you for the feedback. My colleagues and I will look into this to see if we can find anything that might be causing this, and get back to you shortly.
We've checked on it and you do use the video as slide background. As mentioned, videos added as slide backgrounds will always be looped no matter what. You will need to disable that option and only use it as a normal video layer.
Hej,
I have put a video on my slider. It looks fine but it alwasy loops the video. I want to play the video only once.
Normally the loop is done with the HTML attribute "loop" but there is no "no-loop" attribute in HTML5. And there is - as far as I know - no "no-loop" in layerslider. So I think you've put the "loop" maybe into the javascript?
Is there a way to play it only once? And maybe again, if I slide back from another slide, but not when I keep the slide with the video.
Here is the code I put into the video window:
<video width="800" height="1200" preload="metadata" autoplay="1" muted>
The site is still in local development so I can not provide a link to it.<source src="/layer/wp-content/uploads/2018/06/040-AE.mp4" type="video/mp4">
</video>
Can you help?
Tnx in advance, Alexander
Hello Alexander,
Thank you for getting in touch with us. My name is Attila and I'm happy to assist you today. I appreciate your patience while we've been working towards your ticket.
Did you add the video as a normal video layer or as a slide background video ? Videos added as slide backgrounds will always be looped.
Hello Attila,
yes, the video is a layer not a slide background. I put a screenshot as attachement. So it should not loop, but it does. Could you please help? I want to use LayerSlider on multiple homepages and they will be based on video, so this function is very essential.
Tnx, Alexander
Thank you for the feedback. My colleagues and I will look into this to see if we can find anything that might be causing this, and get back to you shortly.
We've checked on it and you do use the video as slide background. As mentioned, videos added as slide backgrounds will always be looped no matter what. You will need to disable that option and only use it as a normal video layer.