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}