Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by fulvio

I receive the following error when I use the following code:

HTTP "Content-Type" of "application/octet-stream" is not supported.

ig.Sound.use = [ig.Sound.FORMAT.MP3, ig.Sound.FORMAT.OGG];
ig.Sound.enabled = true;

This is happening on Firefox 12.0

Load of media resource http://localhost:2856/media/sounds/coin.ogg failed.

I can confirm that the sound file is in the correct folder as well. So that's not the problem. ;-)

1 decade ago by dominic

Your webserver is sending a generic MIME-Type for .ogg files, when it should be sending application/ogg. For Apache or nginx check the mime.types file and make sure it includes a line for the .ogg extension.

1 decade ago by fulvio

Quote from dominic
Your webserver is sending a generic MIME-Type for .ogg files, when it should be sending application/ogg. For Apache or nginx check the mime.types file and make sure it includes a line for the .ogg extension.


I am actually using Generic Handlers in C# within a Visual Studio web project to Save, Glob and Browse within Weltmeister. I have added the following to the Web.Config to ensure that ".ogg" extensions are sending application/ogg, but I still get the content-type error.

<system.webServer>
  <staticContent>
    <mimeMap fileExtension=".ogg" mimeType="application/ogg" />
  </staticContent>
</system.webServer>

1 decade ago by fulvio

Fixed by hosting my game within IIS and ensuring that the OGG mime-type is application/ogg
Page 1 of 1
« first « previous next › last »