mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-19 01:17:06 +03:00
stats fixes
This commit is contained in:
parent
bfb2ea8583
commit
d718b6621e
@ -581,7 +581,7 @@ function MSEPlayer({
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const video = videoRef.current;
|
const video = videoRef.current;
|
||||||
let lastLoadedBytes = 0;
|
let lastLoadedBytes = totalBytesLoaded.current;
|
||||||
let lastTimestamp = Date.now();
|
let lastTimestamp = Date.now();
|
||||||
|
|
||||||
if (!getStats) return;
|
if (!getStats) return;
|
||||||
|
|||||||
@ -298,7 +298,7 @@ export default function WebRtcPlayer({
|
|||||||
};
|
};
|
||||||
// we need to listen on the value of the ref
|
// we need to listen on the value of the ref
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [pcRef, pcRef.current]);
|
}, [pcRef, pcRef.current, getStats]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<video
|
<video
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user