send monitor_watch_on to all connected clients when monitor restart

rtmpServer-verbose
Moe 2024-11-05 15:39:21 -08:00
parent cba997a972
commit 62742670b4
1 changed files with 7 additions and 0 deletions

View File

@ -734,6 +734,13 @@ module.exports = function(s,config,lang){
break;
case'start':case'record':
await monitorStart(e)
s.tx({
f: 'monitor_watch_on',
id: monitorId,
ke: groupKey,
subStreamChannel: s.group[groupKey].activeMonitors[monitorId].subStreamChannel,
warnings: s.group[groupKey].activeMonitors[monitorId].warnings || []
}, `MON_${groupKey}${monitorId}`)
break;
default:
console.log('No s.camera execute : ',selectedMode)