If it is working locally, but not live, the problem is likely that the live web server is not configured to serve up those file types. Try adding this in your web.config under the system.webServer
entry:
<staticContent>
<mimeMap fileExtension=".ogg" mimeType="application/ogg" />
<mimeMap fileExtension=".oga" mimeType="audio/ogg" />
<mimeMap fileExtension=".ogv" mimeType="video/ogg" />
<mimeMap fileExtension=".webm" mimeType="video/webm" />
<mimeMap fileExtension=".mp4" mimeType="video/mp4" />
</staticContent>
In some versions of IIS, unknown file extensions (like ogg
, webm
) will cause a 404, which is why you have to define the mime type.