Package com.kurento.kmf.media

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


    if (contentCommand.getType().equalsIgnoreCase("newplayer")) {
      PlayerEndpoint player = mediaPipeline.newPlayerEndpoint(
          VideoURLs.map.get("small-mp4")).build();
      HubPort mixerPort = mixer.newHubPort().build();
      player.connect(mixerPort);
      player.play();
      PlayerConnection conection = new PlayerConnection(player, mixerPort);
      playersList.add(conection);
    } else if (contentCommand.getType().equalsIgnoreCase("deleteplayer")) {
      PlayerConnection connection = playersList.get(0);
      connection.player.stop();
View Full Code Here


      throws Exception {
    EventListener.addEvent();
    if (contentSession.getAttribute("player") != null) {
      PlayerEndpoint playerEndpoint = (PlayerEndpoint) contentSession
          .getAttribute("player");
      playerEndpoint.play();
    }
    super.onContentStarted(contentSession);
  }

  @Override
View Full Code Here

      throws Exception {
    EventListener.addEvent();
    if (contentSession.getAttribute("player") != null) {
      PlayerEndpoint playerEndpoint = (PlayerEndpoint) contentSession
          .getAttribute("player");
      playerEndpoint.play();
    }
    super.onContentStarted(contentSession);
  }

  @Override
View Full Code Here

      browser.setURL(httpEP.getUrl());
      browser.subscribeEvents("playing");
      playerRed.play();
      playerGreen.play();
      playerBlue.play();
      playerWhite.play();
      browser.start();

      // Assertions
      Assert.assertTrue("Timeout waiting playing event",
          browser.waitForEvent("playing"));
View Full Code Here

  public void onContentStarted(HttpPlayerSession contentSession)
      throws Exception {
    EventListener.addEvent();
    PlayerEndpoint playerEndpoint = (PlayerEndpoint) contentSession
        .getAttribute("player");
    playerEndpoint.play();
  }

  @Override
  public void onSessionTerminated(HttpPlayerSession contentSession, int code,
      String reason) throws Exception {
View Full Code Here

    // Test execution #2. Play the recorded video
    try (BrowserClient browser = new BrowserClient.Builder()
        .browser(browserType).client(Client.PLAYER).build()) {
      browser.setURL(httpEP.getUrl());
      browser.subscribeEvents("playing", "ended");
      playerEP.play();
      browser.start();

      // Assertions
      Assert.assertTrue("Timeout waiting playing event",
          browser.waitForEvent("playing"));
View Full Code Here

      session.releaseOnTerminate(mp);
      PlayerEndpoint playerEP = mp.newPlayerEndpoint(
          "http://files.kurento.org/video/sintel.webm").build();
      WebRtcEndpoint webRtcEndpoint = mp.newWebRtcEndpoint().build();
      playerEP.connect(webRtcEndpoint);
      playerEP.play();
      session.start(webRtcEndpoint);

      terminateLatch = new CountDownLatch(1);
    }
View Full Code Here

      throws Exception {
    EventListener.addEvent();

    PlayerEndpoint playerEndpoint = (PlayerEndpoint) contentSession
        .getAttribute("player");
    playerEndpoint.play();

    Thread.sleep(5000);
    playerEndpoint.release();
  }
View Full Code Here

    playerEP.connect(hubPort1);
    hubPort2.connect(webRtcEP);

    dispatcher.connect(hubPort1, hubPort2);
    playerEP.play();

    // Test execution
    try (BrowserClient browser = new BrowserClient.Builder()
        .browser(browserType).client(Client.WEBRTC).build()) {
View Full Code Here

      throws Exception {
    EventListener.addEvent();
    if (contentSession.getAttribute("player") != null) {
      PlayerEndpoint playerEndpoint = (PlayerEndpoint) contentSession
          .getAttribute("player");
      playerEndpoint.play();
    }
    super.onContentStarted(contentSession);
  }

  @Override
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.