So I'm trying to embed a .mov
video to a website with the following:
<video src="myvideo.mov" controls></video>
the video when played shows a black screen and all I hear is the audio.
Tried with several videos with same .mov
extension but nothing works, what am I doing wrong?
You cannot see the video because, in HTML 5
, there are only 3 video types that are supported:
If you want the video to be shown, you need either of the video type.
What you can do is:
Once done, you can then update your code to this:
<video src="path/to/video-file.mp4" controls>
Your browser does not support the <code>video</code> element.
</video>
For more information on video element, refer this link and this link