remove video preview
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user