fixed some issues with switching channels and host-mode enabling

This commit is contained in:
Kasper Rynning-Tønnesen
2018-07-01 22:26:29 +02:00
parent 42efd8cc8e
commit 470a31d092
4 changed files with 20 additions and 12 deletions

View File

@@ -177,8 +177,12 @@ var Channel = {
Playercontrols.initYoutubeControls(Player.player);
Playercontrols.initSlider();
if(player_ready) {
Player.player.setVolume(Crypt.get_volume());
Player.soundcloud_player.setVolume(embed ? 1 : Crypt.get_volume() / 100);
try {
Player.player.setVolume(Crypt.get_volume());
} catch(e){}
try {
Player.soundcloud_player.setVolume(embed ? 1 : Crypt.get_volume() / 100);
} catch(e){}
}
Helper.removeClass(".video-container", "no-opacity");
var codeURL = "https://remote."+window.location.hostname+"/"+id;