Azure not handling video files


This is a generic azure issue, for iis to be able to recognize video file types we have to add video file extensions, now that you put configureiis.cmd (1.6) it is possible to add these lines inside the cmd and azure will be able to run ok with videos.

%windir%\system32\inetsrv\appcmd.exe set config -section:staticContent /+"[fileExtension='.mp4',mimeType='video/mp4']"

%windir%\system32\inetsrv\appcmd.exe set config -section:staticContent /+"[fileExtension='.m4v',mimeType='video/mp4']"

%windir%\system32\inetsrv\appcmd.exe set config -section:staticContent /+"[fileExtension='.ogg',mimeType='video/ogg']"

%windir%\system32\inetsrv\appcmd.exe set config -section:staticContent /+"[fileExtension='.webm',mimeType='video/webm']"


sebastienros wrote Oct 15, 2012 at 7:41 PM

Currently you can register those mime types in your web.config file, and it will be used when saving files in blobs using the media picker. Not sure we should add that in this script, and also by default. TBD

fotisgpap wrote Oct 16, 2012 at 12:06 AM

Its just a proposition for those who want to add video files or any mime types, if you just put them in your web.config, azure will not handle them correctly and if you try to view them with some html 5 video players like sublimevideo.net. the browser will try to download them instead of play them in place. Storage explorer also identifies them as unknown.
This is a workaround.

sebastienros wrote Oct 16, 2012 at 1:51 AM

I meant that this is a feature in Orchard that when using the media types in the web.config, it will save the mimetype to the blob's metadata itself and Azure will correctly return the appropriate mimetype.

sebastienros wrote Oct 16, 2012 at 8:16 PM

To be discussed later