mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Don't detach media (#12421)
This commit is contained in:
parent
d08fe170f2
commit
843d301950
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user