Respect motion only when playing back (#10632)

* Respect motion only when playing back motion

* Increase efficiency

* Fix import
This commit is contained in:
Nicolas Mowen
2024-03-23 13:49:31 -06:00
committed by GitHub
parent c2a32bd6c1
commit bb50b2b6f4
8 changed files with 82 additions and 16 deletions

View File

@@ -1,3 +1,4 @@
import { Timeline } from "@/types/timeline";
import { useState } from "react";
type TimelineEventOverlayProps = {

View File

@@ -6,7 +6,7 @@ import { useEffect, useMemo, useState } from "react";
import MSEPlayer from "./MsePlayer";
import JSMpegPlayer from "./JSMpegPlayer";
import { MdCircle } from "react-icons/md";
import useCameraActivity from "@/hooks/use-camera-activity";
import { useCameraActivity } from "@/hooks/use-camera-activity";
import { useRecordingsState } from "@/api/ws";
import { LivePlayerMode } from "@/types/live";
import useCameraLiveMode from "@/hooks/use-camera-live-mode";

View File

@@ -1,6 +1,7 @@
import { Recording } from "@/types/record";
import { DynamicPlayback } from "@/types/playback";
import { PreviewController } from "../PreviewPlayer";
import { Timeline } from "@/types/timeline";
type PlayerMode = "playback" | "scrubbing";

View File

@@ -8,6 +8,7 @@ import { Preview } from "@/types/preview";
import PreviewPlayer, { PreviewController } from "../PreviewPlayer";
import { DynamicVideoController } from "./DynamicVideoController";
import HlsVideoPlayer from "../HlsVideoPlayer";
import { Timeline } from "@/types/timeline";
/**
* Dynamically switches between video playback and scrubbing preview player.