Fixed isse when disconnecting chromecast on private modde

This commit is contained in:
Kasper Rynning-Tønnesen
2017-01-27 18:28:34 +01:00
parent ee34c88276
commit 2fbdf66783
3 changed files with 9 additions and 4 deletions

View File

@@ -379,6 +379,7 @@ function hide_native(way){
$("#fullscreen").toggleClass("hide");
Player.player.playVideo();
Player.stopInterval = false;
duration = Player.player.getDuration();
Player.durationSetter();
if(!Helper.mobilecheck()){
Player.player.setVolume(Crypt.get_volume());
@@ -388,7 +389,11 @@ function hide_native(way){
$("#player_overlay_text").toggleClass("hide");
$("#chromecast_text").html("");
$("#playing_on").css("display", "none");
socket.emit('pos', {channel: chan.toLowerCase()});
if(!offline){
socket.emit('pos', {channel: chan.toLowerCase()});
} else {
Player.loadVideoById(video_id);
}
}
}