websocket - webrtc event.candidate has many values -


To follow it (for beginners)

I created and responded, I < Code> Onicecandidate ()

  function onicecandidate (event) {if (! PeerConnection ||! Event ||! Event.candidate) return; Var candidate = event.candidate; // post ICE-to-other-peer (candidate.candidate, candidate.sdpmlineIndex); }   

onicecandidate () The event was created several times before the martyrs, but according to the tutorial, I have to post snow on some other peers ( Websock has been used)) and (candidate.candidate, candidate.sdpmlineIndex) got multiple values.

Do I get to event.candidate All prices need to be sent or

And can I just connect using SDP (Session Description Protocol)? Itemprop = "text">

You should send all the candidates, this is normal practice

In addition to this, this method can also be said during the active connection and also send you a new value for the opponent. needed. The ICE engine works all the time and searches for the shortest route between you and the opponent.

And can I only connect using SDP (Session Description Protocol)?

Not sure what you're actually saying, but the answer is no. You may have a communication protocol for this signal, Websockets, XMPP or others.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -