MCPcopy
hub / github.com/bradtraversy/vanillawebprojects / nextSong

Function nextSong

music-player/script.js:62–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60
61// Next song
62function nextSong() {
63 songIndex++;
64
65 if (songIndex > songs.length - 1) {
66 songIndex = 0;
67 }
68
69 loadSong(songs[songIndex]);
70
71 playSong();
72}
73
74// Update progress bar
75function updateProgress(e) {

Callers

nothing calls this directly

Calls 2

loadSongFunction · 0.85
playSongFunction · 0.85

Tested by

no test coverage detected