staskobzar / vue-audio-visual

VueJS audio visualization components
MIT License
687 stars 109 forks source link

Unable to get assignment after network address #105

Closed XTH1996 closed 2 years ago

XTH1996 commented 2 years ago

Why can't addresses requested via Ajax be rendered, image image This address is correct

staskobzar commented 2 years ago

make sure that you can play this address in your browser in another tab. Does it work when you put address in the component element prop "audio-src"?

If you dynamically assign address then it should be assigned before component is rendered. for example:

<av-waveform v-if="urlPath" />
...
...
if (ok) {
   this.urlPath = 'http://......'
}

Another problem can be different sources, when page base URL address is different from audio file base URL. then you can try to set cross-origin setting.

XTH1996 commented 2 years ago

Thank you very much! I have solved the problem!