Coder Social home page Coder Social logo

Comments (9)

cfjedimaster avatar cfjedimaster commented on June 5, 2024

Sorry I should add, in the console, I see:

image

from vue-audio-visual.

staskobzar avatar staskobzar commented on June 5, 2024

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.

staskobzar avatar staskobzar commented on June 5, 2024

Source should be:
src="/SoundHelix-Song-1.mp3"

from vue-audio-visual.

cfjedimaster avatar cfjedimaster commented on June 5, 2024

Ah - CORS issues then?

from vue-audio-visual.

staskobzar avatar staskobzar commented on June 5, 2024

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.

cfjedimaster avatar cfjedimaster commented on June 5, 2024

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.

staskobzar avatar staskobzar commented on June 5, 2024

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.

dingming1994 avatar dingming1994 commented on June 5, 2024

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.

staskobzar avatar staskobzar commented on June 5, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.