Add ability to add legacy birdseye to camera groups (#10404)

* initial try

* add birdseye

* remove vite

* cleanup

* memoize

* remove console

* ensure birdseye is actually enabled in config

* birdseye first in select list and fix jsmpeg player size
This commit is contained in:
Josh Hawkins
2024-03-12 14:53:01 -05:00
committed by GitHub
parent dce2e9b366
commit 9e10b914c9
5 changed files with 61 additions and 20 deletions

View File

@@ -22,6 +22,7 @@ import {
SelectTrigger,
SelectValue,
} from "@/components/ui/select";
import BirdseyeLivePlayer from "@/components/player/BirdseyeLivePlayer";
// Color data
const colors = [
@@ -184,6 +185,7 @@ function UIPlayground() {
};
const [isEventsReviewTimeline, setIsEventsReviewTimeline] = useState(true);
const birdseyeConfig = config?.birdseye;
return (
<>
@@ -243,6 +245,14 @@ function UIPlayground() {
<div className="w-[40px] my-4">
<CameraActivityIndicator />
</div>
<div className="">
{birdseyeConfig && (
<BirdseyeLivePlayer
birdseyeConfig={birdseyeConfig}
liveMode={birdseyeConfig.restream ? "mse" : "jsmpeg"}
/>
)}
</div>
<p>
<Button onClick={handleZoomOut} disabled={zoomLevel === 0}>
Zoom Out