Update libs/events/utils.js
parent
60cddb11fa
commit
4cbdbfafe1
|
@ -572,9 +572,9 @@ module.exports = (s,config,lang,app,io) => {
|
||||||
runRecord()
|
runRecord()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
const secondBefore = (parseInt(monitorDetails.detector_buffer_seconds_before) || 5) + 1
|
||||||
s.insertCompletedVideo(monitorConfig,{
|
s.insertCompletedVideo(monitorConfig,{
|
||||||
file : filename,
|
file : filename,
|
||||||
const secondsBefore = parseInt(monitorDetails.detector_buffer_seconds_before) || 5
|
|
||||||
endTime: moment(new Date()).subtract(secondBefore,'seconds')._d,
|
endTime: moment(new Date()).subtract(secondBefore,'seconds')._d,
|
||||||
},function(err,response){
|
},function(err,response){
|
||||||
const autoCompressionEnabled = monitorDetails.auto_compress_videos === '1';
|
const autoCompressionEnabled = monitorDetails.auto_compress_videos === '1';
|
||||||
|
|
Loading…
Reference in New Issue