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 17:43:02 -07:00
committed by GitHub
parent a67e970fca
commit 5028a9632e
9 changed files with 575 additions and 132 deletions

View File

@@ -5,6 +5,7 @@ type WebRtcPlayerProps = {
className?: string;
camera: string;
playbackEnabled?: boolean;
audioEnabled?: boolean;
onPlaying?: () => void;
};
@@ -12,6 +13,7 @@ export default function WebRtcPlayer({
className,
camera,
playbackEnabled = true,
audioEnabled = false,
onPlaying,
}: WebRtcPlayerProps) {
// camera states
@@ -160,7 +162,7 @@ export default function WebRtcPlayer({
className={className}
autoPlay
playsInline
muted
muted={!audioEnabled}
onLoadedData={onPlaying}
/>
);