mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-13 22:55:26 +03:00
clean up
This commit is contained in:
parent
d09e1e5512
commit
fc49a1e601
@ -274,7 +274,7 @@ function MSEPlayer({
|
|||||||
onmessageRef.current["mse"] = (msg) => {
|
onmessageRef.current["mse"] = (msg) => {
|
||||||
if (msg.type !== "mse") return;
|
if (msg.type !== "mse") return;
|
||||||
|
|
||||||
console.log(msg.value);
|
console.log(camera, "codecs", msg.value);
|
||||||
|
|
||||||
let sb: SourceBuffer | undefined;
|
let sb: SourceBuffer | undefined;
|
||||||
try {
|
try {
|
||||||
@ -347,12 +347,6 @@ function MSEPlayer({
|
|||||||
|
|
||||||
const now = Date.now();
|
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;
|
const buffered = videoRef.current.buffered;
|
||||||
if (buffered.length > 0) {
|
if (buffered.length > 0) {
|
||||||
const liveEdge = buffered.end(buffered.length - 1);
|
const liveEdge = buffered.end(buffered.length - 1);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user