Fix flickering video element

This commit is contained in:
Torjus Håkestad 2023-12-06 00:18:06 +01:00
parent ccbc8de04d
commit 3d333665f2

View File

@ -117,6 +117,9 @@ export function VideoPlayer({ ms }: VideoPlayerProps) {
const videoRef = useRef<HTMLVideoElement>(null) const videoRef = useRef<HTMLVideoElement>(null)
useEffect(() => { useEffect(() => {
if (ready) {
return
}
if (videoRef.current) { if (videoRef.current) {
if (videoRef.current) { if (videoRef.current) {
const ref = videoRef.current const ref = videoRef.current