From 3d333665f265107d3d65b29d7f637af24e0105d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Wed, 6 Dec 2023 00:18:06 +0100 Subject: [PATCH] Fix flickering video element --- src/js/media.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/js/media.tsx b/src/js/media.tsx index c76a9d7..a6daedb 100644 --- a/src/js/media.tsx +++ b/src/js/media.tsx @@ -117,6 +117,9 @@ export function VideoPlayer({ ms }: VideoPlayerProps) { const videoRef = useRef(null) useEffect(() => { + if (ready) { + return + } if (videoRef.current) { if (videoRef.current) { const ref = videoRef.current