mirror of
https://github.com/fishtank-dashboard/fishtank-dashboard.git
synced 2026-04-30 09:22:03 -04:00
new yt source
This commit is contained in:
committed by
GitHub
parent
5d52b6bb11
commit
8696a57213
@@ -2937,12 +2937,14 @@
|
|||||||
{ label: 'Market', slug: 'mrke-5', points: '0.2829,0.4910 0.0716,0.4778 0.0736,0.4802 0.1283,0.7407 0.1513,0.8319 0.2087,0.8487 0.2141,0.8271 0.2046,0.8019 0.2188,0.7515 0.2100,0.7215 0.2255,0.6819 0.2195,0.6435' },
|
{ label: 'Market', slug: 'mrke-5', points: '0.2829,0.4910 0.0716,0.4778 0.0736,0.4802 0.1283,0.7407 0.1513,0.8319 0.2087,0.8487 0.2141,0.8271 0.2046,0.8019 0.2188,0.7515 0.2100,0.7215 0.2255,0.6819 0.2195,0.6435' },
|
||||||
{ label: 'Foyer', slug: 'foyr-5', points: '0.1519,0.8283 0.1148,0.9448 0.0419,0.7347 0.0020,0.8475 0.0007,0.9976 0.2019,0.9988 0.2114,0.9796 0.1992,0.9520 0.2120,0.9076 0.2033,0.8752 0.2080,0.8535' },
|
{ label: 'Foyer', slug: 'foyr-5', points: '0.1519,0.8283 0.1148,0.9448 0.0419,0.7347 0.0020,0.8475 0.0007,0.9976 0.2019,0.9988 0.2114,0.9796 0.1992,0.9520 0.2120,0.9076 0.2033,0.8752 0.2080,0.8535' },
|
||||||
{ label: 'Computer Lab', slug: 'bbcl-5', points: '0.4274,0.0120 0.4524,0.0060 0.4565,0.2377 0.4612,0.3782 0.4416,0.4850 0.4396,0.4874 0.4383,0.4910' },
|
{ label: 'Computer Lab', slug: 'bbcl-5', points: '0.4274,0.0120 0.4524,0.0060 0.4565,0.2377 0.4612,0.3782 0.4416,0.4850 0.4396,0.4874 0.4383,0.4910' },
|
||||||
|
{ label: 'Arena', slug: 'bare-5', points: '0.5639,0.3770 0.5740,0.0024 0.5733,0.0084 0.4686,0.0012 0.4720,0.3721'},
|
||||||
],
|
],
|
||||||
'hwup-5': [
|
'hwup-5': [
|
||||||
{ label: 'Corridor', slug: 'codr-5', points: '0.5227,0.3409 0.5206,0.0300 0.5774,0.0372 0.5726,0.3469' },
|
{ label: 'Corridor', slug: 'codr-5', points: '0.5227,0.3409 0.5206,0.0300 0.5774,0.0372 0.5726,0.3469' },
|
||||||
{ label: 'East Wing', slug: 'bkny-5', points: '0.6159,0.7851 0.4079,0.7863 0.3869,0.9976 0.6334,0.9964' },
|
{ label: 'East Wing', slug: 'bkny-5', points: '0.6159,0.7851 0.4079,0.7863 0.3869,0.9976 0.6334,0.9964' },
|
||||||
{ label: 'Jungle Room', slug: 'br4j-5', points: '0.5861,0.5078 0.5922,0.0384 0.6145,0.0540 0.6064,0.4070 0.5936,0.5954' },
|
{ label: 'Jungle Room', slug: 'br4j-5', points: '0.5861,0.5078 0.5922,0.0384 0.6145,0.0540 0.6064,0.4070 0.5936,0.5954' },
|
||||||
{ label: 'Dining Room', slug: 'dnrm-5', points: '0.5011,0.3397 0.5004,0.2017 0.4551,0.2041 0.4558,0.2353 0.4443,0.2881 0.4450,0.3397' },
|
{ label: 'Dining Room', slug: 'dnrm-5', points: '0.5011,0.3397 0.5004,0.2017 0.4551,0.2041 0.4558,0.2353 0.4443,0.2881 0.4450,0.3397' },
|
||||||
|
{ label: 'Job Board', slug: 'jobb-5', points: '0.6301,0.1089 0.6819,0.1484 0.7863,0.2728 0.7694,0.4918 0.7513,0.6594 0.7290,0.7970 0.7109,0.9059 0.6725,0.6702 0.6550,0.5876 0.6341,0.5074 0.6173,0.4428 0.6220,0.3686 0.6267,0.2657 0.6274,0.1137'},
|
||||||
],
|
],
|
||||||
'dmrm2-5': [
|
'dmrm2-5': [
|
||||||
{ label: 'Dorm', slug: 'dmrm-5', points: '0.5254,0.0024 0.5254,0.0684 0.6213,0.0684 0.6213,0.0036' },
|
{ label: 'Dorm', slug: 'dmrm-5', points: '0.5254,0.0024 0.5254,0.0684 0.6213,0.0684 0.6213,0.0036' },
|
||||||
@@ -2972,6 +2974,13 @@
|
|||||||
'br4j-5': [
|
'br4j-5': [
|
||||||
{ label: 'West Wing', slug: 'hwup-5', points: '0.4869,0.3830 0.4923,0.0144 0.4227,0.0228 0.4214,0.1813 0.4220,0.4298' },
|
{ label: 'West Wing', slug: 'hwup-5', points: '0.4869,0.3830 0.4923,0.0144 0.4227,0.0228 0.4214,0.1813 0.4220,0.4298' },
|
||||||
],
|
],
|
||||||
|
'bare-5': [
|
||||||
|
{ label: 'East Wing', slug: 'bkny-5', points: '0.5368,0.2641 0.5497,0.0024 0.4943,0.0024 0.4875,0.2953'},
|
||||||
|
],
|
||||||
|
'jobb-5': [
|
||||||
|
{ label: 'East Wing', slug: 'bkny-5', points: '0.8785,0.0024 0.8785,0.9952 0.8785,0.9952 0.9967,0.9940 0.9981,0.0036'},
|
||||||
|
{ label: 'West Wing', slug: 'hwup-5', points: '0.1276,0.9976 0.1276,0.0000 0.1276,0.0000 0.0014,0.0012 0.0014,0.9976'},
|
||||||
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
const ROOM_NAMES = {
|
const ROOM_NAMES = {
|
||||||
@@ -2984,13 +2993,13 @@
|
|||||||
"hwup-5": "West Wing",
|
"hwup-5": "West Wing",
|
||||||
"br4j-5": "Jungle Room",
|
"br4j-5": "Jungle Room",
|
||||||
"bbcl-5": "Computer Lab",
|
"bbcl-5": "Computer Lab",
|
||||||
"cameraman2-5": "Cameraman", "site": "Site-wide",
|
"cameraman2-5": "Cameraman", "site": "Site-wide", "bare-5": "Arena", "jobb-5": "Job Board",
|
||||||
};
|
};
|
||||||
|
|
||||||
const DEFAULT_IDX = 1; // Director Mode
|
const DEFAULT_IDX = 1; // Director Mode
|
||||||
const hlsInstances = {};
|
const hlsInstances = {};
|
||||||
let featuredIdx = DEFAULT_IDX;
|
let featuredIdx = DEFAULT_IDX;
|
||||||
let ytSourceActive = true;
|
let ytSourceActive = false;
|
||||||
let ytReadyCount = 0;
|
let ytReadyCount = 0;
|
||||||
// directorCell = which grid index currently shows the Director stream (null = director is in featured)
|
// directorCell = which grid index currently shows the Director stream (null = director is in featured)
|
||||||
let directorCell = null;
|
let directorCell = null;
|
||||||
@@ -4122,6 +4131,7 @@
|
|||||||
document.addEventListener("DOMContentLoaded", () => {
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
updateClock();
|
updateClock();
|
||||||
setInterval(updateClock, 1000);
|
setInterval(updateClock, 1000);
|
||||||
|
toggleYtSource();
|
||||||
if (getToken()) {
|
if (getToken()) {
|
||||||
setApiStatus('live');
|
setApiStatus('live');
|
||||||
scheduleTokenRefresh();
|
scheduleTokenRefresh();
|
||||||
@@ -4183,7 +4193,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (msg._ft === 'event') {
|
if (msg._ft === 'event') {
|
||||||
if (msg.event !== 'chat:message') console.log(`[FT-WS EVENT] "${msg.event}"`, msg.data);
|
console.log(`[FT-WS EVENT] "${msg.event}"`, msg.data); //if (msg.event !== 'chat:message')
|
||||||
if (msg.event === 'notification:global') {
|
if (msg.event === 'notification:global') {
|
||||||
const [message, subtitle] = Array.isArray(msg.data) ? msg.data : [msg.data, ''];
|
const [message, subtitle] = Array.isArray(msg.data) ? msg.data : [msg.data, ''];
|
||||||
if (message) showNotif(message, subtitle || '');
|
if (message) showNotif(message, subtitle || '');
|
||||||
|
|||||||
40
server.js
40
server.js
@@ -17,28 +17,28 @@ const CAM_PORT = 443;
|
|||||||
// Per-slug YouTube video IDs
|
// Per-slug YouTube video IDs
|
||||||
const YT_VIDEO_IDS = {
|
const YT_VIDEO_IDS = {
|
||||||
'dirc-5': 'lYK5M3PCnNg',
|
'dirc-5': 'lYK5M3PCnNg',
|
||||||
'foyr-5': 'MvaKWOQRHkA',
|
'foyr-5': 'rJXjNHA6mQ4',
|
||||||
'gsrm-5': 'TYPEH85q3JU',
|
'gsrm-5': 'ycEacFkkYJ0',
|
||||||
'mrke-5': 'm8BoYX8MRxQ',
|
'mrke-5': 'U-SQGRjhG4M',
|
||||||
'mrke2-5': 'VKactnWtMLU',
|
'mrke2-5': '0P_wjoBzFxg',
|
||||||
'hwdn-5': 'PFGmM_L63O4',
|
'hwdn-5': 'Sh_dMTwG9mI',
|
||||||
'dmrm-5': 'TohEVS4CYn0',
|
'dmrm-5': '4dDNVY34qZg',
|
||||||
'dmrm2-5': '_3EdEfoyhtI',
|
'dmrm2-5': 'vju6U-bAC_E',
|
||||||
'dmcl-5': 'eWRFlT9m94c',
|
'dmcl-5': '24JoqBE-6qs',
|
||||||
'jckz-5': 'q4C-ePNmuEU',
|
'jckz-5': 'BHYt-4ELhr8',
|
||||||
'brrr-5': 'RCqC9H10HsE',
|
'brrr-5': 'Sk_UkVCAbJs',
|
||||||
'brrr2-5': '5NB7X9QJRtA',
|
'brrr2-5': '7BIe5c0vMT4',
|
||||||
'brpz-5': '8vacKvkKI0U',
|
'brpz-5': 'Vzxm1w2j9z8',
|
||||||
'ktch-5': 'DfIYesgiGfY',
|
'ktch-5': 'lLI2unNuado',
|
||||||
'dnrm-5': 's2xzD6V4mKI',
|
'dnrm-5': 'r0Ejn5L-g4E',
|
||||||
'hwup-5': 'k6MDn6y9Jjs',
|
'hwup-5': 'k6MDn6y9Jjs',
|
||||||
'bbcl-5': 'bJpr7Ueutag',
|
'bbcl-5': 'bLTVQo4mmSc',
|
||||||
'br4j-5': 'u1Zcyl5zrN4',
|
'br4j-5': 'jgR-hTS301I',
|
||||||
'bkny-5': 'JWJDpCQyNh8',
|
'bkny-5': 'isxrbll0eKQ',
|
||||||
'codr-5': 'b1M083H1pis',
|
'codr-5': 'tgSMY6TQ-tc',
|
||||||
'cfsl-5': 'HB7KvlwP2Rs',
|
'cfsl-5': 'tjDX_RnBI1U',
|
||||||
'bare-5': 'UcpOf1t-Sh0',
|
'bare-5': 'UcpOf1t-Sh0',
|
||||||
'jobb-5': 'hBJtFeLXOi4',
|
'jobb-5': 'BTys0Rjs4Is',
|
||||||
};
|
};
|
||||||
|
|
||||||
const ytManifests = {}; // slug -> current manifest URL
|
const ytManifests = {}; // slug -> current manifest URL
|
||||||
|
|||||||
Reference in New Issue
Block a user