forked from 77media/video-flow
粗剪精剪任意有数据就完成
This commit is contained in:
parent
41530410e8
commit
0d59fd1bbb
@ -300,7 +300,7 @@ export const MediaViewer = React.memo(function MediaViewer({
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className="relative w-full h-full rounded-lg overflow-hidden"
|
className="relative w-full h-full rounded-lg overflow-hidden"
|
||||||
key={`render-video-${taskObject.final.note}`}
|
key={`render-video-${taskObject.final.url}`}
|
||||||
>
|
>
|
||||||
<div className="relative w-full h-full group">
|
<div className="relative w-full h-full group">
|
||||||
{/* 背景模糊的视频 */}
|
{/* 背景模糊的视频 */}
|
||||||
|
|||||||
@ -292,6 +292,7 @@ export function useWorkflowData() {
|
|||||||
taskCurrent.currentStage = 'final_video';
|
taskCurrent.currentStage = 'final_video';
|
||||||
taskCurrent.final.url = task.task_result.video;
|
taskCurrent.final.url = task.task_result.video;
|
||||||
taskCurrent.final.note = 'simple';
|
taskCurrent.final.note = 'simple';
|
||||||
|
taskCurrent.status = 'COMPLETED';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -464,12 +465,14 @@ export function useWorkflowData() {
|
|||||||
taskCurrent.currentStage = 'final_video';
|
taskCurrent.currentStage = 'final_video';
|
||||||
taskCurrent.final.url = data.final_simple_video.video;
|
taskCurrent.final.url = data.final_simple_video.video;
|
||||||
taskCurrent.final.note = 'simple';
|
taskCurrent.final.note = 'simple';
|
||||||
|
taskCurrent.status = 'COMPLETED';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.final_video && data.final_video.video) {
|
if (data.final_video && data.final_video.video) {
|
||||||
taskCurrent.currentStage = 'final_video';
|
taskCurrent.currentStage = 'final_video';
|
||||||
taskCurrent.final.url = data.final_video.video;
|
taskCurrent.final.url = data.final_video.video;
|
||||||
taskCurrent.final.note = 'final';
|
taskCurrent.final.note = 'final';
|
||||||
|
taskCurrent.status = 'COMPLETED';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user