Resolution to Sound (OGG) Issues with GoDaddy

0 favourites
  • 4 posts
From the Asset Store
Best soundtracks for any game. High quality and engaging assets.
  • I was having issues with sound once uploaded to GoDaddy on a test project. I found the solution and I think this will be helpful to others exporting on the native HTML5 Website settings.

    Create a web.config and put it in in the same directory as your index.html

    Here is what the contents of the file should look like when using IIS:

    <configuration>

    <system.webServer>

       <staticContent>

       <remove fileExtension=".ogg" />

         <mimeMap fileExtension=".EXTENSION" mimeType="application/ogg" />

       <remove fileExtension=".ogv" />

         <mimeMap fileExtension=".EXTENSION" mimeType="video/ogg" />

       <remove fileExtension=".oga" />

         <mimeMap fileExtension=".EXTENSION" mimeType="audio/ogg" />

       </staticContent>

    </system.webServer>

    </configuration>

    Here is what it would looke like in Apache using the .htacess file instead of web.config:

    Most servers (including those used by GoDaddy) by default don?t serve the appropriate MIME Types for OGG files. That being the case, you?ll need set the appropriate MIME Types for OGG files if you want HTML5 audio players to work correctly in Firefox. So for an Apache server, you would need to add the following to your .htaccess file:

    AddType audio/ogg .oga

    AddType video/ogg .ogv

    AddType application/ogg .ogg

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • One observation I have made is that after adding the aforementioned Web.Config to my HTML5 site Iphone5 defaults to Canvas2d instead of WebGL. I will follow up if I figure out how to address this through code.

  • Gillis - iOS does not currently support WebGL, so what you describe is normal.

  • Thanks Ashley.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)