I'm making a simple dynamic audio player with jquery / js.
The user adds audio tracks locally and they get added into a playlist.
On double click, the song plays, and on double click the song stops.
There is an equalizer, forked from: https://codepen.io/chi-hin-leung/pen/VwppqLL
Scenario: When the user double clicks to play the song, a createMediaElementSource is created.
Problem:
The equalizer doesnt work and throws an error. (screenshot)
Ive uploaded the code on codepen. & also on a test server.
mediaElement = trackElement;
console.log("๐ MEDIA ELEMENT: ", mediaElement);
sourceNode = context.createMediaElementSource(mediaElement);
console.log("๐ SOURCE: ", sourceNode);
PS: view on pc please