Package com.kurento.kmf.media

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


    }
    recorderEndPoint = mp.newRecorderEndpoint(TARGET)
        .withMediaProfile(mediaProfileSpecType).build();
    WebRtcEndpoint webRtcEndpoint = mp.newWebRtcEndpoint().build();

    webRtcEndpoint.connect(webRtcEndpoint);
    webRtcEndpoint.connect(recorderEndPoint);
    contentSession.start(webRtcEndpoint);
  }

  @Override
View Full Code Here


    recorderEndPoint = mp.newRecorderEndpoint(TARGET)
        .withMediaProfile(mediaProfileSpecType).build();
    WebRtcEndpoint webRtcEndpoint = mp.newWebRtcEndpoint().build();

    webRtcEndpoint.connect(webRtcEndpoint);
    webRtcEndpoint.connect(recorderEndPoint);
    contentSession.start(webRtcEndpoint);
  }

  @Override
  public void onContentStarted(WebRtcContentSession contentSession) {
View Full Code Here

            }
          }
        });
    WebRtcEndpoint webRtcEndpoint = mediaPipeline.newWebRtcEndpoint()
        .build();
    webRtcEndpoint.connect(rateLimiter);
    faceOverlayFilter.connect(webRtcEndpoint);
    contentSession.start(webRtcEndpoint);
  }

  @Override
View Full Code Here

      }
    });

    WebRtcEndpoint webRtcEndpoint = mp.newWebRtcEndpoint().build();

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

    WebRtcEndpoint webRtcEndpoint1 = mp.newWebRtcEndpoint().build();
    WebRtcEndpoint webRtcEndpoint2 = mp.newWebRtcEndpoint().build();
    HttpGetEndpoint httpGetEndpoint = mp.newHttpGetEndpoint().build();

    webRtcEndpoint1.connect(webRtcEndpoint1);
    webRtcEndpoint2.connect(webRtcEndpoint2);

    BrowserClient.Builder builderWebrtc = new BrowserClient.Builder()
        .browser(Browser.CHROME).client(Client.WEBRTC);
    BrowserClient.Builder builderPlayer = new BrowserClient.Builder()
        .browser(Browser.CHROME).client(Client.PLAYER);
View Full Code Here

      // Guard time to see stream from WebRTC #1
      Thread.sleep(5000);

      // Round #2: Connecting WebRTC #2 to HttpEnpoint
      webRtcEndpoint2.connect(httpGetEndpoint);

      // Guard time to see stream from WebRTC #2
      Thread.sleep(5000);
      Assert.assertTrue(
          "The color of the video should be green (RGB #008700)",
View Full Code Here

  @Test
  public void testWebRtc2Http() throws Exception {
    // Media Pipeline
    final MediaPipeline mp = pipelineFactory.create();
    final WebRtcEndpoint webRtcEndpoint = mp.newWebRtcEndpoint().build();
    webRtcEndpoint.connect(webRtcEndpoint);

    // Test execution
    try (BrowserClient browser = new BrowserClient.Builder()
        .browser(Browser.CHROME).client(Client.WEBRTC).build()) {
      browser.subscribeEvents("playing");
View Full Code Here

        results.add(exec.submit(new Runnable() {
          @Override
          public void run() {
            HttpGetEndpoint httpEP = mp.newHttpGetEndpoint()
                .build();
            webRtcEndpoint.connect(httpEP);
            try {
              createPlayer(httpEP.getUrl());
            } catch (InterruptedException e) {
              Assert.fail("Exception creating http players: "
                  + e.getClass().getName());
View Full Code Here

    WebRtcEndpoint webRtcEndpoint1 = mp.newWebRtcEndpoint().build();
    WebRtcEndpoint webRtcEndpoint2 = mp.newWebRtcEndpoint().build();
    WebRtcEndpoint webRtcEndpoint3 = mp.newWebRtcEndpoint().build();
    webRtcEndpoint1.connect(webRtcEndpoint1);
    webRtcEndpoint2.connect(webRtcEndpoint2);
    webRtcEndpoint3.connect(webRtcEndpoint3);

    BrowserClient.Builder builderWebrtc = new BrowserClient.Builder()
        .browser(Browser.CHROME).client(Client.WEBRTC);

    try (BrowserClient browser1 = builderWebrtc.build();
View Full Code Here

      assertColor(browser1, browser2, browser3);

      // Switching (round #1)
      webRtcEndpoint1.connect(webRtcEndpoint2);
      webRtcEndpoint2.connect(webRtcEndpoint3);
      webRtcEndpoint3.connect(webRtcEndpoint1);
      assertColor(browser1, browser2, browser3);

      // Guard time to see switching #1
      Thread.sleep(4000);
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.