From 843d301950b3779c946df0fc87b10984e4210b2c Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Fri, 12 Jul 2024 15:29:42 -0600 Subject: [PATCH] Don't detach media (#12421) --- web/src/components/player/HlsVideoPlayer.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/web/src/components/player/HlsVideoPlayer.tsx b/web/src/components/player/HlsVideoPlayer.tsx index 2eb6b878c..d66ed4b53 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);