Hi all,
For some reason the following code does nothing at all when a track reaches the end:
$('.wp-playlist .mejs-mediaelement audio').on('ended', function (event) { console.log('ended'); });
I’m not able to do anything at all with the playlist and js in sage. The following doesn’t work either:
$('.wp-playlist-item').on('click', function (event) { console.log('clicked'); });
I have lots of other working javascript in this project. I’m putting it in main.js and have tried it in both the home and common init functions.