Examples of newFaceOverlayFilter()


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

        "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);

    playerEP.connect(filter);
View Full Code Here

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

    // System.out.println("Finish");
    // System.exit(0);
    // }
    // });

    FaceOverlayFilter filter = pipeline.newFaceOverlayFilter().build();
    filter.setOverlayedImage(
        "http://files.kurento.org/imgs/mario-wings.png", -0.35F, -1.2F,
        1.6F, 1.6F);

    HttpGetEndpoint recorder = pipeline.newHttpGetEndpoint().build();
View Full Code Here

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

  public void onContentRequest(WebRtcContentSession contentSession)
      throws Exception {
    MediaPipeline mp = contentSession.getMediaPipelineFactory().create();
    contentSession.releaseOnTerminate(mp);

    FaceOverlayFilter filter = mp.newFaceOverlayFilter().build();
    filter.setOverlayedImage(
        "http://files.kurento.org/imgs/mario-wings.png", -0.35F, -1.2F,
        1.6F, 1.6F);

    WebRtcEndpoint webRtcEndpoint = mp.newWebRtcEndpoint().build();
View Full Code Here

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

        + contentSession.getHttpServletRequest().getContextPath()
        + "/img/masks/mario-wings.png";

    MediaPipeline mp = contentSession.getMediaPipelineFactory().create();
    contentSession.releaseOnTerminate(mp);
    filter = mp.newFaceOverlayFilter().build();
    filter.setOverlayedImage(imageUrl, -0.35F, -1.2F, 1.6F, 1.6F);
    WebRtcEndpoint webRtcEndpoint = mp.newWebRtcEndpoint().build();
    webRtcEndpoint.connect(filter);
    filter.connect(webRtcEndpoint);
    contentSession.start(webRtcEndpoint);
View Full Code Here

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

    // Media Elements: WebRTC Endpoint, Filter
    final WebRtcEndpoint webRtcEndpoint = mp.newWebRtcEndpoint().build();
    final PointerDetectorFilter pointerDetectorFilter = mp
        .newPointerDetectorFilter().build();
    final FaceOverlayFilter faceOverlayFilter = mp.newFaceOverlayFilter()
        .build();
    PointerDetectorWindowMediaParam start = new PointerDetectorWindowMediaParam(
        "start", 100, 100, 280, 380);
    start.setImage("http://files.kurento.org/imgs/start.png");
    pointerDetectorFilter.addWindow(start);
View Full Code Here

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

    log.debug("Received SDP offer");

    // Media Logic
    MediaPipeline mp = mpf.create();
    WebRtcEndpoint webRtcEndpoint = mp.newWebRtcEndpoint().build();
    FaceOverlayFilter faceOverlayFilter = mp.newFaceOverlayFilter().build();
    faceOverlayFilter.setOverlayedImage(
        "http://files.kurento.org/imgs/mario-wings.png", -0.35F, -1.2F,
        1.6F, 1.6F);
    webRtcEndpoint.connect(faceOverlayFilter);
    faceOverlayFilter.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.