mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-19 01:17:06 +03:00
tweaks
This commit is contained in:
parent
83f3128f72
commit
0a9bf413f6
@ -246,7 +246,7 @@ export default function LiveContextMenu({
|
||||
</div>
|
||||
</div>
|
||||
</ContextMenuItem>
|
||||
{isRestreamed && cameraGroup && (
|
||||
{isRestreamed && cameraGroup && cameraGroup !== "default" && (
|
||||
<>
|
||||
<ContextMenuSeparator />
|
||||
<ContextMenuItem>
|
||||
|
||||
@ -178,12 +178,12 @@ export default function JSMpegPlayer({
|
||||
|
||||
bytesReceivedRef.current = 0;
|
||||
lastTimestampRef.current = currentTimestamp;
|
||||
frameCount = 0;
|
||||
}, 1000);
|
||||
|
||||
return () => {
|
||||
if (statsIntervalRef.current) {
|
||||
clearInterval(statsIntervalRef.current);
|
||||
frameCount = 0;
|
||||
statsIntervalRef.current = null;
|
||||
}
|
||||
};
|
||||
|
||||
@ -89,7 +89,7 @@ export function PlayerStats({ stats, minimal }: PlayerStatsProps) {
|
||||
className={cn(
|
||||
minimal
|
||||
? "absolute bottom-0 left-0 max-h-[50%] w-full overflow-y-auto rounded-b-lg p-1 md:rounded-b-xl md:p-3"
|
||||
: "absolute bottom-2 right-2 rounded-2xl p-4",
|
||||
: "absolute bottom-2 right-2 min-w-52 rounded-2xl p-4",
|
||||
"z-50 flex flex-col gap-1 bg-black/70 text-[9px] duration-300 animate-in fade-in md:text-xs",
|
||||
)}
|
||||
>
|
||||
|
||||
@ -397,6 +397,7 @@ export default function LiveDashboardView({
|
||||
className={grow}
|
||||
key={camera.name}
|
||||
camera={camera.name}
|
||||
cameraGroup={cameraGroup}
|
||||
streamName={Object.values(camera.live.streams)?.[0]}
|
||||
preferredLiveMode={preferredLiveModes[camera.name] ?? "mse"}
|
||||
isRestreamed={isRestreamedStates[camera.name]}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user