Fixed issue where switching from one channel sometimes didnt switch the song

This commit is contained in:
Kasper Rynning-Tønnesen
2018-09-20 14:27:43 +02:00
parent f39a063037
commit 1a735e6557

View File

@@ -478,7 +478,11 @@ var Player = {
castSession.sendMessage("urn:x-cast:zoff.me", {type: "stopVideo"}); castSession.sendMessage("urn:x-cast:zoff.me", {type: "stopVideo"});
} else { } else {
try{ try{
Player.player.stopVideo(); if(videoSource == "soundcloud") {
Player.soundcloud_player.pause();
} else {
Player.player.stopVideo();
}
} catch(e){} } catch(e){}
} }
}, },