IonDen / ion.sound

JavaScript plugin for playing sounds and music in browsers
http://ionden.com/a/plugins/ion.sound/en.html
MIT License
713 stars 154 forks source link

XMLHttpRequest cannot load file #63

Closed sergeytolkachyov closed 8 years ago

sergeytolkachyov commented 8 years ago

Hello! I tried to use ion.sound and got an error with loading files. I download example zip form your site http://ionden.com/a/plugins/ion.sound/en.html and copy and paste code from example files but it not working!

XMLHttpRequest cannot load file:///D:/Web/%D0%BE%D0%BD-%D0%BB%D0%B0%D0%B9%D0%BD%20%D0%B4%D0%B8%D0%BA%D…%82%D1%8B/2015%20%D0%B3%D0%BE%D0%B4/sounds/my_cool_sound.mp3?1446115717801. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.

in

Sound.load @ ion.sound.js:275 Sound.init @ ion.sound.js:228 createSound @ ion.sound.js:100 ion.sound @ ion.sound.js:125 (anonymous function) @ index.html:19

IonDen commented 8 years ago

Hi, ajax requests are not working on local computer. You should start any simpe server, like this: https://github.com/gruntjs/grunt-contrib-connect or this: https://www.apachefriends.org/index.html

sergeytolkachyov commented 8 years ago

Thank you!