We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm trying to get sounds with url address when using with a mp3 file. But when I write url It seems like doesn't work but only work in case of existing as assets of project source file.
I want to know how can I use load mp3 with url .
Answers
According to loadSound()'s reference, it's advisable to load from local sources:
http://p5js.org/reference/#/p5.SoundFile/loadSound
Much probably when dealing w/ remote sources, we may end up stumbling w/ CORS related bugs:
https://en.Wikipedia.org/wiki/Cross-origin_resource_sharing
https://forum.Processing.org/two/discussions/tagged/cors
Appreciate your answer. That means currently impossible to use with url for loading mp3 file?currentl. Right?
If it's indeed CORS-related and you really need to access those resources remotely, rather than manually loading them to your local system, you may try out CrossOrigin.me:
https://GitHub.com/technoboy10/crossorigin.me