Don't detach media

This commit is contained in:
Nicolas Mowen 2024-07-12 15:24:36 -06:00
parent d08fe170f2
commit 3253447123

View File

@ -110,8 +110,6 @@ export default function HlsVideoPlayer({
if (!hlsRef.current) { if (!hlsRef.current) {
hlsRef.current = new Hls(); hlsRef.current = new Hls();
hlsRef.current.attachMedia(videoRef.current); hlsRef.current.attachMedia(videoRef.current);
} else {
hlsRef.current.detachMedia();
} }
hlsRef.current.loadSource(currentSource); hlsRef.current.loadSource(currentSource);