mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-09-05 17:51:36 +02:00
fix linter from complaining
This commit is contained in:
parent
1ed88f52ba
commit
1b77187245
@ -338,7 +338,7 @@ function MSEPlayer({
|
|||||||
// console.debug("VideoRTC.buffer", b.byteLength, bufLen);
|
// console.debug("VideoRTC.buffer", b.byteLength, bufLen);
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
sb?.appendBuffer(data);
|
sb?.appendBuffer(data as ArrayBuffer);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// no-op
|
// no-op
|
||||||
}
|
}
|
||||||
@ -592,7 +592,7 @@ function MSEPlayer({
|
|||||||
const now = Date.now();
|
const now = Date.now();
|
||||||
const bytesLoaded = totalBytesLoaded.current;
|
const bytesLoaded = totalBytesLoaded.current;
|
||||||
const timeElapsed = (now - lastTimestamp) / 1000; // seconds
|
const timeElapsed = (now - lastTimestamp) / 1000; // seconds
|
||||||
const bandwidth = (bytesLoaded - lastLoadedBytes) / timeElapsed / 1000; // kBps
|
const bandwidth = (bytesLoaded - lastLoadedBytes) / timeElapsed / 1024; // kbps
|
||||||
|
|
||||||
lastLoadedBytes = bytesLoaded;
|
lastLoadedBytes = bytesLoaded;
|
||||||
lastTimestamp = now;
|
lastTimestamp = now;
|
||||||
|
Loading…
Reference in New Issue
Block a user