Fixed audio player not pausing when switching to chromecast.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user