-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Wavesurfer createElement #2101
Comments
Try |
Where would I add it? Should I add it for const wavesurfer = document.createElement('div')? Also, what is opus? |
When you create a new waveform you specify its container, and you are setting it to When you create the div which contains the waveform, instead of giving in the id "waveform", do something like this:
And then you specify that uniqueID when you use the function WaveSurfer.create and give it a container. |
Sorry, we can't make your app/website for you. Just make unique containers for each wavesurfer, how you do that is up to you. |
I am trying to implement wavesurfer in this little project that I am doing.
![Cattura](https://user-images.githubusercontent.com/59843905/97487524-5aa94000-1933-11eb-8c89-6e999f7f7490.JPG)
It is a web recorder, I am trying to make the wavesurfer a const that would move with all my other const in the javascript.
I will attach some pics and code because it is pobably easier to visualize this than try to explain it.
As you can see the wave sound does not follow the web player. What I want is the wave sound of the web player with the button and then another wave with its web player and buttons.
What I tried to do is make the wavesurfer as the other consts (commented code in the pics) but it does not work anybody can help me.
![Cattura2](https://user-images.githubusercontent.com/59843905/97487873-dacfa580-1933-11eb-9d79-7f82f59141d2.JPG)
![Cattura3](https://user-images.githubusercontent.com/59843905/97487871-dacfa580-1933-11eb-85f1-8e4a65f3301a.JPG)
The text was updated successfully, but these errors were encountered: