mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-12 10:07:36 +03:00
clean up
This commit is contained in:
parent
846a8e3f63
commit
a95dc14cff
@ -284,17 +284,14 @@ export function RecordingView({
|
||||
|
||||
const manuallySetCurrentTime = useCallback(
|
||||
(time: number, play: boolean = false) => {
|
||||
console.log("manuallySetCurrentTime:", time, "play:", play);
|
||||
if (!currentTimeRange) {
|
||||
return;
|
||||
}
|
||||
setCurrentTime(time);
|
||||
|
||||
if (currentTimeRange.after <= time && currentTimeRange.before >= time) {
|
||||
console.log("in range, seeking player");
|
||||
mainControllerRef.current?.seekToTimestamp(time, play);
|
||||
} else {
|
||||
console.log("out of range, updating segment");
|
||||
updateSelectedSegment(time, true);
|
||||
}
|
||||
},
|
||||
@ -313,7 +310,6 @@ export function RecordingView({
|
||||
updateSelectedSegment(currentTime, true);
|
||||
}
|
||||
} else if (playerTime != currentTime && timelineType != "detail") {
|
||||
console.log("Resuming playback after seek");
|
||||
mainControllerRef.current?.play();
|
||||
}
|
||||
}
|
||||
@ -520,15 +516,12 @@ export function RecordingView({
|
||||
if (open) {
|
||||
mainControllerRef.current?.pause();
|
||||
} else {
|
||||
console.log("Resuming playback after closing analysis dialog");
|
||||
mainControllerRef.current?.play();
|
||||
}
|
||||
},
|
||||
[mainControllerRef],
|
||||
);
|
||||
|
||||
console.log("in recordingview:", mainControllerRef?.current?.isPlaying());
|
||||
|
||||
return (
|
||||
<DetailStreamProvider
|
||||
isDetailMode={timelineType === "detail"}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user