Sound on Chrome break my file

58 views
Skip to first unread message

dark...@gmail.com

unread,
May 26, 2014, 10:38:41 AM5/26/14
to lim...@googlegroups.com
If i integrate in my file some audio i can use the file only on Firefox, on Chrome it give these errors:

XMLHttpRequest cannot load file:///C:/Limejs/prova/sound/start.wav. Cross origin requests are only supported for HTTP. prova.html:1
XHR error loading file: sound/start.wav audio.js:96
Uncaught NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'file:///C:/Limejs/prova/sound/start.wav'.


I'm using this code:
goog.require('lime.audio.Audio');

var start = new lime.audio.Audio('sound/start.wav');

start.play();

dar...@gmail.com

unread,
Apr 15, 2015, 5:16:48 PM4/15/15
to lim...@googlegroups.com, dark...@gmail.com
Hi, have you find a solution??
I have the same problem 

Vladyslav Kulyk

unread,
May 16, 2015, 4:58:45 AM5/16/15
to lim...@googlegroups.com, dark...@gmail.com, dar...@gmail.com
Hi,

I use this lib for sounds  http://www.schillmania.com/projects/soundmanager2
have no experiens with  lime.audio.Audio  because I don't know about it :)
May be in next game will try to use Audio from LimeJS
Reply all
Reply to author
Forward
0 new messages