I want to embed video in html page sothat I can play any multimedia file from my hard drive or from a url.I tried to create a web page with
<video src="test.mp4" controls width="320" height="240">
</video>
In chrome,the video plays without any problem.
However,the mp4 file is not recognized in firefox .It displays error message- 'no video with supported format or mimetype found'.
It so happens that most of my video files are .mp4 or .flv files.
If I put
<source src="test.flv" /> in the video element ,then both chrome and firefox fail to show it.
So,what should I do to play at least mp4 and flv files in both browsers?.
Any pointers /advice most appreciated.
From Mozilla’s page on browser-supported audio/video formats:
Short answer, Firefox doesn’t support mp4, as it’s not open source. But it does support multiple sources and will play the first one it supports.
Further, it doesn’t appear that swf or flv are supported by any browsers, since they are totally Adobe and require Flash Player, but the following should work around that:
Be aware that the above had
.swffile as data and value originally; I haven’t tested if.flvwill work on its own.