Package com.kurento.kmf.media

Examples of com.kurento.kmf.media.WebRtcEndpoint.connect()


        "file:///tmp/recording").build();
    contentSession.setAttribute("recorder", recorderEndpoint);

    // Connections
    webRtcEndpoint.connect(webRtcEndpoint);
    webRtcEndpoint.connect(recorderEndpoint);

    // Start content session
    contentSession.start(webRtcEndpoint);
  }
View Full Code Here


    filter.setOverlayedImage(
        "http://files.kurento.org/imgs/mario-wings.png", -0.35F, -1.2F,
        1.6F, 1.6F);

    WebRtcEndpoint webRtcEndpoint = mp.newWebRtcEndpoint().build();
    webRtcEndpoint.connect(filter);
    filter.connect(webRtcEndpoint);
    contentSession.start(webRtcEndpoint);
  }
}
View Full Code Here

  @Override
  public void onContentRequest(WebRtcContentSession session) throws Exception {
    MediaPipeline mp = session.getMediaPipelineFactory().create();
    session.releaseOnTerminate(mp);
    WebRtcEndpoint webRtcEndpoint = mp.newWebRtcEndpoint().build();
    webRtcEndpoint.connect(webRtcEndpoint);
    session.start(webRtcEndpoint);
  }

}
View Full Code Here

    RecorderEndpoint recorderEndpoint = mp.newRecorderEndpoint(
        "file:///tmp/recording").build();
    contentSession.setAttribute("recorder", recorderEndpoint);

    // Connections
    webRtcEndpoint.connect(webRtcEndpoint);
    webRtcEndpoint.connect(recorderEndpoint);

    // Start content session
    contentSession.start(webRtcEndpoint);
  }
View Full Code Here

        "file:///tmp/recording").build();
    contentSession.setAttribute("recorder", recorderEndpoint);

    // Connections
    webRtcEndpoint.connect(webRtcEndpoint);
    webRtcEndpoint.connect(recorderEndpoint);

    // Start content session
    contentSession.start(webRtcEndpoint);
  }
View Full Code Here

            session.publishEvent(new ContentEvent(event.getType(),
                event.getPlate()));
          }
        });

    webRtcEndpoint.connect(plateDetectorFilter);
    plateDetectorFilter.connect(webRtcEndpoint);

    session.start(webRtcEndpoint);
  }
View Full Code Here

      session.terminate(403, "User " + name + " is already in the room. "
          + "Please select another name and try again.");
    } else {
      WebRtcEndpoint endpoint = mp.newWebRtcEndpoint().build();
      HubPort hubPort = dispatcher.newHubPort().build();
      endpoint.connect(hubPort);
      hubPort.connect(endpoint);
      // endpoint.connect(endpoint);
      DispatcherParticipant participant = new DispatcherParticipant(
          session.getSessionId(), name, endpoint, session, hubPort);
      session.start(participant.endpoint);
View Full Code Here

        WebRtcEndpoint firstWebRtcEndpoint = (WebRtcEndpoint) sessions
            .values().iterator().next().getAttribute(WEBRTCKEY);
        MediaPipeline mp = firstWebRtcEndpoint.getMediaPipeline();
        WebRtcEndpoint webRtcEndpoint = mp.newWebRtcEndpoint().build();
        session.releaseOnTerminate(webRtcEndpoint);
        webRtcEndpoint.connect(firstWebRtcEndpoint);
        session.setAttribute(WEBRTCKEY, webRtcEndpoint);

        getLogger().info("++++ {}", session.getSessionId());

        firstWebRtcEndpoint.connect(webRtcEndpoint);
View Full Code Here

        session.setAttribute(WEBRTCKEY, webRtcEndpoint);

        getLogger().info("++++ {}", session.getSessionId());

        firstWebRtcEndpoint.connect(webRtcEndpoint);
        webRtcEndpoint.connect(firstWebRtcEndpoint);

        sessions.put(session.getSessionId(), session);
        result = "Connecting users";

        for (WebRtcContentSession s : sessions.values()) {
View Full Code Here

      throws Exception {
    MediaPipeline mp = contentSession.getMediaPipelineFactory().create();
    contentSession.releaseOnTerminate(mp);
    JackVaderFilter filter = mp.newJackVaderFilter().build();
    WebRtcEndpoint webRtcEndpoint = mp.newWebRtcEndpoint().build();
    webRtcEndpoint.connect(filter);
    filter.connect(webRtcEndpoint);
    contentSession.start(webRtcEndpoint);
  }
}
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.