Skip to content

Commit

Permalink
Removing vis virtual data
Browse files Browse the repository at this point in the history
  • Loading branch information
dylancashman committed Oct 12, 2024
1 parent 0b913c3 commit b139a9d
Show file tree
Hide file tree
Showing 12 changed files with 288 additions and 288 deletions.
48 changes: 24 additions & 24 deletions program/room_bayshore1.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
setInterval(filterByCurrentSession, 30 * 1000);
filterByCurrentSession();

updateStreamSource();
// updateStreamSource();
})

function updateStreamSource(){
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -307,7 +307,7 @@
playbackContainer.append(linksCollection);
}

});
// });

} else if (!recentSession) {
// Need to destroy the iframe if it is rendered
Expand Down
48 changes: 24 additions & 24 deletions program/room_bayshore2.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
setInterval(filterByCurrentSession, 30 * 1000);
filterByCurrentSession();

updateStreamSource();
// updateStreamSource();
})

function updateStreamSource(){
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -307,7 +307,7 @@
playbackContainer.append(linksCollection);
}

});
// });

} else if (!recentSession) {
// Need to destroy the iframe if it is rendered
Expand Down
48 changes: 24 additions & 24 deletions program/room_bayshore3.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
setInterval(filterByCurrentSession, 30 * 1000);
filterByCurrentSession();

updateStreamSource();
// updateStreamSource();
})

function updateStreamSource(){
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -307,7 +307,7 @@
playbackContainer.append(linksCollection);
}

});
// });

} else if (!recentSession) {
// Need to destroy the iframe if it is rendered
Expand Down
48 changes: 24 additions & 24 deletions program/room_bayshore5.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
setInterval(filterByCurrentSession, 30 * 1000);
filterByCurrentSession();

updateStreamSource();
// updateStreamSource();
})

function updateStreamSource(){
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -307,7 +307,7 @@
playbackContainer.append(linksCollection);
}

});
// });

} else if (!recentSession) {
// Need to destroy the iframe if it is rendered
Expand Down
48 changes: 24 additions & 24 deletions program/room_bayshore6.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
setInterval(filterByCurrentSession, 30 * 1000);
filterByCurrentSession();

updateStreamSource();
// updateStreamSource();
})

function updateStreamSource(){
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -307,7 +307,7 @@
playbackContainer.append(linksCollection);
}

});
// });

} else if (!recentSession) {
// Need to destroy the iframe if it is rendered
Expand Down
Loading

0 comments on commit b139a9d

Please sign in to comment.