Example #1
0
 /// <summary>
 /// Sends a JSEP ICE candidate one at a time as they are discovered.
 /// Note: The ICE candidates are sent from both the initiating and the responding machines,
 /// with both trying to connect over the various possibilities,
 /// until one is successful and a connection is established.
 /// </summary>
 /// <param name="candidateMessage">The candidate message</param>
 public void JsepCandidate(SignalStateModel candidateMessage)
 {
     Debug.WriteLine("Client proposing JSEP ICE candidate");
     SendMessage(candidateMessage.ToSessionId, (cs, torrentId) => cs.onJsepCandidate(candidateMessage));
 }
Example #2
0
 /// <summary>
 /// Sends a JSEP answer from the responder to the initiator
 /// </summary>
 /// <param name="signalMessage">The signal message</param>
 public void JsepAnswer(SignalStateModel signalMessage)
 {
     Debug.WriteLine("Client making JSEP answer");
     SendMessage(signalMessage.ToSessionId, (cs, torrentId) => cs.onJsepAnswer(signalMessage));
 }