forked from Github/frigate
Don't detach media (#12421)
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user