javascript - webrtc streaming video only one side -
i'm trying make video chat application based in http://www.html5rocks.com/en/tutorials/webrtc/basics/
it works in same network, when try other networks have following problem:
- if invite other user, other user can see streaming
- if invites me, can see streaming
i think problem in iceservers, i'm using [{'url':'stun:stun.l.google.com:19302'}]
any ideas on how can solve issue?
according same article mention:
if udp fails, ice tries tcp: first http, https. if direct connection fails—in particular, because of enterprise nat traversal , firewalls—ice uses intermediary (relay) turn server. in other words, ice first use stun udp directly connect peers and, if fails, fall turn relay server.
if i'm not mistaken, use stun server. in case if direct connection not possible, , without turn server, acts relay, it's not possible establish two-way connection.
check out article how set own turn server, , stun , turn stuff: http://www.html5rocks.com/en/tutorials/webrtc/infrastructure/
Comments
Post a Comment