MCPcopy Create free account
hub / github.com/codemistic/Web-Development / prevTrack

Function prevTrack

Music App/index.js:127–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125 playTrack();
126}
127function prevTrack(){
128 if(track_index > 0){
129 track_index -= 1;
130 }else{
131 track_index = music_list.length -1;
132 }
133 loadTrack(track_index);
134 playTrack();
135}
136function seekTo(){
137 let seekto = curr_track.duration * (seek_slider.value / 100);
138 curr_track.currentTime = seekto;

Callers

nothing calls this directly

Calls 2

loadTrackFunction · 0.85
playTrackFunction · 0.85

Tested by

no test coverage detected