mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-18 17:13:47 +00:00
- Bump package.json and Webamp.VERSION to 2.3.0 - Move changelog Unreleased items into 2.3.0 section - Update "unreleased" references in docs to v2.3.0 - Switch all examples from renderWhenReady to renderInto - Update multipleMilkdropPresets to use stable @^2 instead of @next - Update lazy example to webamp@^2.3.0 - Update release skill with version bump and changelog steps Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
43 lines
1.6 KiB
HTML
Executable file
43 lines
1.6 KiB
HTML
Executable file
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
</head>
|
|
|
|
<body>
|
|
<div id="app" style="height: 100vh; position: relative">
|
|
<!-- Webamp will render as a child of this div -->
|
|
</div>
|
|
<script type="module">
|
|
import Webamp from "https://unpkg.com/webamp@^2/butterchurn";
|
|
const webamp = new Webamp({
|
|
initialTracks: [
|
|
{
|
|
metaData: {
|
|
artist: "DJ Mike Llama",
|
|
title: "Llama Whippin' Intro",
|
|
},
|
|
// NOTE: Your audio file must be served from the same domain as your HTML
|
|
// file, or served with permissive CORS HTTP headers:
|
|
// https://docs.webamp.org/docs/guides/cors
|
|
url: "https://cdn.jsdelivr.net/gh/captbaritone/webamp@43434d82cfe0e37286dbbe0666072dc3190a83bc/mp3/llama-2.91.mp3",
|
|
duration: 5.322286,
|
|
},
|
|
],
|
|
requireButterchurnPresets() {
|
|
return [
|
|
{
|
|
name: "md_AdamFX_Enterz_Tha_Mash_With_Martin_stahlregen_AdamFX_In_Tha_Mash_Effectz_D/md_AdamFX_Enterz_Tha_Mash_With_Martin_stahlregen_AdamFX_In_Tha_Mash_Effectz_D.milk",
|
|
butterchurnPresetUrl:
|
|
"https://archive.org/cors/md_AdamFX_Enterz_Tha_Mash_With_Martin_stahlregen_AdamFX_In_Tha_Mash_Effectz_D/md_AdamFX_Enterz_Tha_Mash_With_Martin_stahlregen_AdamFX_In_Tha_Mash_Effectz_D.json",
|
|
},
|
|
];
|
|
},
|
|
});
|
|
|
|
// Returns a promise indicating when it's done loading.
|
|
webamp.renderInto(document.getElementById("app"));
|
|
</script>
|
|
</body>
|
|
</html>
|