I just started learning HTML5, I started with normal text file and changed its extension to .html and added the below code.
<!DOCTYPE HTML>
<html>
<body>
<video width="320" height="240" controls="controls">
<source src="D:\Movies\Troy (2004).avi" type="video/avi" />
Your browser does not support the video tag.
</video>
</body>
</html>
I am using FireFox 4.0.
Firefox doesn't support the avi container format
Firefox doesn't support the avi format. Only ogg and webm are supported as also stated in this topic.
Edit: Peter Paul Koch has an more detailed overview of supported codecs in the different browsers available nowadays. See the article here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With