From b139a9d2681d118cc9850b9efdea72424cca6f72 Mon Sep 17 00:00:00 2001 From: Dylan Cashman Date: Fri, 11 Oct 2024 22:30:07 -0400 Subject: [PATCH] Removing vis virtual data --- program/room_bayshore1.html | 48 +++++++++++++++---------------- program/room_bayshore2.html | 48 +++++++++++++++---------------- program/room_bayshore3.html | 48 +++++++++++++++---------------- program/room_bayshore5.html | 48 +++++++++++++++---------------- program/room_bayshore6.html | 48 +++++++++++++++---------------- program/room_bayshore7.html | 48 +++++++++++++++---------------- program/room_bayshorefoyer.html | 48 +++++++++++++++---------------- program/room_bayshoreplenary.html | 48 +++++++++++++++---------------- program/room_esplanadesuites.html | 48 +++++++++++++++---------------- program/room_none.html | 48 +++++++++++++++---------------- program/room_palmaceia1.html | 48 +++++++++++++++---------------- program/room_palmaceia234.html | 48 +++++++++++++++---------------- 12 files changed, 288 insertions(+), 288 deletions(-) diff --git a/program/room_bayshore1.html b/program/room_bayshore1.html index 5a4d583e3..d2738899c 100644 --- a/program/room_bayshore1.html +++ b/program/room_bayshore1.html @@ -114,7 +114,7 @@ setInterval(filterByCurrentSession, 30 * 1000); filterByCurrentSession(); - updateStreamSource(); + // updateStreamSource(); }) function updateStreamSource(){ @@ -221,28 +221,28 @@ // TODO - error handling // This is where we would interface with vis-virtual-data - updateStreamSource().then(streamData => { - if ('youtube_id' in streamData) { - new_youtube_id = streamData['youtube_id']; - } else { - new_youtube_id = youtube_id; - } - - if ('slido_link' in streamData) { - new_slido_link = streamData['slido_link']; - } else { - new_slido_link = slido_link; - } - - if ('discord_link' in streamData) { - new_discord_link = streamData['discord_link']; - } else { - new_discord_link = discord_link; - } - // // instead, we will just assign to the new one - // new_youtube_id = youtube_id; - // new_slido_link = slido_link; - // new_discord_link = discord_link; + // updateStreamSource().then(streamData => { + // if ('youtube_id' in streamData) { + // new_youtube_id = streamData['youtube_id']; + // } else { + // new_youtube_id = youtube_id; + // } + + // if ('slido_link' in streamData) { + // new_slido_link = streamData['slido_link']; + // } else { + // new_slido_link = slido_link; + // } + + // if ('discord_link' in streamData) { + // new_discord_link = streamData['discord_link']; + // } else { + // new_discord_link = discord_link; + // } + // instead, we will just assign to the new one + new_youtube_id = youtube_id; + new_slido_link = slido_link; + new_discord_link = discord_link; console.log("new_youtube_id is ", new_youtube_id, " and CURRENT_YOUTUBE_ID is ", CURRENT_YOUTUBE_ID); if ((new_youtube_id.length > 0 && new_youtube_id != CURRENT_YOUTUBE_ID) || (new_slido_link.length > 0 && new_slido_link != CURRENT_SLIDO_LINK) || (new_discord_link.length > 0 && new_discord_link != CURRENT_DISCORD_LINK)) { youtube_id = new_youtube_id; @@ -307,7 +307,7 @@ playbackContainer.append(linksCollection); } - }); + // }); } else if (!recentSession) { // Need to destroy the iframe if it is rendered diff --git a/program/room_bayshore2.html b/program/room_bayshore2.html index 73bf16c82..94c2e3d56 100644 --- a/program/room_bayshore2.html +++ b/program/room_bayshore2.html @@ -114,7 +114,7 @@ setInterval(filterByCurrentSession, 30 * 1000); filterByCurrentSession(); - updateStreamSource(); + // updateStreamSource(); }) function updateStreamSource(){ @@ -221,28 +221,28 @@ // TODO - error handling // This is where we would interface with vis-virtual-data - updateStreamSource().then(streamData => { - if ('youtube_id' in streamData) { - new_youtube_id = streamData['youtube_id']; - } else { - new_youtube_id = youtube_id; - } - - if ('slido_link' in streamData) { - new_slido_link = streamData['slido_link']; - } else { - new_slido_link = slido_link; - } - - if ('discord_link' in streamData) { - new_discord_link = streamData['discord_link']; - } else { - new_discord_link = discord_link; - } - // // instead, we will just assign to the new one - // new_youtube_id = youtube_id; - // new_slido_link = slido_link; - // new_discord_link = discord_link; + // updateStreamSource().then(streamData => { + // if ('youtube_id' in streamData) { + // new_youtube_id = streamData['youtube_id']; + // } else { + // new_youtube_id = youtube_id; + // } + + // if ('slido_link' in streamData) { + // new_slido_link = streamData['slido_link']; + // } else { + // new_slido_link = slido_link; + // } + + // if ('discord_link' in streamData) { + // new_discord_link = streamData['discord_link']; + // } else { + // new_discord_link = discord_link; + // } + // instead, we will just assign to the new one + new_youtube_id = youtube_id; + new_slido_link = slido_link; + new_discord_link = discord_link; console.log("new_youtube_id is ", new_youtube_id, " and CURRENT_YOUTUBE_ID is ", CURRENT_YOUTUBE_ID); if ((new_youtube_id.length > 0 && new_youtube_id != CURRENT_YOUTUBE_ID) || (new_slido_link.length > 0 && new_slido_link != CURRENT_SLIDO_LINK) || (new_discord_link.length > 0 && new_discord_link != CURRENT_DISCORD_LINK)) { youtube_id = new_youtube_id; @@ -307,7 +307,7 @@ playbackContainer.append(linksCollection); } - }); + // }); } else if (!recentSession) { // Need to destroy the iframe if it is rendered diff --git a/program/room_bayshore3.html b/program/room_bayshore3.html index e2344f068..45106ede3 100644 --- a/program/room_bayshore3.html +++ b/program/room_bayshore3.html @@ -114,7 +114,7 @@ setInterval(filterByCurrentSession, 30 * 1000); filterByCurrentSession(); - updateStreamSource(); + // updateStreamSource(); }) function updateStreamSource(){ @@ -221,28 +221,28 @@ // TODO - error handling // This is where we would interface with vis-virtual-data - updateStreamSource().then(streamData => { - if ('youtube_id' in streamData) { - new_youtube_id = streamData['youtube_id']; - } else { - new_youtube_id = youtube_id; - } - - if ('slido_link' in streamData) { - new_slido_link = streamData['slido_link']; - } else { - new_slido_link = slido_link; - } - - if ('discord_link' in streamData) { - new_discord_link = streamData['discord_link']; - } else { - new_discord_link = discord_link; - } - // // instead, we will just assign to the new one - // new_youtube_id = youtube_id; - // new_slido_link = slido_link; - // new_discord_link = discord_link; + // updateStreamSource().then(streamData => { + // if ('youtube_id' in streamData) { + // new_youtube_id = streamData['youtube_id']; + // } else { + // new_youtube_id = youtube_id; + // } + + // if ('slido_link' in streamData) { + // new_slido_link = streamData['slido_link']; + // } else { + // new_slido_link = slido_link; + // } + + // if ('discord_link' in streamData) { + // new_discord_link = streamData['discord_link']; + // } else { + // new_discord_link = discord_link; + // } + // instead, we will just assign to the new one + new_youtube_id = youtube_id; + new_slido_link = slido_link; + new_discord_link = discord_link; console.log("new_youtube_id is ", new_youtube_id, " and CURRENT_YOUTUBE_ID is ", CURRENT_YOUTUBE_ID); if ((new_youtube_id.length > 0 && new_youtube_id != CURRENT_YOUTUBE_ID) || (new_slido_link.length > 0 && new_slido_link != CURRENT_SLIDO_LINK) || (new_discord_link.length > 0 && new_discord_link != CURRENT_DISCORD_LINK)) { youtube_id = new_youtube_id; @@ -307,7 +307,7 @@ playbackContainer.append(linksCollection); } - }); + // }); } else if (!recentSession) { // Need to destroy the iframe if it is rendered diff --git a/program/room_bayshore5.html b/program/room_bayshore5.html index a923c1ef4..d10a31ba6 100644 --- a/program/room_bayshore5.html +++ b/program/room_bayshore5.html @@ -114,7 +114,7 @@ setInterval(filterByCurrentSession, 30 * 1000); filterByCurrentSession(); - updateStreamSource(); + // updateStreamSource(); }) function updateStreamSource(){ @@ -221,28 +221,28 @@ // TODO - error handling // This is where we would interface with vis-virtual-data - updateStreamSource().then(streamData => { - if ('youtube_id' in streamData) { - new_youtube_id = streamData['youtube_id']; - } else { - new_youtube_id = youtube_id; - } - - if ('slido_link' in streamData) { - new_slido_link = streamData['slido_link']; - } else { - new_slido_link = slido_link; - } - - if ('discord_link' in streamData) { - new_discord_link = streamData['discord_link']; - } else { - new_discord_link = discord_link; - } - // // instead, we will just assign to the new one - // new_youtube_id = youtube_id; - // new_slido_link = slido_link; - // new_discord_link = discord_link; + // updateStreamSource().then(streamData => { + // if ('youtube_id' in streamData) { + // new_youtube_id = streamData['youtube_id']; + // } else { + // new_youtube_id = youtube_id; + // } + + // if ('slido_link' in streamData) { + // new_slido_link = streamData['slido_link']; + // } else { + // new_slido_link = slido_link; + // } + + // if ('discord_link' in streamData) { + // new_discord_link = streamData['discord_link']; + // } else { + // new_discord_link = discord_link; + // } + // instead, we will just assign to the new one + new_youtube_id = youtube_id; + new_slido_link = slido_link; + new_discord_link = discord_link; console.log("new_youtube_id is ", new_youtube_id, " and CURRENT_YOUTUBE_ID is ", CURRENT_YOUTUBE_ID); if ((new_youtube_id.length > 0 && new_youtube_id != CURRENT_YOUTUBE_ID) || (new_slido_link.length > 0 && new_slido_link != CURRENT_SLIDO_LINK) || (new_discord_link.length > 0 && new_discord_link != CURRENT_DISCORD_LINK)) { youtube_id = new_youtube_id; @@ -307,7 +307,7 @@ playbackContainer.append(linksCollection); } - }); + // }); } else if (!recentSession) { // Need to destroy the iframe if it is rendered diff --git a/program/room_bayshore6.html b/program/room_bayshore6.html index ea0f6f533..2e105273d 100644 --- a/program/room_bayshore6.html +++ b/program/room_bayshore6.html @@ -114,7 +114,7 @@ setInterval(filterByCurrentSession, 30 * 1000); filterByCurrentSession(); - updateStreamSource(); + // updateStreamSource(); }) function updateStreamSource(){ @@ -221,28 +221,28 @@ // TODO - error handling // This is where we would interface with vis-virtual-data - updateStreamSource().then(streamData => { - if ('youtube_id' in streamData) { - new_youtube_id = streamData['youtube_id']; - } else { - new_youtube_id = youtube_id; - } - - if ('slido_link' in streamData) { - new_slido_link = streamData['slido_link']; - } else { - new_slido_link = slido_link; - } - - if ('discord_link' in streamData) { - new_discord_link = streamData['discord_link']; - } else { - new_discord_link = discord_link; - } - // // instead, we will just assign to the new one - // new_youtube_id = youtube_id; - // new_slido_link = slido_link; - // new_discord_link = discord_link; + // updateStreamSource().then(streamData => { + // if ('youtube_id' in streamData) { + // new_youtube_id = streamData['youtube_id']; + // } else { + // new_youtube_id = youtube_id; + // } + + // if ('slido_link' in streamData) { + // new_slido_link = streamData['slido_link']; + // } else { + // new_slido_link = slido_link; + // } + + // if ('discord_link' in streamData) { + // new_discord_link = streamData['discord_link']; + // } else { + // new_discord_link = discord_link; + // } + // instead, we will just assign to the new one + new_youtube_id = youtube_id; + new_slido_link = slido_link; + new_discord_link = discord_link; console.log("new_youtube_id is ", new_youtube_id, " and CURRENT_YOUTUBE_ID is ", CURRENT_YOUTUBE_ID); if ((new_youtube_id.length > 0 && new_youtube_id != CURRENT_YOUTUBE_ID) || (new_slido_link.length > 0 && new_slido_link != CURRENT_SLIDO_LINK) || (new_discord_link.length > 0 && new_discord_link != CURRENT_DISCORD_LINK)) { youtube_id = new_youtube_id; @@ -307,7 +307,7 @@ playbackContainer.append(linksCollection); } - }); + // }); } else if (!recentSession) { // Need to destroy the iframe if it is rendered diff --git a/program/room_bayshore7.html b/program/room_bayshore7.html index ea4cc3e78..0faf47865 100644 --- a/program/room_bayshore7.html +++ b/program/room_bayshore7.html @@ -114,7 +114,7 @@ setInterval(filterByCurrentSession, 30 * 1000); filterByCurrentSession(); - updateStreamSource(); + // updateStreamSource(); }) function updateStreamSource(){ @@ -221,28 +221,28 @@ // TODO - error handling // This is where we would interface with vis-virtual-data - updateStreamSource().then(streamData => { - if ('youtube_id' in streamData) { - new_youtube_id = streamData['youtube_id']; - } else { - new_youtube_id = youtube_id; - } - - if ('slido_link' in streamData) { - new_slido_link = streamData['slido_link']; - } else { - new_slido_link = slido_link; - } - - if ('discord_link' in streamData) { - new_discord_link = streamData['discord_link']; - } else { - new_discord_link = discord_link; - } - // // instead, we will just assign to the new one - // new_youtube_id = youtube_id; - // new_slido_link = slido_link; - // new_discord_link = discord_link; + // updateStreamSource().then(streamData => { + // if ('youtube_id' in streamData) { + // new_youtube_id = streamData['youtube_id']; + // } else { + // new_youtube_id = youtube_id; + // } + + // if ('slido_link' in streamData) { + // new_slido_link = streamData['slido_link']; + // } else { + // new_slido_link = slido_link; + // } + + // if ('discord_link' in streamData) { + // new_discord_link = streamData['discord_link']; + // } else { + // new_discord_link = discord_link; + // } + // instead, we will just assign to the new one + new_youtube_id = youtube_id; + new_slido_link = slido_link; + new_discord_link = discord_link; console.log("new_youtube_id is ", new_youtube_id, " and CURRENT_YOUTUBE_ID is ", CURRENT_YOUTUBE_ID); if ((new_youtube_id.length > 0 && new_youtube_id != CURRENT_YOUTUBE_ID) || (new_slido_link.length > 0 && new_slido_link != CURRENT_SLIDO_LINK) || (new_discord_link.length > 0 && new_discord_link != CURRENT_DISCORD_LINK)) { youtube_id = new_youtube_id; @@ -307,7 +307,7 @@ playbackContainer.append(linksCollection); } - }); + // }); } else if (!recentSession) { // Need to destroy the iframe if it is rendered diff --git a/program/room_bayshorefoyer.html b/program/room_bayshorefoyer.html index 805c8a425..4998e44ca 100644 --- a/program/room_bayshorefoyer.html +++ b/program/room_bayshorefoyer.html @@ -114,7 +114,7 @@ setInterval(filterByCurrentSession, 30 * 1000); filterByCurrentSession(); - updateStreamSource(); + // updateStreamSource(); }) function updateStreamSource(){ @@ -221,28 +221,28 @@ // TODO - error handling // This is where we would interface with vis-virtual-data - updateStreamSource().then(streamData => { - if ('youtube_id' in streamData) { - new_youtube_id = streamData['youtube_id']; - } else { - new_youtube_id = youtube_id; - } - - if ('slido_link' in streamData) { - new_slido_link = streamData['slido_link']; - } else { - new_slido_link = slido_link; - } - - if ('discord_link' in streamData) { - new_discord_link = streamData['discord_link']; - } else { - new_discord_link = discord_link; - } - // // instead, we will just assign to the new one - // new_youtube_id = youtube_id; - // new_slido_link = slido_link; - // new_discord_link = discord_link; + // updateStreamSource().then(streamData => { + // if ('youtube_id' in streamData) { + // new_youtube_id = streamData['youtube_id']; + // } else { + // new_youtube_id = youtube_id; + // } + + // if ('slido_link' in streamData) { + // new_slido_link = streamData['slido_link']; + // } else { + // new_slido_link = slido_link; + // } + + // if ('discord_link' in streamData) { + // new_discord_link = streamData['discord_link']; + // } else { + // new_discord_link = discord_link; + // } + // instead, we will just assign to the new one + new_youtube_id = youtube_id; + new_slido_link = slido_link; + new_discord_link = discord_link; console.log("new_youtube_id is ", new_youtube_id, " and CURRENT_YOUTUBE_ID is ", CURRENT_YOUTUBE_ID); if ((new_youtube_id.length > 0 && new_youtube_id != CURRENT_YOUTUBE_ID) || (new_slido_link.length > 0 && new_slido_link != CURRENT_SLIDO_LINK) || (new_discord_link.length > 0 && new_discord_link != CURRENT_DISCORD_LINK)) { youtube_id = new_youtube_id; @@ -307,7 +307,7 @@ playbackContainer.append(linksCollection); } - }); + // }); } else if (!recentSession) { // Need to destroy the iframe if it is rendered diff --git a/program/room_bayshoreplenary.html b/program/room_bayshoreplenary.html index dde642991..56ad784dd 100644 --- a/program/room_bayshoreplenary.html +++ b/program/room_bayshoreplenary.html @@ -114,7 +114,7 @@ setInterval(filterByCurrentSession, 30 * 1000); filterByCurrentSession(); - updateStreamSource(); + // updateStreamSource(); }) function updateStreamSource(){ @@ -221,28 +221,28 @@ // TODO - error handling // This is where we would interface with vis-virtual-data - updateStreamSource().then(streamData => { - if ('youtube_id' in streamData) { - new_youtube_id = streamData['youtube_id']; - } else { - new_youtube_id = youtube_id; - } - - if ('slido_link' in streamData) { - new_slido_link = streamData['slido_link']; - } else { - new_slido_link = slido_link; - } - - if ('discord_link' in streamData) { - new_discord_link = streamData['discord_link']; - } else { - new_discord_link = discord_link; - } - // // instead, we will just assign to the new one - // new_youtube_id = youtube_id; - // new_slido_link = slido_link; - // new_discord_link = discord_link; + // updateStreamSource().then(streamData => { + // if ('youtube_id' in streamData) { + // new_youtube_id = streamData['youtube_id']; + // } else { + // new_youtube_id = youtube_id; + // } + + // if ('slido_link' in streamData) { + // new_slido_link = streamData['slido_link']; + // } else { + // new_slido_link = slido_link; + // } + + // if ('discord_link' in streamData) { + // new_discord_link = streamData['discord_link']; + // } else { + // new_discord_link = discord_link; + // } + // instead, we will just assign to the new one + new_youtube_id = youtube_id; + new_slido_link = slido_link; + new_discord_link = discord_link; console.log("new_youtube_id is ", new_youtube_id, " and CURRENT_YOUTUBE_ID is ", CURRENT_YOUTUBE_ID); if ((new_youtube_id.length > 0 && new_youtube_id != CURRENT_YOUTUBE_ID) || (new_slido_link.length > 0 && new_slido_link != CURRENT_SLIDO_LINK) || (new_discord_link.length > 0 && new_discord_link != CURRENT_DISCORD_LINK)) { youtube_id = new_youtube_id; @@ -307,7 +307,7 @@ playbackContainer.append(linksCollection); } - }); + // }); } else if (!recentSession) { // Need to destroy the iframe if it is rendered diff --git a/program/room_esplanadesuites.html b/program/room_esplanadesuites.html index 0b32ddd9e..83640a3f5 100644 --- a/program/room_esplanadesuites.html +++ b/program/room_esplanadesuites.html @@ -114,7 +114,7 @@ setInterval(filterByCurrentSession, 30 * 1000); filterByCurrentSession(); - updateStreamSource(); + // updateStreamSource(); }) function updateStreamSource(){ @@ -221,28 +221,28 @@ // TODO - error handling // This is where we would interface with vis-virtual-data - updateStreamSource().then(streamData => { - if ('youtube_id' in streamData) { - new_youtube_id = streamData['youtube_id']; - } else { - new_youtube_id = youtube_id; - } - - if ('slido_link' in streamData) { - new_slido_link = streamData['slido_link']; - } else { - new_slido_link = slido_link; - } - - if ('discord_link' in streamData) { - new_discord_link = streamData['discord_link']; - } else { - new_discord_link = discord_link; - } - // // instead, we will just assign to the new one - // new_youtube_id = youtube_id; - // new_slido_link = slido_link; - // new_discord_link = discord_link; + // updateStreamSource().then(streamData => { + // if ('youtube_id' in streamData) { + // new_youtube_id = streamData['youtube_id']; + // } else { + // new_youtube_id = youtube_id; + // } + + // if ('slido_link' in streamData) { + // new_slido_link = streamData['slido_link']; + // } else { + // new_slido_link = slido_link; + // } + + // if ('discord_link' in streamData) { + // new_discord_link = streamData['discord_link']; + // } else { + // new_discord_link = discord_link; + // } + // instead, we will just assign to the new one + new_youtube_id = youtube_id; + new_slido_link = slido_link; + new_discord_link = discord_link; console.log("new_youtube_id is ", new_youtube_id, " and CURRENT_YOUTUBE_ID is ", CURRENT_YOUTUBE_ID); if ((new_youtube_id.length > 0 && new_youtube_id != CURRENT_YOUTUBE_ID) || (new_slido_link.length > 0 && new_slido_link != CURRENT_SLIDO_LINK) || (new_discord_link.length > 0 && new_discord_link != CURRENT_DISCORD_LINK)) { youtube_id = new_youtube_id; @@ -307,7 +307,7 @@ playbackContainer.append(linksCollection); } - }); + // }); } else if (!recentSession) { // Need to destroy the iframe if it is rendered diff --git a/program/room_none.html b/program/room_none.html index fd7fa91fd..0c8cc8516 100644 --- a/program/room_none.html +++ b/program/room_none.html @@ -114,7 +114,7 @@ setInterval(filterByCurrentSession, 30 * 1000); filterByCurrentSession(); - updateStreamSource(); + // updateStreamSource(); }) function updateStreamSource(){ @@ -221,28 +221,28 @@ // TODO - error handling // This is where we would interface with vis-virtual-data - updateStreamSource().then(streamData => { - if ('youtube_id' in streamData) { - new_youtube_id = streamData['youtube_id']; - } else { - new_youtube_id = youtube_id; - } - - if ('slido_link' in streamData) { - new_slido_link = streamData['slido_link']; - } else { - new_slido_link = slido_link; - } - - if ('discord_link' in streamData) { - new_discord_link = streamData['discord_link']; - } else { - new_discord_link = discord_link; - } - // // instead, we will just assign to the new one - // new_youtube_id = youtube_id; - // new_slido_link = slido_link; - // new_discord_link = discord_link; + // updateStreamSource().then(streamData => { + // if ('youtube_id' in streamData) { + // new_youtube_id = streamData['youtube_id']; + // } else { + // new_youtube_id = youtube_id; + // } + + // if ('slido_link' in streamData) { + // new_slido_link = streamData['slido_link']; + // } else { + // new_slido_link = slido_link; + // } + + // if ('discord_link' in streamData) { + // new_discord_link = streamData['discord_link']; + // } else { + // new_discord_link = discord_link; + // } + // instead, we will just assign to the new one + new_youtube_id = youtube_id; + new_slido_link = slido_link; + new_discord_link = discord_link; console.log("new_youtube_id is ", new_youtube_id, " and CURRENT_YOUTUBE_ID is ", CURRENT_YOUTUBE_ID); if ((new_youtube_id.length > 0 && new_youtube_id != CURRENT_YOUTUBE_ID) || (new_slido_link.length > 0 && new_slido_link != CURRENT_SLIDO_LINK) || (new_discord_link.length > 0 && new_discord_link != CURRENT_DISCORD_LINK)) { youtube_id = new_youtube_id; @@ -307,7 +307,7 @@ playbackContainer.append(linksCollection); } - }); + // }); } else if (!recentSession) { // Need to destroy the iframe if it is rendered diff --git a/program/room_palmaceia1.html b/program/room_palmaceia1.html index 5ba9d6394..1166c7eff 100644 --- a/program/room_palmaceia1.html +++ b/program/room_palmaceia1.html @@ -114,7 +114,7 @@ setInterval(filterByCurrentSession, 30 * 1000); filterByCurrentSession(); - updateStreamSource(); + // updateStreamSource(); }) function updateStreamSource(){ @@ -221,28 +221,28 @@ // TODO - error handling // This is where we would interface with vis-virtual-data - updateStreamSource().then(streamData => { - if ('youtube_id' in streamData) { - new_youtube_id = streamData['youtube_id']; - } else { - new_youtube_id = youtube_id; - } - - if ('slido_link' in streamData) { - new_slido_link = streamData['slido_link']; - } else { - new_slido_link = slido_link; - } - - if ('discord_link' in streamData) { - new_discord_link = streamData['discord_link']; - } else { - new_discord_link = discord_link; - } - // // instead, we will just assign to the new one - // new_youtube_id = youtube_id; - // new_slido_link = slido_link; - // new_discord_link = discord_link; + // updateStreamSource().then(streamData => { + // if ('youtube_id' in streamData) { + // new_youtube_id = streamData['youtube_id']; + // } else { + // new_youtube_id = youtube_id; + // } + + // if ('slido_link' in streamData) { + // new_slido_link = streamData['slido_link']; + // } else { + // new_slido_link = slido_link; + // } + + // if ('discord_link' in streamData) { + // new_discord_link = streamData['discord_link']; + // } else { + // new_discord_link = discord_link; + // } + // instead, we will just assign to the new one + new_youtube_id = youtube_id; + new_slido_link = slido_link; + new_discord_link = discord_link; console.log("new_youtube_id is ", new_youtube_id, " and CURRENT_YOUTUBE_ID is ", CURRENT_YOUTUBE_ID); if ((new_youtube_id.length > 0 && new_youtube_id != CURRENT_YOUTUBE_ID) || (new_slido_link.length > 0 && new_slido_link != CURRENT_SLIDO_LINK) || (new_discord_link.length > 0 && new_discord_link != CURRENT_DISCORD_LINK)) { youtube_id = new_youtube_id; @@ -307,7 +307,7 @@ playbackContainer.append(linksCollection); } - }); + // }); } else if (!recentSession) { // Need to destroy the iframe if it is rendered diff --git a/program/room_palmaceia234.html b/program/room_palmaceia234.html index 305c931d4..2533d5cab 100644 --- a/program/room_palmaceia234.html +++ b/program/room_palmaceia234.html @@ -114,7 +114,7 @@ setInterval(filterByCurrentSession, 30 * 1000); filterByCurrentSession(); - updateStreamSource(); + // updateStreamSource(); }) function updateStreamSource(){ @@ -221,28 +221,28 @@ // TODO - error handling // This is where we would interface with vis-virtual-data - updateStreamSource().then(streamData => { - if ('youtube_id' in streamData) { - new_youtube_id = streamData['youtube_id']; - } else { - new_youtube_id = youtube_id; - } - - if ('slido_link' in streamData) { - new_slido_link = streamData['slido_link']; - } else { - new_slido_link = slido_link; - } - - if ('discord_link' in streamData) { - new_discord_link = streamData['discord_link']; - } else { - new_discord_link = discord_link; - } - // // instead, we will just assign to the new one - // new_youtube_id = youtube_id; - // new_slido_link = slido_link; - // new_discord_link = discord_link; + // updateStreamSource().then(streamData => { + // if ('youtube_id' in streamData) { + // new_youtube_id = streamData['youtube_id']; + // } else { + // new_youtube_id = youtube_id; + // } + + // if ('slido_link' in streamData) { + // new_slido_link = streamData['slido_link']; + // } else { + // new_slido_link = slido_link; + // } + + // if ('discord_link' in streamData) { + // new_discord_link = streamData['discord_link']; + // } else { + // new_discord_link = discord_link; + // } + // instead, we will just assign to the new one + new_youtube_id = youtube_id; + new_slido_link = slido_link; + new_discord_link = discord_link; console.log("new_youtube_id is ", new_youtube_id, " and CURRENT_YOUTUBE_ID is ", CURRENT_YOUTUBE_ID); if ((new_youtube_id.length > 0 && new_youtube_id != CURRENT_YOUTUBE_ID) || (new_slido_link.length > 0 && new_slido_link != CURRENT_SLIDO_LINK) || (new_discord_link.length > 0 && new_discord_link != CURRENT_DISCORD_LINK)) { youtube_id = new_youtube_id; @@ -307,7 +307,7 @@ playbackContainer.append(linksCollection); } - }); + // }); } else if (!recentSession) { // Need to destroy the iframe if it is rendered