postiz/libraries/react-shared-libraries/src/helpers/video.frame.tsx

17 lines
295 B
TypeScript

'use client';
import { FC } from 'react';
export const VideoFrame: FC<{
url: string;
}> = (props) => {
const { url } = props;
return (
<video
className="w-full h-full object-cover"
src={url + '#t=0.1'}
preload="metadata"
autoPlay={false}
></video>
);
};