Add Video Slicer

fix-timezone-by-ui
Moe 2022-10-16 23:34:30 +00:00
parent a8c7d8182e
commit dc247557b4
2 changed files with 3 additions and 1 deletions

View File

@ -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,

View File

@ -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>` : ``}
`