|
|
@ -171,7 +171,7 @@ |
|
|
|
function onStart() { |
|
|
|
function onStart() { |
|
|
|
if (CastPlayer.castSession) { |
|
|
|
if (CastPlayer.castSession) { |
|
|
|
CastPlayer.playCast(); |
|
|
|
CastPlayer.playCast(); |
|
|
|
} else if ($('#audioPlayer')) { |
|
|
|
} else if ($('#audioPlayer').get(0)) { |
|
|
|
var audioPlayer = $('#audioPlayer'); |
|
|
|
var audioPlayer = $('#audioPlayer'); |
|
|
|
if(audioPlayer.paused) { |
|
|
|
if(audioPlayer.paused) { |
|
|
|
skip(0, audioPlayer.currentTime); |
|
|
|
skip(0, audioPlayer.currentTime); |
|
|
@ -187,7 +187,7 @@ |
|
|
|
function onStop() { |
|
|
|
function onStop() { |
|
|
|
if (CastPlayer.castSession) { |
|
|
|
if (CastPlayer.castSession) { |
|
|
|
CastPlayer.pauseCast(); |
|
|
|
CastPlayer.pauseCast(); |
|
|
|
} else if ($('#audioPlayer')) { |
|
|
|
} else if ($('#audioPlayer').get(0)) { |
|
|
|
$('#audioPlayer').get(0).pause(); |
|
|
|
$('#audioPlayer').get(0).pause(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
playQueueService.stop(playQueueCallback); |
|
|
|
playQueueService.stop(playQueueCallback); |
|
|
|