-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught (in promise) DOMException: Failed to load because no supported source was found #60
Comments
Gonna try an angular integration tomorrow to see if i can reproduce. |
ok, thanks |
I have doubts about your mp3 URL. it may be "/assets/rythm.mp3" or |
I have tried to use an absolute path but didn't work |
Could you try with this one ? (just tell me if there is CORS) https://okazari.github.io/Rythm.js/samples/rythmC.mp3 |
It's working on Edge with this url. I get the following error on Chrome:
|
As I suspect this looks like a loading issue with your URL. I don't know
yet how to expose statics on Angular. I'll check tomorow. Anyway i should
handle this error and output a better message in Rythm.
If you can find the right URL to access your file in your browser, it
should work with this same URL with Rythm.
|
ok, thanks a lot for your time! |
Depending on your build chain @stefanos- I'd suggest using something like https://github.com/webpack-contrib/url-loader to generate the correct URL string to pass in to the library at run time |
I did try on my angular poc... I did eject the conf to add "mp3" in the url-loader regex into the webpack config but i'm still running into a build issue module "./rythmC.mp3" not found... |
So, the easiest solution that worked for me here is : |
Closing, no activity in more than 1 month. |
Hello, I tried to use this library into an angular 2 project but I get the following error:
Uncaught (in promise) DOMException: Failed to load because no supported source was found
At the app.component,ts of my app I added the following commands:
Unfortunately, I'm not able to give you more information because I don't know which is the problem and I didn't find something to help me.
Has anyone the same problem or does anybody has any idea about this error?
Thank you!
The text was updated successfully, but these errors were encountered: