We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4f14cc commit 99f165fCopy full SHA for 99f165f
tools/spotify_music_quiz_cards.html
@@ -379,6 +379,14 @@ <h3 class="text-lg font-semibold">${track.name}</h3>
379
refreshAuth();
380
});
381
382
+ playerInstance.addListener('player_state_changed', state => {
383
+ console.log('player_state_changed', state);
384
+ if (state) {
385
+ isPlaying = !state.paused;
386
+ updateButtonIcon();
387
+ }
388
+ });
389
+
390
document.getElementById('pauseResumeButton').onclick = togglePauseResume;
391
playerInstance.connect();
392
}
0 commit comments