PATCH: Changed stream url from absolute to relative

This commit is contained in:
2025-02-12 15:24:46 +00:00
parent 326ee84d60
commit 8ac82bb5e3

View File

@@ -11,7 +11,7 @@ const VideoPlayer: React.FC = () => {
useEffect(() => { useEffect(() => {
if (!videoRef.current || !streamerName) return; 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) { if (!playerRef.current) {
const videoElement = document.createElement("video"); const videoElement = document.createElement("video");