Comments (9)
Sorry I should add, in the console, I see:
from vue-audio-visual.
Hello,
Try to download your mp3 to the "public" folder and use it as:
<audio
src="/SoundHelix-Song-1.mp3"
ref="foo"
controls="true"
></audio>
To makes sure there are not CORS problems.
In my case it worked. May be that is your problem?
from vue-audio-visual.
Source should be:
src="/SoundHelix-Song-1.mp3"
from vue-audio-visual.
Ah - CORS issues then?
from vue-audio-visual.
That would be my guess. Your code worked on my localhost when I downloaded mp3 to public.
I am using Chrome.
from vue-audio-visual.
Ok, may I suggest that if a local mp3 is required that it be documented? (I don''t think it is, I could be wrong.)
from vue-audio-visual.
Well, it is not strictly required. It just it must follow the rules. If mp3 is from different host then CORS attribute has to be set in element. Also remote host has to send some additional header following CORS specs.
There is also props for the element that can set CORS attribute (cors-anonym):
https://github.com/staskobzar/vue-audio-visual#common-props
from vue-audio-visual.
Hi I am running into the same issue that only circle works with remote links. I have tried to put cors-anonym in many places but I cannot get it work.
Any update on how the problem can be solved? thanks !
from vue-audio-visual.
@dingming1994
I think it also depends on the source of the remote links. For example, they are supposed to send responses with header Access-Control-Allow-Origin: *
.
So the access to the link may be limited by the source.
There are not match control on the component side.
from vue-audio-visual.
Related Issues (20)
- MediaStream is not defined HOT 1
- Visualizer not visualizing audio with a url HOT 7
- How can i import vue-audio-visual to my project HOT 2
- Switch the local audio file and play it. Do you need to convert the file to blob? HOT 1
- AVBars Component's audio address, unable to use local audio files dynamically HOT 1
- Error with command: npm run dev HOT 1
- AVBars bar coloring depending on bars x axis position
- AVWave wrong slider positioning on short audio HOT 7
- AVWave playtime fixed position HOT 2
- waveform overwrites another when 2 wavforms are on screen. HOT 9
- [Vue warn]: Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function. HOT 1
- How to set width of av-line width to 100%? HOT 2
- Hide controls? HOT 2
- Events playing, paused , how to emit them? HOT 2
- Extraneous non-props attributes (ref-link) HOT 1
- When AVWaveform's src uses ref variables, the waveform cannot be displayed normally HOT 5
- Help me!!! Why can firefox display normally but chrome cannot? HOT 6
- For vue 2, after pausing and replaying, the music plays slower in a low key. HOT 9
- Failed to decode audio array buffer: DOMException: Failed to execute 'decodeAudioData' on 'BaseAudioContext': Unable to decode audio data HOT 2
- CDN ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-audio-visual.