Add Video Slicer
parent
a8c7d8182e
commit
dc247557b4
|
@ -571,12 +571,13 @@ module.exports = (s,config,lang) => {
|
|||
s.debugLog(`sliceVideo cutProcessResponse`,cutProcessResponse)
|
||||
const newFilePath = cutProcessResponse.filePath
|
||||
const copyResponse = await copyFile(newFilePath,fileBinFilePath)
|
||||
const fileSize = (await fs.promises.stat(fileBinFilePath)).size
|
||||
s.debugLog(`sliceVideo copyResponse`,copyResponse)
|
||||
const fileBinInsertQuery = {
|
||||
ke: groupKey,
|
||||
mid: monitorId,
|
||||
name: finalFilename,
|
||||
size: video.size,
|
||||
size: fileSize,
|
||||
details: video.details,
|
||||
status: 1,
|
||||
time: video.time,
|
||||
|
|
|
@ -637,6 +637,7 @@ function buildDefaultVideoMenuItems(file){
|
|||
<li><a class="dropdown-item" href="${href}" download>${lang.Download}</a></li>
|
||||
<li><a class="dropdown-item open-video" href="${href}">${lang.Play}</a></li>
|
||||
<li><hr class="dropdown-divider"></li>
|
||||
${permissionCheck('video_delete',file.mid) ? `<li><a class="dropdown-item open-video-studio" href="${href}">${lang.Slice}</a></li>` : ``}
|
||||
${permissionCheck('video_delete',file.mid) ? `<li><a class="dropdown-item delete-video" href="${href}">${lang.Delete}</a></li>` : ``}
|
||||
${permissionCheck('video_delete',file.mid) ? `<li><a class="dropdown-item compress-video" href="${href}">${lang.Compress}</a></li>` : ``}
|
||||
`
|
||||
|
|
Loading…
Reference in New Issue