Create Audio playlist with Howler.js

A happy new year everyone,

I would like to create a various audio playlist (see pic) with Hype and I would like to use Howler.js for this. My main goal is to unload the audio when playing a new one (see this link)

Hans-Gerd Claßen's howler.js template is great way to start

The links for all files here
Thanks in advance,

found this one: Multitrack sound and mute button - audio - Tumult Forums

it shows how to manage instances of the howler-sound-objects ... should give you a go ...

1 Like

This is great example, thank you. However I would like to play one audio at a time meaning "stop all sound when playing a new sound" (overlapping audio not allowed). Perhaps something like this

function newSong(url) {
if (sound != null) {
sound.stop();
sound.unload();
sound = null;
}
sound = new Howl({
src: [url]
});
sound.play();
}

The example is about how to handle instances .... you'd need that ..

please get in touch with howlers documentation to adapt it to your needs ...
you'll need some basic js-skills if you like to use a js-library

1 Like

thanks

if i remember it right @Raleigh has done a project using Howler. perhaps he is willing to share his insights with you¿ :slight_smile:

2 Likes

Thanks @h_classen,
Replied via private message!
rg

2 Likes