Package com.kurento.kmf.jsonrpcconnector

Examples of com.kurento.kmf.jsonrpcconnector.Session.sendRequest()


    String to = params.get("callTo").getAsString();
    Session toSession = registry.get(to).getSession();

    JsonObject icParams = new JsonObject();
    params.addProperty("from", name);
    JsonObject icResponse = (JsonObject) toSession.sendRequest(
        "incommingCall", icParams);

    String callResponse = icResponse.get("callResponse").getAsString();

    if ("Accept".equals(callResponse)) {
View Full Code Here


      scParams.addProperty("sdpAnswer", ipSdpAnswer);

      log.info("SdpAnswer: {}", ipSdpAnswer);

      // TODO Should we expect something from client?
      toSession.sendRequest("startCommunication", scParams);

      String opSdpOffer = params.getAsJsonPrimitive("sdpOffer")
          .getAsString();

      String opSdpAnswer = call.getWebRtcForOutgoingPeer().processOffer(
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.