Package com.kurento.kmf.media

Examples of com.kurento.kmf.media.HttpGetEndpoint


    // Media Elements: Player Endpoint, HTTP Endpoint
    PlayerEndpoint playerEndpoint = mp.newPlayerEndpoint(
        "http://media.w3.org/2010/05/sintel/trailer.webm").build();
    contentSession.setAttribute("player", playerEndpoint);
    HttpGetEndpoint httpEndpoint = mp.newHttpGetEndpoint().terminateOnEOS()
        .build();

    // Connections
    playerEndpoint.connect(httpEndpoint);
View Full Code Here


    PlayerEndpoint playerEndpoint = mp.newPlayerEndpoint(
        VideoURLs.map.get("jack")).build();
    JackVaderFilter filter = mp.newJackVaderFilter().build();
    playerEndpoint.connect(filter);
    session.setAttribute("player", playerEndpoint);
    HttpGetEndpoint httpEP = mp.newHttpGetEndpoint().terminateOnEOS()
        .build();
    filter.connect(httpEP);
    session.start(httpEP);
  }
View Full Code Here

  public void onContentRequest(HttpPlayerSession session) throws Exception {
    getLogger().info("Received request to " + session);
    if (RtpProducingJackVaderFilter.sharedJackVaderReference != null) {
      getLogger()
          .info("Found sharedJackVaderReference ... invoking play");
      HttpGetEndpoint httpEP = session.getMediaPipelineFactory().create()
          .newHttpGetEndpoint().terminateOnEOS().build();
      RtpProducingJackVaderFilter.sharedJackVaderReference
          .connect(httpEP);
      session.start(httpEP);
    } else {
View Full Code Here

    // Media Elements: Player Endpoint, HTTP Endpoint
    PlayerEndpoint playerEndpoint = mp.newPlayerEndpoint(
        "file:///tmp/recording").build();
    contentSession.setAttribute("player", playerEndpoint);
    HttpGetEndpoint httpEndpoint = mp.newHttpGetEndpoint().terminateOnEOS()
        .build();

    // Connections
    playerEndpoint.connect(httpEndpoint);
View Full Code Here

    MediaPipelineFactory mpf = contentSession.getMediaPipelineFactory();
    final MediaPipeline mp = mpf.create();
    contentSession.releaseOnTerminate(mp);
    PlayerEndpoint playerEndpoint = mp.newPlayerEndpoint(
        "http://files.kurento.org/video/sintel.webm").build();
    HttpGetEndpoint httpEndpoint = mp.newHttpGetEndpoint().terminateOnEOS()
        .build();
    playerEndpoint.connect(httpEndpoint);
    contentSession.setAttribute("player", playerEndpoint);
    contentSession.start(httpEndpoint);
View Full Code Here

  @Override
  public void onContentRequest(HttpPlayerSession session) throws Exception {
    if (CpRtcRtpJackHandler.sharedFilterReference == null) {
      session.terminate(500, "Rtp session has not been established");
    } else {
      HttpGetEndpoint httpEndpoint = CpRtcRtpJackHandler.sharedFilterReference
          .getMediaPipeline().newHttpGetEndpoint().terminateOnEOS()
          .build();
      CpRtcRtpJackHandler.sharedFilterReference.connect(httpEndpoint);
      session.start(httpEndpoint);
    }
View Full Code Here

    MediaPipeline mp = mpf.create();
    session.releaseOnTerminate(mp);
    PlayerEndpoint playerEndpoint = mp.newPlayerEndpoint(
        "http://files.kurento.org/video/fiwarecut.webm").build();
    session.setAttribute("player", playerEndpoint);
    HttpGetEndpoint httpEndpoint = mp.newHttpGetEndpoint().terminateOnEOS()
        .build();
    playerEndpoint.connect(httpEndpoint);
    session.start(httpEndpoint);
  }
View Full Code Here

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

    HttpGetEndpoint httpEndpoint = CpRtcRtpZbarHandler.sharedFilterReference
        .getMediaPipeline().newHttpGetEndpoint().terminateOnEOS()
        .build();
    CpRtcRtpZbarHandler.sharedFilterReference.connect(httpEndpoint);
    session.start(httpEndpoint);
  }
View Full Code Here

    }
    if (mediaElement == null) {
      session.terminate(400, "WebRTC source is not running");
    } else {
      MediaPipeline mp = mediaElement.getMediaPipeline();
      HttpGetEndpoint httpEndpoint = mp.newHttpGetEndpoint()
          .terminateOnEOS().build();
      mediaElement.connect(httpEndpoint);
      session.start(httpEndpoint);
    }
  }
View Full Code Here

        session.releaseOnTerminate(mp);
        PlayerEndpoint playerEndPoint = mp.newPlayerEndpoint(url)
            .build();
        JackVaderFilter filter = mp.newJackVaderFilter().build();
        playerEndPoint.connect(filter);
        HttpGetEndpoint httpEndpoint = mp.newHttpGetEndpoint()
            .terminateOnEOS().build();
        filter.connect(httpEndpoint);
        session.setAttribute("player", playerEndPoint);
        session.start(httpEndpoint);
      } else if (contentId != null && contentId.equalsIgnoreCase("zbar")) {
        // ZBar Filter
        MediaPipelineFactory mpf = session.getMediaPipelineFactory();
        MediaPipeline mp = mpf.create();
        PlayerEndpoint player = mp.newPlayerEndpoint(url).build();
        session.setAttribute("player", player);
        ZBarFilter zBarFilter = mp.newZBarFilter().build();
        player.connect(zBarFilter);
        HttpGetEndpoint httpEndpoint = mp.newHttpGetEndpoint()
            .terminateOnEOS().build();
        zBarFilter.connect(httpEndpoint);
        session.start(httpEndpoint);
        session.setAttribute("eventValue", "");
        zBarFilter
View Full Code Here

TOP

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

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.