Init WebCG

This commit is contained in:
2026-08-12 14:21:28 +09:00
commit 5c01660f97
170 changed files with 46248 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
const spx = require('./spx_server_functions.js');
const PlayoutCCG = require('./playout_casparCG.js');
// Experimental. Not in use yet.
module.exports = {
panic: function () {
try {
io.emit('SPXMessage2Client', {spxcmd: 'clearAllLayers'}); // clear webrenderers
io.emit('SPXMessage2Controller', {APIcmd:'RundownAllStatesToStopped'}); // stop UI and save stopped values to rundown
if (spx.CCGServersConfigured){
PlayoutCCG.clearChannelsFromGCServer() // server is optional, so doing ALL!!!!!
}
console.log('PANIC HANDLER');
return true
} catch (error) {
console.log('Panic error' + error);
return false
}
},
} // end of exports