How can I call video using html? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I call video using html?

21st Jun 2020, 7:27 AM
Alian Jutt
Alian Jutt - avatar
3 Answers
+ 3
Taken from here: https://www.w3schools.com/html/html5_video.asp <video width="320" height="240" controls> <source src="movie.mp4" type="video/mp4"> <source src="movie.ogg" type="video/ogg"> Your browser does not support the video tag. </video> This embeds a video with dimensions 320 x 240, and attachs controls to it. It allows loading the video in two formats: "mp4" and "ogg". Whichever one that gets used depends on browser compatibility with either format.
21st Jun 2020, 7:30 AM
Felipe BF
+ 1
<video controls> <source src="" type=""> </video>
21st Jun 2020, 12:12 PM
Chinyere Unamba
Chinyere Unamba - avatar