Hey,
I’m having some troubles getting the callbacks to work within the .init function. I have it setup as so
amplitude.init({
callbacks: {
initialized: function(){
console.log("initialised")
},
stop: function(){
console.log("Audio has been stopped.")
}
}
});
Neither these callbacks are firing, but everything else is working as expected (I’m loading songs using .addPlaylist() later on).
I’ve also noticed a few public functions aren’t working. Could anyone shed some light here?
Thanks, Harry.
Hey @harryfrancis! Thanks for reaching out. @danpastori’s responses might be a little delayed because his father unexpectedly passed away earlier this month. He’s been back with family and away from the keyboard as he helps pick up the pieces. You can read about it in detail here.
He’ll hopefully have some time to review your question soon!
Hi @harryfrancis ,
The public methods and callbacks should be fixed in this release: Release v5.3.0 · serversideup/amplitudejs · GitHub . Let me know how that works for you and if you have any other questions! There was a bug with binding events to the audio element after song changes and initialization.