fixed remotecontroller

This commit is contained in:
Kasper Rynning-Tønnesen
2016-02-10 12:43:42 +01:00
parent 27d3d89aa1
commit c6e21b00b8
3 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@@ -49,9 +49,9 @@ var Hostcontroller = {
window.history.pushState("object or string", "Title", "/"+chan.toLowerCase()); window.history.pushState("object or string", "Title", "/"+chan.toLowerCase());
}else if(arr[0] == "pause") }else if(arr[0] == "pause")
ytplayer.pauseVideo() Youtube.ytplayer.pauseVideo()
else if(arr[0] == "play") else if(arr[0] == "play")
ytplayer.playVideo(); YouTubeytplayer.playVideo();
else if(arr[0] == "skip") else if(arr[0] == "skip")
List.skip(); List.skip();
} }

View File

@@ -60,7 +60,7 @@ function init(){
} }
chan = $("#chan").html(); chan = $("#chan").html();
if(window.location.hostname == "zoff.no") add = "https://zoff.no"; if(window.location._name == "zoff.no") add = "https://zoff.no";
else add = "localhost"; else add = "localhost";
socket = io.connect(''+add+':8880', connection_options); socket = io.connect(''+add+':8880', connection_options);
@@ -128,7 +128,7 @@ function init(){
}else{ }else{
Chat.setup_chat_listener(chan); Chat.setup_chat_listener(chan);
Chat.allchat_listener(); Chat.allchat_listener();
Hostcontroller.host_listener(); if(!window.mobilecheck()) Hostcontroller.host_listener();
window.onYouTubeIframeAPIReady = Youtube.onYouTubeIframeAPIReady; window.onYouTubeIframeAPIReady = Youtube.onYouTubeIframeAPIReady;
Youtube.loadPlayer(); Youtube.loadPlayer();