Examples of newHttpGetEndpoint()


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

      PlayerEndpoint playerEndpoint = mp.newPlayerEndpoint(mediaUrl)
          .build();
      JackVaderFilter filter = mp.newJackVaderFilter().build();
      playerEndpoint.connect(filter);
      contentSession.setAttribute("player", playerEndpoint);
      HttpGetEndpoint httpEndpoint = mp.newHttpGetEndpoint()
          .terminateOnEOS().build();
      filter.connect(httpEndpoint);
      contentSession.start(httpEndpoint);
    }
  }
View Full Code Here

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

      }
    });
    session.setAttribute("player", playerEndpoint);

    HttpGetEndpoint httpEP = mp.newHttpGetEndpoint().terminateOnEOS()
        .build();
    filter.connect(httpEP);
    session.start(httpEP);
  }
View Full Code Here

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

  public void testPlayerCrowdDetector() throws Exception {
    // Media Pipeline
    MediaPipeline mp = pipelineFactory.create();
    PlayerEndpoint playerEP = mp.newPlayerEndpoint(
        "http://files.kurento.org/video/crowd.mp4").build();
    HttpGetEndpoint httpEP = mp.newHttpGetEndpoint().terminateOnEOS()
        .build();

    List<RegionOfInterest> rois = newArrayList();
    List<RelativePoint> points = new ArrayList<RelativePoint>();
View Full Code Here

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

      MediaPipelineFactory mpf = session.getMediaPipelineFactory();
      MediaPipeline mp = mpf.create();
      session.releaseOnTerminate(mp);
      PlayerEndpoint playerEndpoint = mp.newPlayerEndpoint(url).build();
      HttpGetEndpoint httpEP = mp.newHttpGetEndpoint().terminateOnEOS()
          .build();
      if (contentId != null && contentId.equalsIgnoreCase("jack")) {
        // Jack Vader Filter
        JackVaderFilter filter = mp.newJackVaderFilter().build();
        playerEndpoint.connect(filter);
View Full Code Here

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

  public void testWebRtc2HttpSwitch() throws Exception {
    // Media Pipeline
    MediaPipeline mp = pipelineFactory.create();
    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()
View Full Code Here

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

  public void doTest(Browser browserType) throws Exception {
    // Media Pipeline #1
    MediaPipeline mp = pipelineFactory.create();
    PlayerEndpoint playerEP = mp.newPlayerEndpoint(
        "http://files.kurento.org/video/fiwarecut.mp4").build();
    HttpGetEndpoint httpEP = mp.newHttpGetEndpoint().terminateOnEOS()
        .build();
    RecorderEndpoint recorderEP = mp.newRecorderEndpoint(
        FILE_SCHEMA + getDefaultFileForRecording()).build();
    final FaceOverlayFilter filter = mp.newFaceOverlayFilter().build();
    filter.setOverlayedImage(
View Full Code Here

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

    launchBrowser(browserType, httpEP, playerEP, recorderEP);

    // Media Pipeline #2
    PlayerEndpoint playerEP2 = mp.newPlayerEndpoint(
        FILE_SCHEMA + getDefaultFileForRecording()).build();
    HttpGetEndpoint httpEP2 = mp.newHttpGetEndpoint().terminateOnEOS()
        .build();
    playerEP2.connect(httpEP2);

    // Test execution #2. Play the recorded video
    launchBrowser(browserType, httpEP2, playerEP2, null);
View Full Code Here

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

        "http://files.kurento.org/video/10sec/red.webm").build();
    PlayerEndpoint playerGreen = mp.newPlayerEndpoint(
        "http://files.kurento.org/video/10sec/green.webm").build();
    PlayerEndpoint playerBlue = mp.newPlayerEndpoint(
        "http://files.kurento.org/video/10sec/blue.webm").build();
    HttpGetEndpoint httpEP = mp.newHttpGetEndpoint().terminateOnEOS()
        .build();
    RecorderEndpoint recorderEP = mp.newRecorderEndpoint(
        FILE_SCHEMA + getDefaultFileForRecording()).build();

    try (BrowserClient browser = new BrowserClient.Builder()
View Full Code Here

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

    playerBlue.release();

    // Media Pipeline #2
    PlayerEndpoint playerEP2 = mp.newPlayerEndpoint(
        FILE_SCHEMA + getDefaultFileForRecording()).build();
    HttpGetEndpoint httpEP2 = mp.newHttpGetEndpoint().terminateOnEOS()
        .build();
    playerEP2.connect(httpEP2);

    try (BrowserClient browser = new BrowserClient.Builder()
        .browser(browserType).client(Client.PLAYER).build()) {
View Full Code Here

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

      List<Future<?>> results = new ArrayList<>();
      for (int i = 0; i < NPLAYERS; i++) {
        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) {
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.