In this tutorial I will show you the exciting new feature of HTML5. HTML5 is not yet an official standard, there are some problems with browsers to correctly show the effects of HTML5 new tags.
In HTML5 you can include your videos in a very simple manner but as I mentioned above this tag also have some compatibility issue with respect to browsers so here I will show you video tags that are compatible to all major browsers like Firefox,Chrome,Internet Explorer .
<!DOCTYPE HTML>
<html>
<body>
<video controls="controls">
<source src="AjaxUpdatePanel.mp4" type="video/mp4" />
<source src="AjaxUpdatePanel.ogv" type="video/ogg" />
</video>
</body>
</html>
In the above code snippet the video tag that is using .ogv video format will run your video in firefox browser without any problem and the video tag that is using .mp4 format will run your video in Internet Explorer 9 and in chrome as well.
So use above code and share your experience with me through comments.
Pingback: Play video for all browser using html5 | CodeReflex.net