Skip to content

NVR with realtime local object detection for IP cameras

Don't detach media (#12421)

Nicolas Mowen843d301950b3
diff --git a/web/src/components/player/HlsVideoPlayer.tsx b/web/src/components/player/HlsVideoPlayer.tsx
index 2eb6b878cd..d66ed4b53b 100644
--- a/web/src/components/player/HlsVideoPlayer.tsx
+++ b/web/src/components/player/HlsVideoPlayer.tsx
@@ -110,8 +110,6 @@ export default function HlsVideoPlayer({
if (!hlsRef.current) {
hlsRef.current = new Hls();
hlsRef.current.attachMedia(videoRef.current);
- } else {
- hlsRef.current.detachMedia();
}
hlsRef.current.loadSource(currentSource);