From d08fe170f24a73392cc58715ec43e8792d182b0f Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Fri, 12 Jul 2024 15:17:38 -0600 Subject: [PATCH] Recordings improvements (#12417) --- web/src/components/player/HlsVideoPlayer.tsx | 2 ++ web/src/components/player/dynamic/DynamicVideoPlayer.tsx | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/components/player/HlsVideoPlayer.tsx b/web/src/components/player/HlsVideoPlayer.tsx index d66ed4b53..2eb6b878c 100644 --- a/web/src/components/player/HlsVideoPlayer.tsx +++ b/web/src/components/player/HlsVideoPlayer.tsx @@ -110,6 +110,8 @@ export default function HlsVideoPlayer({ if (!hlsRef.current) { hlsRef.current = new Hls(); hlsRef.current.attachMedia(videoRef.current); + } else { + hlsRef.current.detachMedia(); } hlsRef.current.loadSource(currentSource); diff --git a/web/src/components/player/dynamic/DynamicVideoPlayer.tsx b/web/src/components/player/dynamic/DynamicVideoPlayer.tsx index 2f347404f..3f82cd352 100644 --- a/web/src/components/player/dynamic/DynamicVideoPlayer.tsx +++ b/web/src/components/player/dynamic/DynamicVideoPlayer.tsx @@ -204,7 +204,6 @@ export default function DynamicVideoPlayer({ clearTimeout(loadingTimeout); } - setIsLoading(false); setNoRecording(false); }} setFullResolution={setFullResolution}