mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 09:45:22 +03:00
Don't close mse when pausing video
This commit is contained in:
parent
9b99ba81e5
commit
f90053b28c
@ -64,10 +64,11 @@ export default function MsePlayer({ camera, width, height }) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
video.onpause = () => {
|
return () => {
|
||||||
|
const video = document.getElementById('video');
|
||||||
|
video.srcObject = null;
|
||||||
ws.close();
|
ws.close();
|
||||||
video.src = null;
|
};
|
||||||
}
|
|
||||||
}, [url]);
|
}, [url]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user