Examples of newRecorderEndpoint()


Examples of com.kurento.kmf.media.MediaPipeline.newRecorderEndpoint()

  protected RecorderEndpoint buildUriEndpoint(String contentPath) {
    getLogger().info("Creating media pipeline ...");
    MediaPipeline mediaPipeline = mediaPipelineFactory.create();
    releaseOnTerminate(mediaPipeline);
    getLogger().info("Creating RecorderEndpoint ...");
    RecorderEndpoint recorderEndpoint = mediaPipeline.newRecorderEndpoint(
        contentPath).build();
    return recorderEndpoint;
  }

  /**
 
View Full Code Here

Examples of com.kurento.kmf.media.MediaPipeline.newRecorderEndpoint()

  @Override
  public void onContentRequest(HttpRecorderSession contentSession)
      throws Exception {
    MediaPipeline mp = contentSession.getMediaPipelineFactory().create();
    contentSession.releaseOnTerminate(mp);
    RecorderEndpoint recorderEndpoint = mp.newRecorderEndpoint(getUri())
        .build();
    contentSession.setAttribute("recorder", recorderEndpoint);
    HttpPostEndpoint httpEndpoint = mp.newHttpPostEndpoint().build();
    httpEndpoint.connect(recorderEndpoint);
    contentSession.start(httpEndpoint);
View Full Code Here

Examples of com.kurento.kmf.media.MediaPipeline.newRecorderEndpoint()

    MediaPipeline mp = pipelineFactory.create();
    PlayerEndpoint playerEP = mp.newPlayerEndpoint(
        "http://files.kurento.org/video/fiwarecut.mp4").build();
    HttpGetEndpoint httpEP = mp.newHttpGetEndpoint().terminateOnEOS()
        .build();
    RecorderEndpoint recorderEP = mp.newRecorderEndpoint(
        FILE_SCHEMA + getDefaultFileForRecording()).build();
    final FaceOverlayFilter filter = mp.newFaceOverlayFilter().build();
    filter.setOverlayedImage(
        "http://files.kurento.org/imgs/mario-wings.png", -0.2F, -1.2F,
        1.6F, 1.6F);
View Full Code Here

Examples of com.kurento.kmf.media.MediaPipeline.newRecorderEndpoint()

        "http://files.kurento.org/video/10sec/green.webm").build();
    PlayerEndpoint playerBlue = mp.newPlayerEndpoint(
        "http://files.kurento.org/video/10sec/blue.webm").build();
    HttpGetEndpoint httpEP = mp.newHttpGetEndpoint().terminateOnEOS()
        .build();
    RecorderEndpoint recorderEP = mp.newRecorderEndpoint(
        FILE_SCHEMA + getDefaultFileForRecording()).build();

    try (BrowserClient browser = new BrowserClient.Builder()
        .browser(browserType).client(Client.PLAYER).build()) {
      browser.setURL(httpEP.getUrl());
View Full Code Here

Examples of com.kurento.kmf.media.MediaPipeline.newRecorderEndpoint()

  @Override
  public void onContentRequest(HttpRecorderSession contentSession)
      throws Exception {
    MediaPipeline mp = contentSession.getMediaPipelineFactory().create();
    contentSession.releaseOnTerminate(mp);
    RecorderEndpoint recorderEndpoint = mp.newRecorderEndpoint(getUri())
        .build();
    contentSession.setAttribute("recorder", recorderEndpoint);
    HttpPostEndpoint httpEndpoint = mp.newHttpPostEndpoint().build();
    httpEndpoint.connect(recorderEndpoint);
    contentSession.start(httpEndpoint);
View Full Code Here

Examples of com.kurento.kmf.media.MediaPipeline.newRecorderEndpoint()

    MediaPipeline mp = pipelineFactory.create();
    PlayerEndpoint playerEP = mp.newPlayerEndpoint(
        "http://files.kurento.org/video/10sec/green.webm").build();
    HttpGetEndpoint httpEP = mp.newHttpGetEndpoint().terminateOnEOS()
        .build();
    RecorderEndpoint recorderEP = mp.newRecorderEndpoint(
        FILE_SCHEMA + getDefaultFileForRecording()).build();
    playerEP.connect(httpEP);
    playerEP.connect(recorderEP);

    // Test execution #1. Play the video while it is recorded
View Full Code Here

Examples of com.kurento.kmf.media.MediaPipeline.newRecorderEndpoint()

        WebRtcContentSession contentSession) throws Exception {
      MediaPipeline mp = contentSession.getMediaPipelineFactory()
          .create();
      // contentSession.releaseOnTerminate(mp);
      WebRtcEndpoint webRtcEndpoint = mp.newWebRtcEndpoint().build();
      recorderEndPoint = mp.newRecorderEndpoint(FILE_SCHEMA + recording)
          .build();
      webRtcEndpoint.connect(webRtcEndpoint);
      webRtcEndpoint.connect(recorderEndPoint);
      contentSession.start(webRtcEndpoint);
View Full Code Here

Examples of com.kurento.kmf.media.MediaPipeline.newRecorderEndpoint()

  public void doTest(Browser browserType, String video, Color color)
      throws InterruptedException {
    // Media Pipeline #1
    MediaPipeline mp = pipelineFactory.create();
    WebRtcEndpoint webRtcEP = mp.newWebRtcEndpoint().build();
    RecorderEndpoint recorderEP = mp.newRecorderEndpoint(
        FILE_SCHEMA + getDefaultFileForRecording()).build();
    webRtcEP.connect(webRtcEP);
    webRtcEP.connect(recorderEP);

    // Test execution #1. WewbRTC in loopback while it is recorded
View Full Code Here

Examples of com.kurento.kmf.media.MediaPipeline.newRecorderEndpoint()

    MediaPipeline mp = contentSession.getMediaPipelineFactory().create();
    contentSession.releaseOnTerminate(mp);

    // Media Elements: WebRTC Endpoint, Recorder Endpoint
    WebRtcEndpoint webRtcEndpoint = mp.newWebRtcEndpoint().build();
    RecorderEndpoint recorderEndpoint = mp.newRecorderEndpoint(
        "file:///tmp/recording").build();
    contentSession.setAttribute("recorder", recorderEndpoint);

    // Connections
    webRtcEndpoint.connect(webRtcEndpoint);
View Full Code Here

Examples of com.kurento.kmf.media.MediaPipeline.newRecorderEndpoint()

    MediaPipeline mp = contentSession.getMediaPipelineFactory().create();
    contentSession.releaseOnTerminate(mp);

    // Media Elements: WebRTC Endpoint, Recorder Endpoint
    WebRtcEndpoint webRtcEndpoint = mp.newWebRtcEndpoint().build();
    RecorderEndpoint recorderEndpoint = mp.newRecorderEndpoint(
        "file:///tmp/recording").build();
    contentSession.setAttribute("recorder", recorderEndpoint);

    // Connections
    webRtcEndpoint.connect(webRtcEndpoint);
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.