Sound not working

Monkey Targets Forums/HTML5/Sound not working

Yoda(Posted 2015) [#1]
When I compile and run from Localhost, Sound works fine (Google Chrome, playing OGG files).

When I load monkeygame.html into Google Chrome directly, everything works, but no sound.

Why that? How to solve it? Any setting to do here?


skid(Posted 2015) [#2]
When launching chrome try adding the --allow-file-access-from-files argument.


Jello Fox(Posted March) [#3]
Skid, could you or someone else explain what your post means a bit more to me? I have the same problem and dont quite get what your solution is..


Soap(Posted March) [#4]
The original post is about needing a fileserver to load the files properly. --allow-file-access-from-files is a configuration option when opening the Chrome browser to make your browser a little less secure, don't do it, it's not a user solution, and will open your computer up to attack.


Jello Fox(Posted March) [#5]
Thank you.