kurento-tree-client/src/main/java/org/kurento/tree/client/KurentoTreeClient.java
/**
   * Notifies the server of a gathered ICE candidate on the client side.
   *
   * @param treeId
   *          the tree identifier
   * @param sinkId
   *          optional (nullable) identifier
   * @param candidate
   *          the gathered candidate
   * @throws TreeException
   * @throws IOException
   */
Notifies the server of a gathered ICE candidate on the client side.
Notifies the server of a gathered ICE candidate on the client side .
public void addIceCandidate(String treeId, String sinkId, IceCandidate candidate)
      throws TreeException, IOException {
    JsonObject params = new JsonObject();
    params.addProperty(TREE_ID, treeId);
    if (sinkId != null && !sinkId.isEmpty()) {
      params.addProperty(SINK_ID, sinkId);
    }
    params.addProperty(ICE_CANDIDATE, candidate.getCandidate());
    params.addProperty(ICE_SDP_M_LINE_INDEX, candidate.getSdpMLineIndex());
    params.addProperty(ICE_SDP_MID, candidate.getSdpMid());
    try {
      client.sendRequest(ADD_ICE_CANDIDATE_METHOD, params);
    } catch (JsonRpcErrorException e) {
      processException(e);
    }
  }
public void addIceCandidate ( String treeId , String sinkId , IceCandidate candidate ) throws TreeException , IOException { JsonObject params = new JsonObject ( ) ; params . addProperty ( TREE_ID , treeId ) ; if ( sinkId != null && ! sinkId . isEmpty ( ) ) { params . addProperty ( SINK_ID , sinkId ) ; } params . addProperty ( ICE_CANDIDATE , candidate . getCandidate ( ) ) ; params . addProperty ( ICE_SDP_M_LINE_INDEX , candidate . getSdpMLineIndex ( ) ) ; params . addProperty ( ICE_SDP_MID , candidate . getSdpMid ( ) ) ; try { client . sendRequest ( ADD_ICE_CANDIDATE_METHOD , params ) ; } catch ( JsonRpcErrorException e ) { processException ( e ) ; } }
Notifies the server of a gathered ICE candidate on the client side.
Notifies the server of a gathered ICE candidate on the client side .