Examples of newPlayerEndpoint()


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

  @Test
  public void testPlayer() throws Exception {
    // Media Pipeline
    MediaPipeline mp = pipelineFactory.create();
    PlayerEndpoint playerEP = mp.newPlayerEndpoint(
        "http://files.kurento.org/video/small.webm").build();
    HttpGetEndpoint httpEP = mp.newHttpGetEndpoint().terminateOnEOS()
        .build();
    playerEP.connect(httpEP);
    playerEP.play();
View Full Code Here

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

      throws Exception {

    MediaPipelineFactory mpf = session.getMediaPipelineFactory();
    MediaPipeline mp = mpf.create();

    PlayerEndpoint player = mp.newPlayerEndpoint(
        "http://files.kurento.org/video/barcodes.webm").build();
    session.setAttribute("player", player);

    ZBarFilter zBarFilter = mp.newZBarFilter().build();
    player.connect(zBarFilter);
View Full Code Here

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

  @Override
  public void onContentRequest(HttpPlayerSession session) throws Exception {
    MediaPipelineFactory mpf = session.getMediaPipelineFactory();
    MediaPipeline mp = mpf.create();
    session.releaseOnTerminate(mp);
    PlayerEndpoint playerEndpoint = mp.newPlayerEndpoint(
        "http://files.kurento.org/video/fiwarecut.webm").build();
    JackVaderFilter filter = mp.newJackVaderFilter().build();
    playerEndpoint.connect(filter);
    session.setAttribute("player", playerEndpoint);
    HttpGetEndpoint httpEP = mp.newHttpGetEndpoint().terminateOnEOS()
View Full Code Here

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

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

    // Media Elements: Player Endpoint, Filter, HTTP Endpoint
    PlayerEndpoint playerEndpoint = mp.newPlayerEndpoint(
        "http://files.kurento.org/video/fiwarecut.webm").build();
    contentSession.setAttribute("player", playerEndpoint);
    JackVaderFilter filter = mp.newJackVaderFilter().build();
    HttpGetEndpoint httpEndpoint = mp.newHttpGetEndpoint().terminateOnEOS()
        .build();
View Full Code Here

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

    MediaPipelineFactory kurento = KmfMediaApi
        .createMediaPipelineFactoryFromSystemProps();

    MediaPipeline pipeline = kurento.create();

    PlayerEndpoint player = pipeline.newPlayerEndpoint(
        "http://files.kurento.org/video/fiwarecut.mp4").build();
    // player.addEndOfStreamListener(new
    // MediaEventListener<EndOfStreamEvent>() {
    //
    // @Override
View Full Code Here

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

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

    // 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();
View Full Code Here

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

  @Override
  public void onContentRequest(HttpPlayerSession session) throws Exception {
    MediaPipelineFactory mpf = session.getMediaPipelineFactory();
    MediaPipeline mp = mpf.create();
    session.releaseOnTerminate(mp);
    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()
View Full Code Here

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

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

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

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

    // contentSession.start("http://files.kurento.org/video/sintel.webm");

    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);
View Full Code Here

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

    playerEndpoint
        .addEndOfStreamListener(new MediaEventListener<EndOfStreamEvent>() {
          @Override
          public void onEvent(EndOfStreamEvent event) {
            PlayerEndpoint newPlayerEndpoint = mp
                .newPlayerEndpoint(
                    "http://media.w3.org/2010/05/sintel/trailer.webm")
                .build();
            newPlayerEndpoint.play();
            // contentSession
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.