diff --git a/services/recordInfoService.js b/services/recordInfoService.js index a656a44..a1ec25f 100644 --- a/services/recordInfoService.js +++ b/services/recordInfoService.js @@ -63,6 +63,8 @@ recordInfoService.prototype.getRecordFileURL = async(path,time)=>{ let files=fs.readdirSync(pathURL); files.forEach(function(file){ let type = file.split('.'); + console.log(type[1]) + //m3u8 配置 if(type[1] != 'mp4'){ }else{ let fileN = type[0].split('_'); @@ -70,6 +72,7 @@ recordInfoService.prototype.getRecordFileURL = async(path,time)=>{ backFile.push({ channel:record.channel, uid:record.uid, + timestamp:record.timestamp, createTime:record.createTime, fileUrl:applacation.recordPath+date1+'/'+cfile+'/'+file })