Anyone have experience with Javascript old-school winamp embed player?

后端 未结 1 1029
一整个雨季
一整个雨季 2021-01-29 05:19

What i want to load a custom .wsz skin on page-load on my website. I still don\'t understand how to do it to make it work. Here a snippet with my code: https://codepen.io/cat999

相关标签:
1条回答
  • 2021-01-29 06:01

    Have you seen the Initialization portion of the docs?

    https://github.com/captbaritone/webamp/blob/master/docs/usage.md#initialize-the-javascript

    Try constructing Webamp by adding an initialSkin option:

    const webamp = new Webamp({
        initialTracks: [{
            metaData: {
                artist: "DJ Mike Llama",
                title: "Llama Whippin' Intro",
            },
            url: "https://cdn.rawgit.com/captbaritone/webamp/43434d82/mp3/llama-2.91.mp3",
            duration: 5.322286,
        }],
        initialSkin: {
            url: "https://s3.amazonaws.com/webamp-uploaded-skins/skins/dbaead7a819b238d48ca726abd0617bb.wsz"
        },
    })
    
    0 讨论(0)
提交回复
热议问题