正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
| @@ -63,6 +63,8 @@ recordInfoService.prototype.getRecordFileURL = async(path,time)=>{ | @@ -63,6 +63,8 @@ recordInfoService.prototype.getRecordFileURL = async(path,time)=>{ | ||
| 63 | let files=fs.readdirSync(pathURL); | 63 | let files=fs.readdirSync(pathURL); |
| 64 | files.forEach(function(file){ | 64 | files.forEach(function(file){ |
| 65 | let type = file.split('.'); | 65 | let type = file.split('.'); |
| 66 | + console.log(type[1]) | ||
| 67 | + //m3u8 配置 | ||
| 66 | if(type[1] != 'mp4'){ | 68 | if(type[1] != 'mp4'){ |
| 67 | }else{ | 69 | }else{ |
| 68 | let fileN = type[0].split('_'); | 70 | let fileN = type[0].split('_'); |
| @@ -70,6 +72,7 @@ recordInfoService.prototype.getRecordFileURL = async(path,time)=>{ | @@ -70,6 +72,7 @@ recordInfoService.prototype.getRecordFileURL = async(path,time)=>{ | ||
| 70 | backFile.push({ | 72 | backFile.push({ |
| 71 | channel:record.channel, | 73 | channel:record.channel, |
| 72 | uid:record.uid, | 74 | uid:record.uid, |
| 75 | + timestamp:record.timestamp, | ||
| 73 | createTime:record.createTime, | 76 | createTime:record.createTime, |
| 74 | fileUrl:applacation.recordPath+date1+'/'+cfile+'/'+file | 77 | fileUrl:applacation.recordPath+date1+'/'+cfile+'/'+file |
| 75 | }) | 78 | }) |
-
请 注册 或 登录 后发表评论