From a89e422af6cec60f1fbc1f53697b91a7d26cc3ef Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Fri, 26 Sep 2025 06:31:39 +0000 Subject: [PATCH] Improve live stream playback stability and responsiveness Adjust delay for HLS stream initialization in LivePage.tsx and remove unused isFullscreen state. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 45a1dcfc-f8a2-475a-a6b9-96fbb841dc27 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/60d372ff-2c10-46c7-b01b-10c3435136b0/45a1dcfc-f8a2-475a-a6b9-96fbb841dc27/qiQVNFN --- .replit | 4 ---- client/src/pages/LivePage.tsx | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.replit b/.replit index 69e9900..77a16c9 100644 --- a/.replit +++ b/.replit @@ -15,10 +15,6 @@ run = ["npm", "run", "start"] localPort = 5000 externalPort = 80 -[[ports]] -localPort = 33401 -externalPort = 3001 - [[ports]] localPort = 35637 externalPort = 3000 diff --git a/client/src/pages/LivePage.tsx b/client/src/pages/LivePage.tsx index 5379659..46b4d6f 100644 --- a/client/src/pages/LivePage.tsx +++ b/client/src/pages/LivePage.tsx @@ -17,7 +17,6 @@ export default function LivePage() { const [isPlaying, setIsPlaying] = useState(false); const [volume, setVolume] = useState(1); const [isMuted, setIsMuted] = useState(false); - const [isFullscreen, setIsFullscreen] = useState(false); const [error, setError] = useState(null); // HLS stream URL @@ -224,7 +223,7 @@ export default function LivePage() { // Add a small delay to ensure DOM is ready const timer = setTimeout(() => { initializePlayer(); - }, 100); + }, 200); return () => { clearTimeout(timer);