Skip to content

Issue with displaying visualization using js cdn #53

Answered by foobar404
vitaminsofsalem asked this question in Q&A
Discussion options

You must be logged in to vote

Your right, the code above does not work as is, it might be due to merging code from other branches but im not sure. Currently im working on v2, which is completely different from the current version, so you might have to wait for that to be published, but here is another simple example that does not require your mic, maybe that will work.

let wave = new Wave(); 
let options = {
        type: "shine",
        colors: ["red", "white", "blue"]
}

wave.fromElement("audio_element_id", "canvas_element_id", options);

you just need a canvas element, and a audio element with an audio file in its src

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by foobar404
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants