diff --git a/webui/static/media-player.js b/webui/static/media-player.js index 0eb2ee3e..2f3a7d32 100644 --- a/webui/static/media-player.js +++ b/webui/static/media-player.js @@ -304,6 +304,10 @@ function setPlayingState(playing) { // Sidebar audio visualizer if (playing) { npInitVisualizer(); + // npInitVisualizer only runs its setup once; the element stays routed + // through npAudioContext, so resume it on EVERY play start or playback + // is silent when the context has been suspended (autoplay / tab blur). + npEnsureAudioContextRunning(); startSidebarVisualizer(); } else { stopSidebarVisualizer(); @@ -2661,6 +2665,20 @@ function getNpAlbumArtUrl() { // WEB AUDIO VISUALIZER // =============================== +// Once createMediaElementSource() captures the