Update libs/events/utils.js

video-slicer-reencoder
Katie Roberts 2022-09-11 21:33:51 +00:00
parent 60cddb11fa
commit 4cbdbfafe1
1 changed files with 1 additions and 1 deletions

View File

@ -572,9 +572,9 @@ module.exports = (s,config,lang,app,io) => {
runRecord()
return
}
const secondBefore = (parseInt(monitorDetails.detector_buffer_seconds_before) || 5) + 1
s.insertCompletedVideo(monitorConfig,{
file : filename,
const secondsBefore = parseInt(monitorDetails.detector_buffer_seconds_before) || 5
endTime: moment(new Date()).subtract(secondBefore,'seconds')._d,
},function(err,response){
const autoCompressionEnabled = monitorDetails.auto_compress_videos === '1';