I have a simple html page in which i am running video using html5 tags, when i run that page using firefox it runs the page and video properly. But when i run this page by setting the apache server using localhost it doesn't run. What could be the issue, what settings are required.
This is the path of my 'local-host' :
And the code of my index.html page is :
<img src="index.jpeg"> <video controls preload="auto" loop> <source src="test.ogv" type="application/ogg; codecs="dirac, vorbis"" /> <source src="test.mp4" type="video/mp4; codecs="avc1.42E01E, mp4a.40.2"" /> </video> </div> </form>
Should i have to set MIME type for apache server. I am new to linux so please give me code suggestions quickly.