-
Notifications
You must be signed in to change notification settings - Fork 39
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
How to use "loadAudio" more than once ? #21
Comments
Did anyone ever figure this out |
I saw this error when I wanted to change it in html 'demo/audio/audio1.mp3' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, isolated-app, chrome-extension, chrome, https, chrome-untrusted.' I was able to change the sound when I put it in a project in visual studio ` <script src="~/Content/er/lib/echarts.js"></script> <script src="~/Content/er/src/js/circular-audio-wave.js"></script>
but I still haven't found how to change the gif file :( |
Does the file is hosted on the same website ?
If is not, the website that call the image will trigger CORS errors
Le mar. 9 juil. 2024, 14:34, serdar78 ***@***.***> a écrit :
… I saw this error when I wanted to change it in html
'demo/audio/audio1.mp3' from origin 'null' has been blocked by CORS
policy: Cross origin requests are only supported for protocol schemes:
http, data, isolated-app, chrome-extension, chrome, https,
chrome-untrusted.'
I was able to change the sound when I put it in a project in visual studio
`
@RenderBody()
Play
<script src="~/Content/er/lib/echarts.js"></script>
<script src="~/Content/er/src/js/circular-audio-wave.js"></script>
<script>
let wave = new CircularAudioWave(document.getElementById('chart-container'));
wave.loadAudio('Content/er/demo/audio/audio1.mp3');</script>
`
but I still haven't found how to change the gif file :(
—
Reply to this email directly, view it on GitHub
<#21 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APUD6YO7IMDYN3USTR4A6UDZLPKEHAVCNFSM6AAAAABJYP7OM2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJXGU3DGMZSHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I want to use loadAudio to replace the already set audio
The text was updated successfully, but these errors were encountered: