Package com.kurento.kmf.media

Examples of com.kurento.kmf.media.HttpGetEndpoint


    player2.connect(bn);
    player1.connect(hubPort1);
    bn.connect(hubPort2);

    // mixer.setMainEndPoint(hubPort1);
    HttpGetEndpoint httpEndpoint = mediaPipeline.newHttpGetEndpoint()
        .terminateOnEOS().build();
    hubPort3.connect(httpEndpoint);
    contentSession.start(httpEndpoint);
  }
View Full Code Here


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

    // Connections
    playerEndpoint.connect(httpEndpoint);
View Full Code Here

        "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

    MediaPipeline pipeline = mpf.create();

    PlayerEndpoint player = pipeline.newPlayerEndpoint(
        "http://files.kurento.org/video/small.webm").build();

    HttpGetEndpoint httpGetEndpoint = pipeline.newHttpGetEndpoint().build();

    player.connect(httpGetEndpoint);

    String url = httpGetEndpoint.getUrl();

    player.release();

    Assert.assertNotSame("The URL shouldn't be empty", "", url);
View Full Code Here

    public void onContentRequest(final HttpPlayerSession session)
        throws Exception {
      MediaPipeline mp = session.getMediaPipelineFactory().create();
      playerEP = mp.newPlayerEndpoint(
          "http://files.kurento.org/video/barcodes.webm").build();
      HttpGetEndpoint httpEP = mp.newHttpGetEndpoint().terminateOnEOS()
          .build();
      ZBarFilter zBarFilter = mp.newZBarFilter().build();
      playerEP.connect(zBarFilter);
      zBarFilter.connect(httpEP);
      session.start(httpEP);
View Full Code Here

        throws Exception {
      MediaPipeline mp = session.getMediaPipelineFactory().create();
      session.releaseOnTerminate(mp);
      playerEP = mp.newPlayerEndpoint(
          "http://files.kurento.org/video/small.webm").build();
      HttpGetEndpoint httpEP = mp.newHttpGetEndpoint().terminateOnEOS()
          .build();
      playerEP.connect(httpEP);
      session.start(httpEP);

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

        throws Exception {
      MediaPipeline mp = session.getMediaPipelineFactory().create();
      session.releaseOnTerminate(mp);
      playerEP = mp.newPlayerEndpoint(
          "http://files.kurento.org/video/small.webm").build();
      HttpGetEndpoint httpEP = mp.newHttpGetEndpoint().terminateOnEOS()
          .build();
      playerEP.connect(httpEP);
      session.start(httpEP);
    }
View Full Code Here

    MediaPipeline mp = pipelineFactory.create();
    WebRtcEndpoint webRtcEP1 = mp.newWebRtcEndpoint().build();
    WebRtcEndpoint webRtcEP2 = mp.newWebRtcEndpoint().build();
    WebRtcEndpoint webRtcEP3 = mp.newWebRtcEndpoint().build();
    WebRtcEndpoint webRtcEP4 = mp.newWebRtcEndpoint().build();
    HttpGetEndpoint httpEP = mp.newHttpGetEndpoint().terminateOnEOS()
        .build();

    Composite composite = mp.newComposite().build();
    HubPort hubPort1 = composite.newHubPort().build();
    HubPort hubPort2 = composite.newHubPort().build();
    HubPort hubPort3 = composite.newHubPort().build();
    HubPort hubPort4 = composite.newHubPort().build();
    HubPort hubPort5 = composite.newHubPort().build();

    webRtcEP1.connect(hubPort1);
    webRtcEP2.connect(hubPort2);
    webRtcEP3.connect(hubPort3);
    webRtcEP4.connect(hubPort4);
    hubPort5.connect(httpEP);

    // Test execution
    try (BrowserClient browserPlayer = new BrowserClient.Builder()
        .browser(browserType).client(Client.PLAYER).build();
        BrowserClient browserWebRtc1 = new BrowserClient.Builder()
            .browser(browserType).client(Client.WEBRTC)
            .video(getPathTestFiles() + "/video/10sec/red.y4m")
            .build();
        BrowserClient browserWebRtc2 = new BrowserClient.Builder()
            .browser(browserType).client(Client.WEBRTC)
            .video(getPathTestFiles() + "/video/10sec/green.y4m")
            .build();
        BrowserClient browserWebRtc3 = new BrowserClient.Builder()
            .browser(browserType).client(Client.WEBRTC)
            .video(getPathTestFiles() + "/video/10sec/blue.y4m")
            .build();
        BrowserClient browserWebRtc4 = new BrowserClient.Builder()
            .browser(browserType).client(Client.WEBRTC)
            .video(getPathTestFiles() + "/video/10sec/white.y4m")
            .build();) {

      // WebRTC browsers
      browserWebRtc1.subscribeEvents("playing");
      browserWebRtc1.connectToWebRtcEndpoint(webRtcEP1,
          WebRtcChannel.AUDIO_AND_VIDEO);
      browserWebRtc2.subscribeEvents("playing");
      browserWebRtc2.connectToWebRtcEndpoint(webRtcEP2,
          WebRtcChannel.AUDIO_AND_VIDEO);
      browserWebRtc3.subscribeEvents("playing");
      browserWebRtc3.connectToWebRtcEndpoint(webRtcEP3,
          WebRtcChannel.AUDIO_AND_VIDEO);
      browserWebRtc4.subscribeEvents("playing");
      browserWebRtc4.connectToWebRtcEndpoint(webRtcEP4,
          WebRtcChannel.AUDIO_AND_VIDEO);

      browserPlayer.setURL(httpEP.getUrl());
      browserPlayer.subscribeEvents("playing");
      browserPlayer.start();

      browserPlayer.setColorCoordinates(450, 450);
View Full Code Here

    public void onContentRequest(HttpPlayerSession session)
        throws Exception {
      MediaPipeline mp = session.getMediaPipelineFactory().create();
      playerEP = mp.newPlayerEndpoint(
          "http://files.kurento.org/video/10sec/red.webm").build();
      HttpGetEndpoint httpEP = mp.newHttpGetEndpoint().terminateOnEOS()
          .build();
      playerEP.connect(httpEP);
      session.start(httpEP);

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

TOP

Related Classes of com.kurento.kmf.media.HttpGetEndpoint

Copyright © 2018 www.massapicom. 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.