diff --git a/web/src/components/player/dynamic/DynamicVideoPlayer.tsx b/web/src/components/player/dynamic/DynamicVideoPlayer.tsx
index d3cf4ee66..7576a90cb 100644
--- a/web/src/components/player/dynamic/DynamicVideoPlayer.tsx
+++ b/web/src/components/player/dynamic/DynamicVideoPlayer.tsx
@@ -89,7 +89,13 @@ export default function DynamicVideoPlayer({
if (!isScrubbing) {
setLoadingTimeout(setTimeout(() => setIsLoading(true), 1000));
}
- }, [isScrubbing]);
+
+ return () => {
+ if (loadingTimeout) {
+ clearTimeout(loadingTimeout)
+ }
+ }
+ }, [camera, isScrubbing]);
const onPlayerLoaded = useCallback(() => {
if (!controller || !startTimestamp) {
@@ -179,7 +185,7 @@ export default function DynamicVideoPlayer({
}}
/>
{isLoading && (
-
+
)}
>
);