buildar / getting_started_with_webrtc

Example code to help you get started creating WebRTC applications
MIT License
79 stars 39 forks source link

can't set up a vedio call #2

Closed ahgcookie closed 9 years ago

ahgcookie commented 10 years ago

I read the book and downloaded the sourece code both from the packpub.com and github,installed websocket use npm,but there is always connecting but can't make the call qq20140527005047 qq20140527005130

buildar commented 10 years ago

Hi, please make sure you have the latest copy from github. This has a variable set called local_stream_added which handles a race condition in the setup of local streams.

From the screengrabs you provided I can't see any other obvious issues. There is a "connection closed (undefined)" in the node.js log but without more detail I can't really tell what caused that.

Can you also check the browser's console log and see what messages are being logged there for both browser tabs. If you could send screengrabs of those for both browser tabs/windows that would be great.

ahgcookie commented 10 years ago

Thx a lot,I will try to put more details I found I didn't change the ws:localhost:1234 to my IP address,then I set it to 192.168.1.104:1234 which is my PC's IP address,with that I can open vedio stream on another PC,but just a picture,and my PC are still not functioning I will give you more details after and wish you could help me with this

buildar commented 10 years ago

Hiya, yep the ip address in the html file, the ip address you bind your node.js server too and the ip address you enter into the location bars all need to match. And if you want to use browsers from more than one computer then you definitely can't use localhost or 127.0.01. See the note in the README.md file about this.