shama / letswritecode

:mortar_board: code examples for Let's Write Code
https://www.youtube.com/user/kylerobinsonyoung
806 stars 758 forks source link

Video streaming Issue. Cannot get Stream of the other peer #18

Open Muddassir1 opened 6 years ago

Muddassir1 commented 6 years ago

I deployed this app on heroku and tested by connecting two different PCs with peer. But both the colored boxes show the same stream of the owner PC. I cannot get the stream of the other PC.

shama commented 6 years ago

Is it running from a valid HTTPS connection? SSL is required now for WebRTC. Check https://test.webrtc.org/ to see if there is an issue on your end. If all that is ok, then check the console of the browser to ensure it's connecting to the signaling server and check the console of the signaling server to see if there are any errors.

Muddassir1 commented 6 years ago

Im running the app on Heroku, so yes there's a valid HTTPS connection and SSL too. The peer is being connected because the movement of the two boxes is being updated on both PCs. Just the problem is that I'm not receiving the stream of the peer, rather the stream which is being received is my own. How is that possible?

juniorheptachords commented 5 years ago

Also getting that same bug running the signalhub locally and having 2 different laptop running the index.js . The handshake works well because we can move our squares independently but we only see our own webcam on every squares...

peoplenamed commented 4 years ago

I have the exact same issue. Any word on why this happens? I setup a GCP server with https through letsencrypt. I also tried this free server (https://signalhub-jccqtwhdwc.now.sh) with signalHub preinstalled. I passed all tests on https://test.webrtc.org/