MCPcopy Create free account
hub / github.com/AyushSaini00/60minuteJavaScript / displayInfo

Function displayInfo

Code-Music/app.js:39–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37}
38
39function displayInfo(){
40 songTitleElement.innerText = song.title;
41 songArtistElement.innerText = song.artist;
42 let link = changeBitrate();
43 if(playerElement.getAttribute('src') != link){
44 playerElement.pause();
45 playerElement.setAttribute('src', link);
46 playerElement.load();
47 playerElement.play();
48 }
49}
50
51function changeBitrate(){
52 switch(selectBitrateElement.value){

Callers 1

getSongFunction · 0.85

Calls 1

changeBitrateFunction · 0.85

Tested by

no test coverage detected