From 5fc8a1c988bbd6915e5e778b359e49be6dd18571 Mon Sep 17 00:00:00 2001 From: xEsiah Date: Sun, 25 Oct 2026 13:22:37 +0100 Subject: [PATCH] fix: update go2rtc stream url, fix video player layout, correct recording max minutes, attach go2rtc to tunnel network and fix pulse cookie volume --- apps/kai-sa-cam/src/App.tsx | 21 +- .../kai-sa-cam/src/components/VideoPlayer.tsx | 18 +- apps/kai-sa-cam/src/server/recorder.ts | 254 ++++++++++-------- config/kai-sa-go2rtc.yaml | 4 +- docker-compose.yml | 1 + 5 files changed, 158 insertions(+), 140 deletions(-) diff --git a/apps/kai-sa-cam/src/App.tsx b/apps/kai-sa-cam/src/App.tsx index 8a84daa..bcc4849 100644 --- a/apps/kai-sa-cam/src/App.tsx +++ b/apps/kai-sa-cam/src/App.tsx @@ -1,4 +1,4 @@ -import { useState, useEffect, useRef } from "react"; +import { useState, useEffect } from "react"; import { VideoPlayer } from "./components/VideoPlayer"; import { Controls } from "./components/Controls"; import { MediaGallery } from "./components/MediaGallery"; @@ -63,21 +63,10 @@ export function App() { return (
-

Kai-Sa-Cam

-
-
- Gain - setGain(Number(e.target.value))} - className="w-32" - /> -
-
+

+ Logo + Kai-Sa-Cam +

diff --git a/apps/kai-sa-cam/src/components/VideoPlayer.tsx b/apps/kai-sa-cam/src/components/VideoPlayer.tsx index 8c976fb..1447c4d 100644 --- a/apps/kai-sa-cam/src/components/VideoPlayer.tsx +++ b/apps/kai-sa-cam/src/components/VideoPlayer.tsx @@ -1,27 +1,27 @@ -import { useEffect, useRef } from 'react' +import { useEffect, useRef } from "react"; interface VideoPlayerProps { - streamUrl: string + streamUrl: string; } export function VideoPlayer({ streamUrl }: VideoPlayerProps) { - const iframeRef = useRef(null) + const iframeRef = useRef(null); useEffect(() => { if (iframeRef.current) { - iframeRef.current.src = streamUrl + iframeRef.current.src = streamUrl; } - }, [streamUrl]) + }, [streamUrl]); return ( -
+