make MJPEG Input Types Orphan Check when process closes

fix-non-showing-inputs
Moe Alam 2020-11-01 09:10:35 -08:00
parent e3491fb8d8
commit 56905c04f7
1 changed files with 8 additions and 0 deletions

View File

@ -1556,6 +1556,14 @@ module.exports = function(s,config,lang){
var wantedStatus = lang.Idle var wantedStatus = lang.Idle
} }
s.sendMonitorStatus({id:e.id,ke:e.ke,status:wantedStatus}) s.sendMonitorStatus({id:e.id,ke:e.ke,status:wantedStatus})
if(e.type === 'mjpeg'){
setTimeout(() => {
s.orphanedVideoCheck({
ke: e.ke,
mid: e.id,
},2,null,true)
},2000)
}
s.onMonitorStopExtensions.forEach(function(extender){ s.onMonitorStopExtensions.forEach(function(extender){
extender(Object.assign(s.group[e.ke].rawMonitorConfigurations[e.id],{}),e) extender(Object.assign(s.group[e.ke].rawMonitorConfigurations[e.id],{}),e)
}) })