Updated url for examples.

This commit is contained in:
Harrison Deng 2022-04-18 16:19:50 -05:00
parent 4501a9b222
commit 677a98549f
3 changed files with 6 additions and 6 deletions

View File

@ -63,8 +63,8 @@
const ask = window.audioshowkit; const ask = window.audioshowkit;
const playlist = new ask.player.MusicPlaylist("Awesome Music"); const playlist = new ask.player.MusicPlaylist("Awesome Music");
playlist.add("/assets/audio/moments.mp3", "Moments", "Lost Identities x Robbie Rosen"); playlist.add("./assets/audio/moments.mp3", "Moments", "Lost Identities x Robbie Rosen");
playlist.add("assets/audio/XXI.mp3", "XXI", "QR"); playlist.add("./assets/audio/XXI.mp3", "XXI", "QR");
const player = new ask.player.MusicPlayer(playlist); const player = new ask.player.MusicPlayer(playlist);
const playElem = player.generatePlayElement(); const playElem = player.generatePlayElement();

View File

@ -65,8 +65,8 @@
const ask = window.audioshowkit; const ask = window.audioshowkit;
const playlist = new ask.player.MusicPlaylist("Awesome Music"); const playlist = new ask.player.MusicPlaylist("Awesome Music");
playlist.add("/assets/audio/moments.mp3", "Moments", "Lost Identities x Robbie Rosen"); // It's that easy. playlist.add("./assets/audio/moments.mp3", "Moments", "Lost Identities x Robbie Rosen"); // It's that easy.
playlist.add("/assets/audio/XXI.mp3", "XXI", "QR"); // Let's add another one. playlist.add("./assets/audio/XXI.mp3", "XXI", "QR"); // Let's add another one.
const pathetiqueMusic = new ask.player.Music("/assets/audio/pathetique.mp3", "Sonata No. 8", "Beethoven"); const pathetiqueMusic = new ask.player.Music("/assets/audio/pathetique.mp3", "Sonata No. 8", "Beethoven");
playlist.addExisting(pathetiqueMusic); playlist.addExisting(pathetiqueMusic);

View File

@ -102,8 +102,8 @@
const ask = window.audioshowkit; const ask = window.audioshowkit;
const playlist = new ask.player.MusicPlaylist("Awesome Music"); const playlist = new ask.player.MusicPlaylist("Awesome Music");
playlist.add("/assets/audio/XXI.mp3", "XXI", "QR"); playlist.add("./assets/audio/XXI.mp3", "XXI", "QR");
playlist.add("/assets/audio/moments.mp3", "Moments", "Lost Identities x Robbie Rosen"); playlist.add("./assets/audio/moments.mp3", "Moments", "Lost Identities x Robbie Rosen");
const player = new ask.player.VisMusicPlayer(playlist); const player = new ask.player.VisMusicPlayer(playlist);
const playbackCtrlsElem = document.getElementById("playback-ctrls"); const playbackCtrlsElem = document.getElementById("playback-ctrls");