Don't detach media (#12421)

This commit is contained in:
Nicolas Mowen 2024-07-12 15:29:42 -06:00 committed by GitHub
parent d08fe170f2
commit 843d301950
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);