Add jsmpeg support to new webUI and make birdseye default for live page (#8995)

* Add jsmpeg and make birdseye default for live view

* Fix jsmpeg

* Fix
This commit is contained in:
Nicolas Mowen
2023-12-20 07:34:27 -07:00
committed by Blake Blackshear
parent 1a27c7db29
commit 2236ae5d3b
5 changed files with 164 additions and 19 deletions

View File

@@ -9,6 +9,7 @@ import { Card, CardContent, CardHeader, CardTitle } from "../ui/card";
import { Switch } from "../ui/switch";
import { Label } from "../ui/label";
import { usePersistence } from "@/hooks/use-persistence";
import JSMpegPlayer from "./JSMpegPlayer";
const emptyObject = Object.freeze({});
@@ -66,7 +67,11 @@ export default function LivePlayer({
} else if (liveMode == "jsmpeg") {
return (
<div className={`max-w-[${cameraConfig.detect.width}px]`}>
Not Yet Implemented
<JSMpegPlayer
camera={cameraConfig.name}
width={cameraConfig.detect.width}
height={cameraConfig.detect.height}
/>
</div>
);
} else if (liveMode == "debug") {