javascript - webrtc ice_server never registeres as ice candidate -
i building webrtc client using turn , stun server. working if turning of firewall. when breakpoint on ice candidate function see ice servers not added ice candidate.
this code:
var rtc_configuration = { iceservers: [ {urls: "stun:numb.viagenie.ca"}, {urls: "turn:numb.viagenie.ca", username: "username", credential: "credential", credentialtype: "password"} ], bundlepolicy: "balanced", icetransportpolicy: "all", rtcpmuxpolicy: "negotiate", icecandidatepoolsize: 20, certificates: [] }; var peer_connection = new rtc_peer_connection(rtc_configuration); peer_connection.onicecandidate = pc_on_ice_candidate;
but when breakpoint on onicecandidate funtion, default candidates added, , not ice servers in configuration. using last version of firefox.
does have suggestion?
i think issue because turn server transport type udp, , firewall, udp ports blocked, hence no ice candidates, try adding turn credentials tcp transport mode...
Comments
Post a Comment