Fixed fullscreen-open-issue

This commit is contained in:
Kasper Rynning-Tønnesen
2018-02-07 15:56:44 +01:00
parent d04f12fb7b
commit 0449442783
3 changed files with 2 additions and 3 deletions

View File

@@ -111,7 +111,6 @@ var Channel = {
get_list_listener();
setup_suggested_listener();
setup_viewers_listener();
} else {
$("#channel-load").css("display", "none");
$("#player").css("opacity", "1");

View File

@@ -16,7 +16,7 @@ var Hostcontroller = {
window.parentWindow.postMessage({type: "controller", id: id}, window.parentOrigin);
}
}
var codeURL = "https://remote."+window.location.hostname+"/"+id;
var codeURL = window.location.protocol + "//remote."+window.location.hostname+"/"+id;
$("#code-text").text(id);
$("#code-qr").attr("src", "https://chart.googleapis.com/chart?chs=221x221&cht=qr&choe=UTF-8&chld=L|1&chl="+codeURL);
$("#code-link").attr("href", codeURL);

View File

@@ -43,7 +43,7 @@ var Playercontrols = {
},
fullscreen: function() {
var playerElement = $("#player");
var playerElement = $("#player").get(0);
var requestFullScreen = playerElement.requestFullScreen || playerElement.mozRequestFullScreen || playerElement.webkitRequestFullScreen;
if (requestFullScreen) {
requestFullScreen.bind(playerElement)();