Resolution to Sound (OGG) Issues with GoDaddy

Get help using Construct 2

Post » Wed Oct 10, 2012 8:41 pm


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 dont serve the appropriate MIME Types for OGG files. That being the case, youll 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


Gillis2012-10-15 09:33:15
Image
B
35
S
13
G
9
Posts: 142
Reputation: 7,340

Post » Thu Oct 11, 2012 11:14 pm

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.Gillis2012-10-11 23:15:00
Image
B
35
S
13
G
9
Posts: 142
Reputation: 7,340

Post » Fri Oct 12, 2012 12:11 am

@Gillis - iOS does not currently support WebGL, so what you describe is normal.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,630

Post » Fri Oct 12, 2012 12:29 am

Thanks Ashley.Gillis2012-10-13 04:48:09
Image
B
35
S
13
G
9
Posts: 142
Reputation: 7,340


Return to How do I....?

Who is online

Users browsing this forum: selaus and 0 guests