feat: multi-track demo support with password map

This commit is contained in:
snider 2026-01-12 15:39:26 +00:00
parent 2da38ae462
commit 3d903c5a27
2 changed files with 9 additions and 2 deletions

BIN
demo/demo-sample.smsg Normal file

Binary file not shown.

View file

@ -1424,9 +1424,16 @@
<script src="wasm_exec.js"></script>
<script>
// Config - change these for your CDN
// Demo tracks with their passwords
const DEMO_TRACKS = {
'https://demo.dapp.fm/demo-track.smsg': 'PMVXogAJNVe_DDABfTmLYztaJAzsD0R7',
'./demo-sample.smsg': '6ZhMQ034bT6maHqMaJejoxDMpfaOQvq5',
'../examples/demo-sample.smsg': '6ZhMQ034bT6maHqMaJejoxDMpfaOQvq5',
};
// Active demo - CDN for profile, local for testing
const DEMO_URL = 'https://demo.dapp.fm/demo-track.smsg';
const DEMO_PASSWORD = 'PMVXogAJNVe_DDABfTmLYztaJAzsD0R7';
const DEMO_PASSWORD = DEMO_TRACKS[DEMO_URL];
let wasmReady = false;
let manifest = null;