From d3c71fbb9b677de7b7b0f49c9ef9512bf20af1d5 Mon Sep 17 00:00:00 2001 From: Eusmilis Date: Tue, 30 May 2017 19:57:05 +0200 Subject: [PATCH] Fixed audio player not pausing when switching to chromecast. --- libresonic-main/src/main/webapp/WEB-INF/jsp/playQueueCast.jsp | 1 + 1 file changed, 1 insertion(+) diff --git a/libresonic-main/src/main/webapp/WEB-INF/jsp/playQueueCast.jsp b/libresonic-main/src/main/webapp/WEB-INF/jsp/playQueueCast.jsp index 703fd1d7..3116e7c6 100644 --- a/libresonic-main/src/main/webapp/WEB-INF/jsp/playQueueCast.jsp +++ b/libresonic-main/src/main/webapp/WEB-INF/jsp/playQueueCast.jsp @@ -121,6 +121,7 @@ var position = -1; if (!$('#audioPlayer').get(0).paused) { position = $('#audioPlayer').get(0).currentTime; + $('#audioPlayer').get(0).pause(); } this.setCastControlsVisible(true);