diff --git a/web/src/components/player/PreviewPlayer.tsx b/web/src/components/player/PreviewPlayer.tsx index 82b9ca8e7..5dd8a9c91 100644 --- a/web/src/components/player/PreviewPlayer.tsx +++ b/web/src/components/player/PreviewPlayer.tsx @@ -172,6 +172,12 @@ function PreviewVideoPlayer({ const [firstLoad, setFirstLoad] = useState(true); + useEffect(() => { + if (cameraPreviews && cameraPreviews.length > 0) { + setFirstLoad(false); + } + }, [cameraPreviews]); + const [currentPreview, setCurrentPreview] = useState(initialPreview); const onPreviewSeeked = useCallback(() => {