If you only care about music (not videos) then you might also have a look at https://webamp.org/
You don't even need to "compile" or do anything fancy to "integrate" it : just include it (of course you might generate the playlist in your app) ! e.g.
<!DOCTYPE html>
<html><head><meta charset="UTF-8"><title>Music</title></head>
<body>
<div id="app"></div>
<script src="https://unpkg.com/webamp"></script>
<script>
const webamp = new Webamp();
webamp.setTracksToPlay([
{url: "http://example.com/The%20Gathering%20-%20Travel.mp3", defaultName: "The Gathering - Travel", duration: 1.0, metaData: {title: "The Gathering - Travel", artist: " "}, },
{url: "http://example.com/Muse%20-%20Plug%20In%20Baby.mp3", defaultName: "Muse - Plug In Baby", duration: 1.0, metaData: {title: "Muse - Plug In Baby", artist: " "}, }, ]);
webamp.renderWhenReady(document.getElementById("app"));
</script>
</body></html>