From 8ac82bb5e375623cc8944ec6531286ad44833fea Mon Sep 17 00:00:00 2001 From: ThisBirchWood Date: Wed, 12 Feb 2025 15:24:46 +0000 Subject: [PATCH] PATCH: Changed stream url from absolute to relative --- frontend/src/components/Video/VideoPlayer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/Video/VideoPlayer.tsx b/frontend/src/components/Video/VideoPlayer.tsx index 74bd400..ea9444e 100644 --- a/frontend/src/components/Video/VideoPlayer.tsx +++ b/frontend/src/components/Video/VideoPlayer.tsx @@ -11,7 +11,7 @@ const VideoPlayer: React.FC = () => { useEffect(() => { if (!videoRef.current || !streamerName) return; - const streamUrl = `http://localhost:8080/stream/${streamerName}/index.m3u8`; // Updated URL with streamerName + const streamUrl = `/stream/${streamerName}/index.m3u8`; // Updated URL with streamerName if (!playerRef.current) { const videoElement = document.createElement("video");