Audio playlist with javascript arrays

This free Hype Template shows how to use a “multidimensional” array to change the contents of elements…

…and there's a video…

As for the audio, I might use Howler.js (to start and stop the audio) if I was working on such a project.

I haven't put the two together, but it looks like there was discussion about Howler over here… Create Audio playlist with Howler.js

Just theoretically imagining how the project could work, the challenge would be managing the playlist while grabbing data from the array. That's basically some JavaScript. And if you're at that level of coding, you might not need Howler.

Now that I think about it, I actually did something like this already without Howler. Although, I was using Swift to get a list of songs to play and then using Swift to play those songs…

…it's a similar idea as the Multilingual template. Grab the data, then change the content in specific elements.

1 Like