I just want to practice by editing an html file on my local computer with image and video (ogv) files in the same local directory, but when I try to open a browser (latest version of Firefox) on the html file, it complains “No video with supported format and MIME type found”. As I’ve been reading on the Internet, most of the solutions say to modify the .htaccess file. So is there no way at all to embed videos in an html file just on my computer (not running a web server) and get it to work?
Edit: What I have:
<video width="320" height="240" controls="controls">
<source src="media/gizmo.ogv" type="video/ogv" />
</video>
Another edit:
OK, it works on my local machine if I take off the type="video/ogv" so I guess I’ll leave that out of the source tags while I’m working on my local machine and put it back in and do the .htaccess stuff if I ever actually put something on a web server.
In your source tag of the video tag use
That should work.
Even better make it as below
It will show a message for older browsers that do not support the
videotag. The differenct video formats supplied because not all browsers support all formats.Additional: If you are going to use a webserver, make sure the webserver also supports these mimetypes