Home > Blockchain >  Adding video to a webpage using html
Adding video to a webpage using html

Time:07-14

I tried to add a video to a webpage. But it doesn't work. can anyone help me to solve this error

<Video width="1000" height="1050" autoplay>
<source src="file:///F:/Yohani/Works/Audio and video editing/Programming.mp4" type="video/filetype">
</Video>

CodePudding user response:

I would suggest adding the video in the same directory as your file. Then all you have to do is add it's name in the src and change type to "video/mp4"

Your code should look like this:

<Video width="1000" height="1050" autoplay>
<source src="Programming.mp4" type="video/mp4">
</Video>

CodePudding user response:

<video width="320" height="240" controls>
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
</video>

you should try this

  • Related