PATCH: Changed stream url from absolute to relative
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user