mdiamond24
(Martin Diamond)
February 21, 2017, 4:06pm
#1
Its my first post Wondering how I can stop a background video from looping?
http://inhaus-legal.webflow.io/home-v2
aaronocampo
(Aaron Ocampo)
February 21, 2017, 10:17pm
#2
Why would you want a background video?
Just asking to facilitate the process of creating a solution to your problem
mdiamond24
(Martin Diamond)
February 21, 2017, 10:59pm
#3
All I want is the video to autoplay behind the brand logo and stop(my client want it to stop)once its done… but open to any other solution!
samliew
(webflowexpert.com)
February 21, 2017, 11:12pm
#4
Use embed code with HTML <video>
tag and set attribute to autoplay. However using this method, you will need to host your video elsewhere.
1 Like
aaronocampo
(Aaron Ocampo)
February 21, 2017, 11:17pm
#5
That is exactly what I was about to suggest.
@samliew
mdiamond24
(Martin Diamond)
February 21, 2017, 11:17pm
#6
Using the background video component is perfect and its autoplay, my only problem is that I want it to stop once its finish… In my link above, its perfect, but its looping… Do you have a code to stop it?
samliew
(webflowexpert.com)
February 21, 2017, 11:25pm
#7
See if this works for you
I just tried following option and seams to work on Win 10 Chrome, Firefox and Edge:
Select the video from the navigator and in settings, give the video an ID (in my example:“Video”).
[image]
Now insert following code in the body tag of the page:
<script type="text/javascript"> document.getElementById('Video').removeAttribute("data-loop"); </script>
Note that the getElementByID(‘Video’) is the ID of the actual video.
[image]
Let me know if this is a workaround to what you guys want.
1 Like
mdiamond24
(Martin Diamond)
February 22, 2017, 2:24pm
#8
Samuel, your a genius, its working perfectly… How can I send you $ for the help, for your time. Its really important for me. My client is happy @samliew
1 Like
samliew
(webflowexpert.com)
February 22, 2017, 10:08pm
#9
Hi @mdiamond24 , you do not have to. Glad to know it worked for you.
system
(system)
closed
April 23, 2017, 1:18pm
#10
This topic was automatically closed after 60 days. New replies are no longer allowed.