issuefixing

- Closes #353 #352 #351 #350 #349
This commit is contained in:
Kasper Rynning-Tønnesen
2018-07-05 18:32:31 +02:00
parent 470a31d092
commit 3e2f9e8c8e
4 changed files with 81 additions and 18 deletions

View File

@@ -630,7 +630,11 @@ var Player = {
} else {
was_stopped = true;
if(!embed && !client && window.location.pathname != "/") {
resizePlaylistPlaying(false);
var scPlaying = false;
try {
scPlaying = Player.soundcloud_player.isPlaying();
} catch(e){}
resizePlaylistPlaying(Player.player.getPlayerState() == YT.PlayerState.PLAYING || scPlaying || Player.player.getPlayerState() == YT.PlayerState.BUFFERING);
}
if(!chromecastAvailable){
if(Helper.mobilecheck()) {
@@ -672,7 +676,11 @@ var Player = {
//}
}
if(!embed && !client && window.location.pathname != "/") {
resizePlaylistPlaying(true);
var scPlaying = false;
try {
scPlaying = Player.soundcloud_player.isPlaying();
} catch(e){}
resizePlaylistPlaying(Player.player.getPlayerState() == YT.PlayerState.PLAYING || scPlaying || Player.player.getPlayerState() == YT.PlayerState.BUFFERING);
}
Helper.css("#playpause", "visibility", "visible");