Fixed audio player not pausing when switching to chromecast.

This commit is contained in:
Eusmilis
2017-05-30 19:57:05 +02:00
parent 51b8571415
commit d3c71fbb9b
@@ -121,6 +121,7 @@
var position = -1; var position = -1;
if (!$('#audioPlayer').get(0).paused) { if (!$('#audioPlayer').get(0).paused) {
position = $('#audioPlayer').get(0).currentTime; position = $('#audioPlayer').get(0).currentTime;
$('#audioPlayer').get(0).pause();
} }
this.setCastControlsVisible(true); this.setCastControlsVisible(true);