Created
January 2, 2019 20:57
-
-
Save captbaritone/0a932d95ec0249571049c16a61fe6ad7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
</head> | |
<body> | |
<div id='app'> | |
<!-- Webamp will attempt to center itself within this div --> | |
</div> | |
<script src="https://unpkg.com/webamp@1.2.0/built/webamp.bundle.min.js"></script> | |
<script> | |
const Webamp = window.Webamp; | |
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 | |
}, | |
{ | |
metaData: { | |
artist: "Another Artist", | |
title: "Another Title" | |
}, | |
url: "<MY OTHER URL", | |
duration: 5.322286 | |
} | |
], | |
}).renderWhenReady(document.getElementById('app')); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment