Project-Lightspeed icon indicating copy to clipboard operation
Project-Lightspeed copied to clipboard

howto: can not see stream on the web page

Open faicker opened this issue 5 years ago • 12 comments

Hi, I setup the three compents on one PC and I succeeded to push the stream to the ingest(connected log) from the OBS. ws ip is changed to the LAN ip of this PC in src/wsUrl.js. But when I refresh the 80 web(by access the PC LAN IP), nothing happens.

faicker avatar Jan 05 '21 09:01 faicker

Do you see the website?

GRVYDEV avatar Jan 05 '21 14:01 GRVYDEV

Yes. It's OK.

faicker avatar Jan 06 '21 05:01 faicker

I've fought to get everything set up for a couple hours and I'm now in this same situation. Had to run the React component as root to bind to port 80. None of the consoles have any output except for the ingest saying that it's connected.

krakow10 avatar Jan 06 '21 08:01 krakow10

I've fought to get everything set up for a couple hours and I'm now in this same situation. Had to run the React component as root to bind to port 80. None of the consoles have any output except for the ingest saying that it's connected.

Ingest and WebRTC are the only services which should output to the console. Ingest should say "Listening on port 8084" and webrtc should say "waiting for RTP packets" and then once you visit the site it should say "connections: 1"

GRVYDEV avatar Jan 06 '21 14:01 GRVYDEV

I had it setup in like 15 minutes with droplet creation and all. What exactly is not working for you guys?

torchsmith avatar Jan 07 '21 01:01 torchsmith

Lightspeed React communicates via websocket with Lightspeed WebRTC. can not see this connection.

faicker avatar Jan 07 '21 04:01 faicker

OK. It's solved. should change the wsurl in config.json and then npm run build.

faicker avatar Jan 07 '21 04:01 faicker

I set the webrtc bind port to 0.0.0.0 instead of the machine local ip at the behest of a friend of mine and it works now. Not sure if I was skirting around another issue of populating the react build/config.json file with the local ip getting reset by git pulling.

krakow10 avatar Jan 07 '21 07:01 krakow10

I am having the same issue as well. OBS can reach Ingest without issue, and I can see the React web page just fine. I can start WebRTC, but it just says "Waiting for RTP packets" and nothing else happens. I've tried setting the WebRTC port to both 0.0.0.0 and my local IP, and I've tried setting the React config to both 0.0.0.0 and my local IP as well (and I rebuilt after each change), but no matter which combination I use WebRTC never responds. I also just cloned the repositories about an hour ago, so I should be on the latest version of everything.

colonelpanic762 avatar Jan 08 '21 00:01 colonelpanic762

I am having the same issue as well. OBS can reach Ingest without issue, and I can see the React web page just fine. I can start WebRTC, but it just says "Waiting for RTP packets" and nothing else happens. I've tried setting the WebRTC port to both 0.0.0.0 and my local IP, and I've tried setting the React config to both 0.0.0.0 and my local IP as well (and I rebuilt after each change), but no matter which combination I use WebRTC never responds. I also just cloned the repositories about an hour ago, so I should be on the latest version of everything.

What does your browser console say?

GRVYDEV avatar Jan 08 '21 00:01 GRVYDEV

@colonelpanic762 also make sure you have your wsURL set correctly in the react app! If you didn't do that it could be an issue.

torchsmith avatar Jan 08 '21 00:01 torchsmith

Ok, I shut down my test VM to go eat dinner and when I came back and started it all back up, the React config.json had been reset. I put it back on my local IP. I am also now getting a connection through WebRTC, even though I haven't changed anything. I am still not seeing the stream on React, here's the console: Connected to websocket SocketContext.jsx:80:14 offer App.js:58:18 candidate 3 App.js:73:18 Candidate fail App.js:39:14 WebRTC: ICE failed, add a STUN server and see about:webrtc for more details

colonelpanic762 avatar Jan 08 '21 01:01 colonelpanic762