remove video preview

This commit is contained in:
Weixuan Fu
2024-06-29 14:06:09 +08:00
parent 201a1aabd5
commit eccfd87ce4
+1 -31
View File
@@ -52,35 +52,5 @@ export default function MediaPreview({
src={`/workspace/view_media?filename=${mediaLocalPath}`}
alt="workflow image renamed or moved from output folder"
/>
) : (
<div
style={{
width: size + "px",
height: size + `px`,
overflow: "hidden",
position: "relative",
}}
>
<video
width={size}
height={size}
src={`/workspace/view_media?filename=${mediaLocalPath}`}
loop={true}
autoPlay={autoPlay ?? false}
muted={true}
style={{
// for video to crop to center
objectFit: "cover",
width: "100%",
height: "100%",
// position: "absolute",
// top: "50%", // Align the center of the video with the center of the container vertically
// left: "50%", // Align the center of the video with the center of the container horizontally
// transform: "translate(-50%, -50%)", // Offset the video to ensure it is centered
}}
>
<track kind="captions" />
</video>
</div>
);
) : null;
}