How to embed a video file for a website so that it loops? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to embed a video file for a website so that it loops?

Does anyone know how to embed a video image (about 5 seconds long) for HTML so that the video image can look by itself on a webpage?

13th Jun 2019, 7:03 PM
Bruna Del Ciel
2 Answers
+ 3
You should do it like this: <video autoplay loop> <source ... > </video>
13th Jun 2019, 7:10 PM
Airree
Airree - avatar
+ 1
And for the source and video would I just add the URL? Another question, what if its a video recorded on an iPhone? How can I extract that source to put it into the code?
13th Jun 2019, 8:01 PM
Bruna Del Ciel