Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have the strange trouble. There are .mp3 and .ogg files in the folder of web application in my server (IIS7.5, Windows Server 2008 R2). Web application has flash player. It can play .mp3 only, but it don't play .ogg-files. Same web application in other server works fine. Have anybody idea? Thanks.

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

Add the OGG MIME type in your web.config. Something like:

<configuration>
    <system.webServer>
        <staticContent>
            <mimeMap fileExtension=".m4v" mimeType="video/m4v" />
            <mimeMap fileExtension=".ogg" mimeType="audio/ogg" />
            <mimeMap fileExtension=".oga" mimeType="audio/ogg" />
            <mimeMap fileExtension=".ogv" mimeType="video/ogg" />
            <mimeMap fileExtension=".webm" mimeType="video/webm"/>
        </staticContent>
    </system.webServer>
</configuration>

See:

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.