0
Hello
I put my video in HTML but the video does not appear with play button, can explain me what to put to be able to play the video?
<video src="./videos/video2exemplo.mp4" type="video/mp4" width="100%"></video>
0
Hello
I put my video in HTML but the video does not appear with play button, can explain me what to put to be able to play the video?
<video src="./videos/video2exemplo.mp4" type="video/mp4" width="100%"></video>
1
The ideal is to follow the model below, and also to make explicit the attribute controls
on the tag <video>
Your tag <video>
is formatted "off the charts" as it does not have a <source>
inside... maybe that’s it... (you can even put the src
on the tag video
, but use a source
is a more modern way and you can put a fallback
)
Try with this format below that I believe will solve
<video width="100%" controls>
<source src="./videos/video2exemplo.mp4" type="video/mp4">
</video>
Browser other questions tagged html css
You are not signed in. Login or sign up in order to post.
It worked, as soon as I could get it right.
– David Mv
@Davidmv was worth the young force
– hugocsl
Know any site where I can know some controls to give the video how to change the volume and have play in the center?
– David Mv
Dude, I have, I think you already know W3schools, they have an excellent amount of material even more about HTML, here is the page referring to the subject: https://www.w3schools.com/tags/att_video_controls.asp Here is also a tutorial on how to use these controls: https://developer.mozilla.org/en-US/docs/Web/HTML/Using_HTML5_audio_and_video
– Absolver
@Davidmv think what you want is a custom video player not to be in the hand of the native browser player right. There are several models out there. Here in Codepen itself has a plethora of templates ready https://codepen.io/search/pens?q=video%20player&page=1&order=popularity&depth=Everything But look for tutorials not to be in the hands of others and be able to do the I know the way you want https://www.youtube.com/watch?v=mUW3IqpAtH0. And if you want here’s an https://videojs.com plugin/
– hugocsl