Individual live view (#10178)

* Get live camera view working

* Get ptz working

* Add button for ptz presets

* Add camera feature buttons

* Add button for camera audio

* Cleanup

* Cleanup mobile live

* Only use landscape check on mobile
This commit is contained in:
Nicolas Mowen
2024-03-01 18:43:02 -06:00
committed by GitHub
parent a67e970fca
commit 5028a9632e
9 changed files with 575 additions and 132 deletions
+3 -1
View File
@@ -5,6 +5,7 @@ type MSEPlayerProps = {
camera: string;
className?: string;
playbackEnabled?: boolean;
audioEnabled?: boolean;
onPlaying?: () => void;
};
@@ -12,6 +13,7 @@ function MSEPlayer({
camera,
className,
playbackEnabled = true,
audioEnabled = false,
onPlaying,
}: MSEPlayerProps) {
let connectTS: number = 0;
@@ -273,7 +275,7 @@ function MSEPlayer({
playsInline
preload="auto"
onLoadedData={onPlaying}
muted
muted={!audioEnabled}
/>
);
}