diff --git a/tutorials/MusicPlayer.html b/tutorials/MusicPlayer.html index bd5f541..f128747 100644 --- a/tutorials/MusicPlayer.html +++ b/tutorials/MusicPlayer.html @@ -14,12 +14,6 @@ const playlist = previousPlaylist; // We are assuming you have a playlist ready. const player = new ask.player.MusicPlayer(playlist) // Creates a new music player with the playlist. - -
We'll also show the playlist display so you can see how it updates corresponding to the music currently selected.
-We can also traverse the playlist by the player via a previous and next button. These buttons can be generated as well as programmed.
// Still using the same context from the instantiation example...
- const nextElement = player.generateNextElement();
- document.getElementById("musicplayer-nextbtn-demo").appendChild(nextElement);
-
+ const nextElem = player.generateNextElement();
+ document.getElementById("musicplayer-nav-demo").appendChild(nextElem);
+
const prevElem = player.generatePreviousElement();
- document.getElementById("musicplayer-prevbtn-demo").appendChild(prevElem);
+ document.getElementById("musicplayer-nav-demo").appendChild(prevElem);
- Feel free to try the buttons and see what happens! We'll show the playlist display demonstrated in the [MusicPlaylist tutorial]{@tutorial MusicPlaylist}.