Package com.kurento.kmf.media

Examples of com.kurento.kmf.media.HttpEndpoint


      getLogger().info(
          "Activating media for " + this.getClass().getSimpleName()
              + " with contentPath " + contentPath);

      final RecorderEndpoint recorderEndpoint = buildUriEndpoint(contentPath);
      HttpEndpoint httpEndpoint = buildAndConnectHttpEndpoint(recorderEndpoint);
      recorderEndpoint.record(); // TODO. Ask Jose if this is the best
                    // place for this or it should be set as
                    // in the HttpPlayerSession
      activateMedia(httpEndpoint, null);
View Full Code Here


  @Test
  public void testConnect() throws InterruptedException {

    PlayerEndpoint player = pipeline.newPlayerEndpoint(URL_SMALL).build();

    HttpEndpoint http = pipeline.newHttpGetEndpoint().build();

    AsyncResultManager<Void> async = new AsyncResultManager<>(
        "player.connect() invocation");
    player.connect(http, async.getContinuation());
    async.waitForResult();

    player.play();
    http.release();
    player.release();
  }
View Full Code Here

  }

  @Test
  public void testConnectByType() throws InterruptedException {
    PlayerEndpoint player = pipeline.newPlayerEndpoint(URL_SMALL).build();
    HttpEndpoint http = pipeline.newHttpGetEndpoint().build();

    AsyncResultManager<Void> asyncAudio = new AsyncResultManager<>(
        "player.connect(AUDIO) invocation");
    player.connect(http, AUDIO, asyncAudio.getContinuation());
    asyncAudio.waitForResult();

    AsyncResultManager<Void> asyncVideo = new AsyncResultManager<>(
        "player.connect() invocation");
    player.connect(http, VIDEO, asyncVideo.getContinuation());
    asyncVideo.waitForResult();

    player.play();
    http.release();
    player.release();
  }
View Full Code Here

      getLogger().info(
          "Activating media for " + this.getClass().getSimpleName()
              + " with contentPath " + contentPath);

      final PlayerEndpoint playerEndPoint = buildUriEndpoint(contentPath);
      HttpEndpoint httpEndpoint = buildAndConnectHttpEndpoint(playerEndPoint);

      activateMedia(httpEndpoint, new Runnable() {
        @Override
        public void run() {
          playerEndPoint.play();
View Full Code Here

    getLogger().info("Recovering media pipeline");
    MediaPipeline mediaPiplePipeline = playerEndpoint.getMediaPipeline();
    getLogger().info("Creating HttpEndpoint ...");

    HttpEndpoint httpEndpoint = mediaPiplePipeline.newHttpGetEndpoint()
        .terminateOnEOS().build();
    releaseOnTerminate(httpEndpoint);
    playerEndpoint.connect(httpEndpoint);
    return httpEndpoint;
  }
View Full Code Here

TOP

Related Classes of com.kurento.kmf.media.HttpEndpoint

Copyright © 2018 www.massapicom. 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.