Trying delayed start event

This commit is contained in:
Kasper Rynning-Tønnesen
2016-11-18 21:34:39 +01:00
parent e0a1045252
commit 3e5eed4af5
4 changed files with 6 additions and 6 deletions

View File

@@ -82,7 +82,6 @@ appConfig.maxInactivity = 6000;
* it is ready to start receiving messages, typically after registering
* to listen for the events it is interested on.
*/
window.castReceiverManager.start(appConfig);
window.castReceiverManager.onSenderDisconnected = function(event) {
if(window.castReceiverManager.getSenders().length == 0 &&
@@ -124,6 +123,7 @@ function onYouTubeIframeAPIReady() {
}
function onPlayerReady() {
window.castReceiverManager.start(appConfig);
ytReady = true;
$("#player").toggleClass("hide");
$("#zoff-logo").toggleClass("center");