How to use webamp - 2 common examples

To help you get started, we’ve selected a few webamp examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github captbaritone / webamp / examples / webpack / index.js View on Github external
import Webamp from "webamp"; // eslint-disable-line import/no-unresolved

new Webamp({
  initialTracks: [
    {
      metaData: {
        artist: "DJ Mike Llama",
        title: "Llama Whippin' Intro"
      },
      url:
        "https://cdn.jsdelivr.net/gh/captbaritone/webamp@43434d82cfe0e37286dbbe0666072dc3190a83bc/mp3/llama-2.91.mp3",
      duration: 5.322286
    }
  ]
}).renderWhenReady(document.getElementById("app"));
github ShizukuIchi / winXP / src / WinXP / apps / Winamp / index.js View on Github external
useEffect(() => {
    const target = ref.current;
    if (!target) {
      return;
    }
    webamp.current = new Webamp({
      initialTracks,
    });
    webamp.current.renderWhenReady(target).then(() => {
      target.appendChild(document.querySelector('#webamp'));
    });
    return () => {
      webamp.current.dispose();
      webamp.current = null;
    };
  }, []);
  useEffect(() => {

webamp

Winamp 2 implemented in HTML5 and JavaScript

MIT
Latest version published 3 years ago

Package Health Score

63 / 100
Full package analysis

Popular webamp functions