fix downloadTimelapseVideo

obj-track-as-separate-option
chen moye 2023-10-13 01:48:21 +00:00
parent d60e5c5d41
commit 48d564e549
1 changed files with 7 additions and 0 deletions

View File

@ -311,6 +311,13 @@ $(document).ready(function(e){
function downloadTimelapseFrame(frame){
downloadFile(frame.href,frame.filename)
}
function buildFileBinUrl(data){
return apiBaseUrl + '/fileBin/' + data.ke + '/' + data.mid + '/' + data.name
}
function downloadTimelapseVideo(data){
var downloadUrl = buildFileBinUrl(data)
downloadFile(downloadUrl,data.name)
}
function onTimelapseVideoBuildComplete(data){
var saveBuiltVideo = dashboardOptions().switches.timelapseSaveBuiltVideo
if(saveBuiltVideo === 1){