kelvinau/circular-audio-wave

How to use "loadAudio" more than once ?

exatombe opened this issue · 3 comments

I want to use loadAudio to replace the already set audio

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

`
@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 :(