(null);
@@ -342,7 +344,7 @@ function PreviewVideoPlayer({
)}
{cameraPreviews && !currentPreview && (
- {t("noPreviewFoundFor", { camera: camera.replaceAll("_", " ") })}
+ {t("noPreviewFoundFor", { camera: cameraName })}
)}
{firstLoad && }
@@ -464,6 +466,7 @@ function PreviewFramesPlayer({
}: PreviewFramesPlayerProps) {
const { t } = useTranslation(["components/player"]);
+ const cameraName = useCameraNickname(camera);
// frames data
const { data: previewFrames } = useSWR(
@@ -564,7 +567,7 @@ function PreviewFramesPlayer({
/>
{previewFrames?.length === 0 && (
- {t("noPreviewFoundFor", { cameraName: camera.replaceAll("_", " ") })}
+ {t("noPreviewFoundFor", { cameraName: cameraName })}
)}
{firstLoad && }
diff --git a/web/src/views/recording/RecordingView.tsx b/web/src/views/recording/RecordingView.tsx
index 582a32f4f..12783eb6c 100644
--- a/web/src/views/recording/RecordingView.tsx
+++ b/web/src/views/recording/RecordingView.tsx
@@ -64,6 +64,7 @@ import {
TooltipContent,
TooltipTrigger,
} from "@/components/ui/tooltip";
+import { CameraNameLabel } from "@/components/camera/CameraNameLabel";
type RecordingViewProps = {
startCamera: string;
@@ -719,7 +720,7 @@ export function RecordingView({
- {cam.replaceAll("_", " ")}
+
);