The problem I am having is that I am unable to get mp4 videos to run via a video tag.
The server is IIS 7.5 on Win7 Ultimate.
The htm in the file is rather simple and vanilla:
<video width="360" height="240" controls="controls" >
<source src="test.mp4" type="video/mp4" />
</video>
In "Internet Explorer" the tag renders a black box with a red cross.
In Firefox the tag renders as a grey box with a light-grey cross and the words "No video with supported format and MIME type found.".
I know what you're thinking - add the MIME type. I have done this two different ways with no success; first I tried adding the MIME type in IIS, and then I have tried adding via the web.config with
<staticContent>
<remove fileExtension=".mp4" />
<mimeMap fileExtension=".mp4" mimeType="video/mp4"/>
</staticContent>
Neither of these made a difference. I have also typed the .mp4 file directly into the address bad and both IE and firefox are able to play it. Furthermore I have gone to websites that have use 'video' tag in both IE and firefox and they play the videos just fine.
Can somebody please assist me in why this wont play, and what I can do to get it to play?
Thanks
If your mp4 video does not play in the web browsers and devices, it's probably because the video is not HTML5 compatible. You can view this tutorial to convert the video file to HTML5 compatible: How to convert video to HTML5 compatible.
If your browser error "HTML5 video file not found", it means that your browser is not up to date or website pages does not have a suitable video codec. It would help if you communicated with the developer to solve the issue and install all the required codecs.
try adding the muted attribute to your video element. Most modern browsers don't allow autoplay without it. that did it…
Definitely check Chrome/Safari as suggested. Firefox doesn't support MP4 files through HTML5 video. You need a WEBM file or a fallback flash player to support Firefox (which I'm assuming Leanback does).
Overall it sounds like an issue with your version of IE9, and might be limited to your machine. Does the leanback player's video work in IE9 for you? Or the video on videojs.com? I've tested the latter myself in IE9 multiple times.
Otherwise there could be corruption in your mp4 file that IE9 can't support. I explained this more in another question.
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