Package com.kurento.kmf.media

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


  @Override
  public void onContentStarted(HttpPlayerSession contentSession) {
    PlayerEndpoint playerEndpoint = (PlayerEndpoint) contentSession
        .getAttribute("player");
    playerEndpoint.play();
  }

}
View Full Code Here


    httpEp.addMediaSessionStartedListener(
        new MediaEventListener<MediaSessionStartedEvent>() {
          @Override
          public void onEvent(MediaSessionStartedEvent event) {
            player.play();
          }
        }, async2.getContinuation());

    async2.waitForResult();
View Full Code Here

    player.connect(httpEp);

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

    AsyncResultManager<ListenerRegistration> async = new AsyncResultManager<>(
        "EventListener subscription");
View Full Code Here

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

    zbar.addCodeFoundListener(async.getMediaEventListener());

    player.play();

    async.waitForResult();

    player.stop();
    player.release();
View Full Code Here

        + "a=rtpmap:98 H263-1998/90000\r\n" + "a=recvonly\r\n"
        + "b=AS:384\r\n";

    rtpEndpoint.processOffer(requestSdp);
    player.connect(rtpEndpoint, MediaType.VIDEO);
    player.play();

    // just a little bit of time before destroying
    Thread.sleep(2000);
  }
View Full Code Here

      public void onEvent(EndOfStreamEvent event) {
        events.add(event);
      }
    });

    player.play();

    Assert.assertNotNull("EndOfStreamEvent not sent in 10s",
        events.poll(10, SECONDS));

    player.stop();
View Full Code Here

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

    player.play();
    http.release();
    player.release();
  }

  @Test
View Full Code Here

    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

      HttpEndpoint httpEndpoint = buildAndConnectHttpEndpoint(playerEndPoint);

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

        }
      });
    } catch (KurentoMediaFrameworkException ke) {
      internalTerminateWithError(null, ke.getCode(), ke.getMessage(),
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.