mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 20:48:48 +00:00
Fixed fullscreen-open-issue
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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)();
|
||||
|
||||
Reference in New Issue
Block a user