From b0a1ca1d75e5eea1c7a2cbb685236179641000c3 Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Wed, 11 Sep 2024 17:10:22 +0200 Subject: [PATCH] spot: fix autoplay check --- .../Spots/SpotPlayer/components/SpotVideoContainer.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/app/components/Spots/SpotPlayer/components/SpotVideoContainer.tsx b/frontend/app/components/Spots/SpotPlayer/components/SpotVideoContainer.tsx index a319658bf..8a078d9cf 100644 --- a/frontend/app/components/Spots/SpotPlayer/components/SpotVideoContainer.tsx +++ b/frontend/app/components/Spots/SpotPlayer/components/SpotVideoContainer.tsx @@ -105,6 +105,7 @@ function SpotVideoContainer({ videoRef.current.src = ''; setTimeout(() => { videoRef.current!.src = videoURL; + startPlaying(); }, 0); } @@ -117,8 +118,6 @@ function SpotVideoContainer({ }); }; check(); - videoRef.current.src = videoURL; - startPlaying(); } } else if (streamFile && videoRef.current && videoRef.current.canPlayType('application/vnd.apple.mpegurl')) { setLoaded(true); @@ -224,7 +223,7 @@ function SpotVideoContainer({ width={75} className="mb-5" /> -
Loading Spot Recording
+
Loading Spot Recording...
)}