forked from 77media/video-flow
粗剪/精剪刷新动画
This commit is contained in:
parent
6a64267c72
commit
7618e0c12d
@ -263,7 +263,7 @@ export function MediaViewer({
|
|||||||
);
|
);
|
||||||
|
|
||||||
// 渲染最终成片
|
// 渲染最终成片
|
||||||
const renderFinalVideo = () => {
|
const renderFinalVideo = (currentStep: string) => {
|
||||||
// 使用真实的final数据,如果没有则使用默认值
|
// 使用真实的final数据,如果没有则使用默认值
|
||||||
const finalVideo = final || {
|
const finalVideo = final || {
|
||||||
url: 'https://cdn.qikongjian.com/videos/1750389908_37d4fffa-8516-43a3-a423-fc0274f40e8a_text_to_video_0.mp4'
|
url: 'https://cdn.qikongjian.com/videos/1750389908_37d4fffa-8516-43a3-a423-fc0274f40e8a_text_to_video_0.mp4'
|
||||||
@ -272,6 +272,7 @@ export 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-${currentStep}`}
|
||||||
onMouseEnter={() => onControlsChange(true)}
|
onMouseEnter={() => onControlsChange(true)}
|
||||||
onMouseLeave={() => onControlsChange(false)}
|
onMouseLeave={() => onControlsChange(false)}
|
||||||
>
|
>
|
||||||
@ -796,7 +797,7 @@ export function MediaViewer({
|
|||||||
|
|
||||||
// 根据当前步骤渲染对应内容
|
// 根据当前步骤渲染对应内容
|
||||||
if (Number(currentStep) === 6 || Number(currentStep) === 5.5) {
|
if (Number(currentStep) === 6 || Number(currentStep) === 5.5) {
|
||||||
return renderFinalVideo();
|
return renderFinalVideo(currentStep);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Number(currentStep) > 2 && Number(currentStep) < 6) {
|
if (Number(currentStep) > 2 && Number(currentStep) < 6) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user