The stream 'stopped' backend event was calling clearTrack() in both the WebSocket handler (updateStreamStatusFromData) and the polling handler (updateStreamStatus), which added the .idle class and collapsed the player to zero height. This fired whenever audio ended naturally or when transitioning between queue items (playQueueItem calls stopStream() to reset backend state before loading the next track). The explicit stop button (handleStop) already calls clearTrack() directly, so the 'stopped' event handlers don't need to — and shouldn't. |
||
|---|---|---|
| .. | ||
| static | ||
| index.html | ||