mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-13 06:35:24 +03:00
clean up
This commit is contained in:
parent
d09e1e5512
commit
fc49a1e601
@ -274,7 +274,7 @@ function MSEPlayer({
|
||||
onmessageRef.current["mse"] = (msg) => {
|
||||
if (msg.type !== "mse") return;
|
||||
|
||||
console.log(msg.value);
|
||||
console.log(camera, "codecs", msg.value);
|
||||
|
||||
let sb: SourceBuffer | undefined;
|
||||
try {
|
||||
@ -347,12 +347,6 @@ function MSEPlayer({
|
||||
|
||||
const now = Date.now();
|
||||
|
||||
// we either recently just started streaming or recently
|
||||
// jumped to live, so don't jump to live again right away
|
||||
if (now - lastJumpTimeRef.current < BUFFERING_COOLDOWN_TIMEOUT) {
|
||||
return;
|
||||
}
|
||||
|
||||
const buffered = videoRef.current.buffered;
|
||||
if (buffered.length > 0) {
|
||||
const liveEdge = buffered.end(buffered.length - 1);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user