Package com.kurento.kmf.media

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


    contentSession.setAttribute("player", playerEndpoint);
    HttpGetEndpoint httpEndpoint = mp.newHttpGetEndpoint().terminateOnEOS()
        .build();

    // Connections
    playerEndpoint.connect(httpEndpoint);

    // Start content session
    contentSession.start(httpEndpoint);
  }
View Full Code Here


    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 httpEndpoint = mp.newHttpGetEndpoint().terminateOnEOS()
        .build();
    filter.connect(httpEndpoint);
    session.start(httpEndpoint);
View Full Code Here

    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);

    playerEndpoint
        .addEndOfStreamListener(new MediaEventListener<EndOfStreamEvent>() {
View Full Code Here

    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);
  }

  @Override
  public void onContentStarted(HttpPlayerSession session) {
View Full Code Here

        MediaPipeline mp = mpf.create();
        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);
View Full Code Here

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

    contentSession.setAttribute("player", playerEndpoint);
    HttpGetEndpoint httpEndpoint = mp.newHttpGetEndpoint().terminateOnEOS()
        .build();

    // Connections
    playerEndpoint.connect(httpEndpoint);

    // Start content session
    contentSession.start(httpEndpoint);
  }
View Full Code Here

      IOException {

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

    player.connect(httpEp);

    AsyncEventManager<EndOfStreamEvent> async = new AsyncEventManager<>(
        "EndOfStream event");

    player.addEndOfStreamListener(async.getMediaEventListener());
View Full Code Here

      IOException {

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

    player.connect(httpEp);

    httpEp.addMediaSessionStartedListener(new MediaEventListener<MediaSessionStartedEvent>() {
      @Override
      public void onEvent(MediaSessionStartedEvent event) {
        player.play();
View Full Code Here

  @Test
  public void testCodeFoundEvent() throws InterruptedException {

    PlayerEndpoint player = pipeline.newPlayerEndpoint(URL_BARCODES)
        .build();
    player.connect(zbar);

    AsyncEventManager<CodeFoundEvent> async = new AsyncEventManager<>(
        "CodeFound event");

    zbar.addCodeFoundListener(async.getMediaEventListener());
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.