Package com.kurento.kmf.media

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


    SdpEndpoint sdpEndpoint = buildAndConnectSdpEndpoint(mediaPipeline,
        playerEndpoint, recorderEndpoint);

    if (playerEndpoint != null)
      playerEndpoint.play();

    if (recorderEndpoint != null)
      recorderEndpoint.record();

    activateMedia(sdpEndpoint, null); // TODO. Ask Jose if
View Full Code Here


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

}
View Full Code Here

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

}
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

    // Test execution
    try (BrowserClient browser = new BrowserClient.Builder()
        .browser(Browser.CHROME).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

      Thread.sleep(6000);

      // blue
      playerBlue.connect(httpEP);
      playerBlue.connect(recorderEP);
      playerBlue.play();
      Thread.sleep(6000);

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

    try (BrowserClient browser = new BrowserClient.Builder()
        .browser(browserType).client(Client.PLAYER).build()) {
      browser.setURL(httpEP2.getUrl());
      browser.subscribeEvents("playing", "ended");
      playerEP2.play();

      browser.start();

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

    // Test execution
    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

      playerSmpte.play();
      Thread.sleep(2000);

      // ball
      playerBall.connect(httpEP);
      playerBall.play();
      Assert.assertTrue("Timeout waiting ended event",
          browser.waitForEvent("ended"));
      Assert.assertTrue("Play time must be at least 8 seconds",
          browser.getCurrentTime() >= 8);
    }
View Full Code Here

    // Test execution
    try (BrowserClient browser = new BrowserClient.Builder()
        .browser(Browser.CHROME).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

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.