Examples of newWebRtcEndpoint()


Examples of com.kurento.kmf.media.MediaPipeline.newWebRtcEndpoint()

    // Media Pipeline
    MediaPipeline mp = contentSession.getMediaPipelineFactory().create();
    contentSession.releaseOnTerminate(mp);

    // Media Elements: WebRTC Endpoint, Recorder Endpoint
    WebRtcEndpoint webRtcEndpoint = mp.newWebRtcEndpoint().build();
    RecorderEndpoint recorderEndpoint = mp.newRecorderEndpoint(
        "file:///tmp/recording").build();
    contentSession.setAttribute("recorder", recorderEndpoint);

    // Connections
View Full Code Here

Examples of com.kurento.kmf.media.MediaPipeline.newWebRtcEndpoint()

  public void onContentRequest(final WebRtcContentSession session)
      throws Exception {
    MediaPipeline mp = session.getMediaPipelineFactory().create();
    session.releaseOnTerminate(mp);

    WebRtcEndpoint webRtcEndpoint = mp.newWebRtcEndpoint().build();
    PlateDetectorFilter plateDetectorFilter = mp.newPlateDetectorFilter()
        .build();
    session.setAttribute("plateValue", "");
    plateDetectorFilter
        .addPlateDetectedListener(new MediaEventListener<PlateDetectedEvent>() {
View Full Code Here

Examples of com.kurento.kmf.media.MediaPipeline.newWebRtcEndpoint()

    if ("register".equalsIgnoreCase(cmdType)) {
      if (sessions == null) {
        sessions = new HashMap<String, WebRtcContentSession>();
        MediaPipeline mp = session.getMediaPipelineFactory().create();
        session.releaseOnTerminate(mp);
        WebRtcEndpoint webRtcEndpoint = mp.newWebRtcEndpoint().build();
        session.releaseOnTerminate(webRtcEndpoint);
        session.setAttribute(WEBRTCKEY, webRtcEndpoint);
        getLogger().info("**** {}", session.getSessionId());

        sessions.put(session.getSessionId(), session);
View Full Code Here

Examples of com.kurento.kmf.media.MediaPipeline.newWebRtcEndpoint()

      } else {
        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());
View Full Code Here

Examples of com.kurento.kmf.media.MediaPipeline.newWebRtcEndpoint()

  public void onContentRequest(WebRtcContentSession contentSession)
      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

Examples of com.kurento.kmf.media.MediaPipeline.newWebRtcEndpoint()

    if (firstWebRtcEndpoint == null) {
      MediaPipeline mp = contentSession.getMediaPipelineFactory()
          .create();
      contentSession.releaseOnTerminate(mp);

      firstWebRtcEndpoint = mp.newWebRtcEndpoint().build();
      sessionId = contentSession.getSessionId();
      contentSession.releaseOnTerminate(firstWebRtcEndpoint);
      firstWebRtcEndpoint.connect(firstWebRtcEndpoint);

      if (contentId != null && contentId.equalsIgnoreCase("record")) {
View Full Code Here

Examples of com.kurento.kmf.media.MediaPipeline.newWebRtcEndpoint()

      contentSession.start(firstWebRtcEndpoint);
    } else {
      MediaPipeline mp = firstWebRtcEndpoint.getMediaPipeline();

      WebRtcEndpoint newWebRtcEndpoint = mp.newWebRtcEndpoint().build();
      contentSession.releaseOnTerminate(newWebRtcEndpoint);
      newWebRtcEndpoint.connect(firstWebRtcEndpoint);
      firstWebRtcEndpoint.connect(newWebRtcEndpoint);

      if (contentId != null && contentId.equalsIgnoreCase("record")) {
View Full Code Here

Examples of com.kurento.kmf.media.MediaPipeline.newWebRtcEndpoint()

  public void onContentRequest(WebRtcContentSession contentSession)
      throws Exception {
    MediaPipeline mp = contentSession.getMediaPipelineFactory().create();
    contentSession.releaseOnTerminate(mp);
    filter = mp.newJackVaderFilter().build();
    WebRtcEndpoint webRtcEndpoint = mp.newWebRtcEndpoint().build();
    webRtcEndpoint.connect(filter);
    filter.connect(webRtcEndpoint);
    contentSession.start(webRtcEndpoint);
  }
View Full Code Here

Examples of com.kurento.kmf.media.MediaPipeline.newWebRtcEndpoint()

    MediaPipeline mp = contentSession.getMediaPipelineFactory().create();
    contentSession.releaseOnTerminate(mp);
    filter = mp.newFaceOverlayFilter().build();
    filter.setOverlayedImage(imageUrl, -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

Examples of com.kurento.kmf.media.MediaPipeline.newWebRtcEndpoint()

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

  @Override
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.