I was looking at HTML5 VIDEO tag and it turned out it's a mess.
Patents and conflicting interests made this into a situation that you have to encode your video into 3 formats to be sure that will play at least in modern browsers; older browsers are even bigger mess.
Under Mime types in IIS Feature View, you need to add:
Android needs extra help, as per http://www.broken-links.com/2010/07/08/making-html5-video-work-on-android-phones/
<script type="text/javascript">
var video = document.getElementById('video');
video.addEventListener('click',function(){
video.play();
},false);
</script>
Patents and conflicting interests made this into a situation that you have to encode your video into 3 formats to be sure that will play at least in modern browsers; older browsers are even bigger mess.
- MP4 will work in IE, and that's pretty much only one that will work there.
- Ogg/Theora is neccessary for Firefox and will work in Opera too.
- Webm is supported by Chrome but Google can drop that format any time since they bought the company that created the format.
Under Mime types in IIS Feature View, you need to add:
- extension .mp4
type: video/mp4 - extension .ogv
type: video/ogg - extension .webm
type: video/webm
Android needs extra help, as per http://www.broken-links.com/2010/07/08/making-html5-video-work-on-android-phones/
<script type="text/javascript">
var video = document.getElementById('video');
video.addEventListener('click',function(){
video.play();
},false);
</script>