Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External source for audio file #7

Closed
LauraPiccolo opened this issue Aug 5, 2020 · 3 comments
Closed

External source for audio file #7

LauraPiccolo opened this issue Aug 5, 2020 · 3 comments

Comments

@LauraPiccolo
Copy link

Hi,
I am trying to generate a player from an audio that has an external source as in the following example:

<audio id="audio" src='https://bucketeer-a2765e62-ceca-4f5b-9eba-dcfd3a02354e.s3.amazonaws.com/public/motherfucouer/1.mp3' type="audio/mpeg" />

The audio source is playing, and the player is generated but the waves won't create themselves.
I checked an it works (the waves appear) with a local file. Do you have an explanation and/or a solution for me?

Thank you!

@zhw2590582
Copy link
Owner

Please open the console to see if there are any errors reported, most likely because of cross-domain issues

@LauraPiccolo
Copy link
Author

There are no errors reported. As I told you the audio file is loaded properly, and I am able to play it ...
If there is a cross-domain issue related to WFPlayer it's not visible in the console.

@zhw2590582
Copy link
Owner

I tested it, you need to add cors option:

var wf = new WFPlayer({
  container: document.querySelector("#waveform"),
  cors: true
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants