IIS failing to serve MP4 other than to a desktop browser

I’m using the HTML5 video tag as follows:

<html>
    <body>
        <video>
            <source src="https://192.168.0.101/bunny.mp4" type='video/mp4' /> 
        </video>
    </body>
</html>

I’ve got an IIS mime-type for .mp4 set up as video/mpeg, and I’m serving this over https. The video plays fine while using firefox on a desktop, but when I try on a mobile device, the page loads but the video does not. As a quick test I’ve installed xampp and put the same html and mp4 file in the htdocs directory and it served it up no problem.

I’ve searched high and low, but beyond adding in a mime-type for IIS, I can not find any other suggestions why this may not be working.

Answer

Attribution
Source : Link , Question Author : R4D4 , Answer Author : Community

Leave a Comment