Fixed pausing on chromecast

This commit is contained in:
Kasper Rynning-Tønnesen
2016-12-11 00:46:56 +01:00
parent 4c3d8246ef
commit ee06ff94b7
7 changed files with 50 additions and 18 deletions

View File

@@ -316,6 +316,8 @@ function hide_native(way){
$("#player_overlay").css("background-color", "black");
$("#player_overlay").css("background-repeat", "no-repeat");
$("#player_overlay").css("height", "calc(100% - 32px)");
$("#playing_on").css("display", "flex");
$("#chromecast_text").html("Playing on<br>" + castSession.La.friendlyName);
Player.player.setVolume(100);
$("#volume").slider("value", 100);
$("#player_overlay_text").toggleClass("hide");
@@ -329,6 +331,8 @@ function hide_native(way){
$("#volume").slider("value", Crypt.get_volume());
$("#player_overlay").addClass("hide");
$("#player_overlay_text").toggleClass("hide");
$("#chromecast_text").html("");
$("#playing_on").css("display", "none");
socket.emit('pos', {channel: chan.toLowerCase()});
}
}