import { useRef, useState } from "react"; import bgShadow from "&/images/global/card-shadow.svg"; import videoThumb from "&/images/global/header.png"; import playIcon from "&/images/icons/bouton play.svg"; export default function VideoFrame() { const [playing, setPlaying] = useState(false); const ref = useRef(null); const start = (): void => { setPlaying(true); requestAnimationFrame(() => { void ref.current?.play(); }); }; const videoSrc = "/storage/videos/motion.mp4"; return (
{playing ? ( ) : ( )}
); }