How to use "loadAudio" more than once ?
exatombe opened this issue · 3 comments
exatombe commented
I want to use loadAudio to replace the already set audio
MuiGoku123432 commented
Did anyone ever figure this out
serdar78 commented
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 :(
exatombe commented
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:
***@***.***>