Package com.kurento.kmf.media

Examples of com.kurento.kmf.media.PointerDetectorWindowMediaParam


  public PointerDetectorWindowMediaParam trash;
  public PointerDetectorWindowMediaParam youtube;
  public PointerDetectorWindowMediaParam fiware;

  public CpbWindows(String handlerUrl) throws URISyntaxException {
    start = new PointerDetectorWindowMediaParam(Windows.START.toString(),
        100, 100, 280, 380);
    start.setImage(handlerUrl + "/img/buttons/start.png");

    mario = new PointerDetectorWindowMediaParam(Windows.MARIO.toString(),
        100, 100, 540, 0);
    mario.setImage(handlerUrl + "/img/buttons/mario.png");

    dk = new PointerDetectorWindowMediaParam(Windows.DK.toString(), 100,
        100, 540, 126);
    dk.setImage(handlerUrl + "/img/buttons/dk.png");

    sf = new PointerDetectorWindowMediaParam(Windows.SF.toString(), 100,
        100, 540, 252);
    sf.setImage(handlerUrl + "/img/buttons/sf.png");

    sonic = new PointerDetectorWindowMediaParam(Windows.SONIC.toString(),
        100, 100, 540, 380);
    sonic.setImage(handlerUrl + "/img/buttons/sonic.png");

    youtube = new PointerDetectorWindowMediaParam(
        Windows.YOUTUBE.toString(), 100, 100, 0, 380);
    youtube.setImage(handlerUrl + "/img/buttons/youtube.png");

    trash = new PointerDetectorWindowMediaParam(Windows.TRASH.toString(),
        100, 100, 0, 190);
    trash.setImage(handlerUrl + "/img/buttons/trash.png");

    fiware = new PointerDetectorWindowMediaParam(Windows.FIWARE.toString(),
        40, 180, 230, 0);
    fiware.setImage(handlerUrl + "/img/buttons/fiware2.png");
  }
View Full Code Here


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

    PointerDetectorFilter filter = mp.newPointerDetectorFilter().build();
    PointerDetectorWindowMediaParam window1 = new PointerDetectorWindowMediaParam(
        "window1", 50, 50, 50, 50);
    filter.addWindow(window1);
    filter.addWindowInListener(new MediaEventListener<WindowInEvent>() {
      @Override
      public void onEvent(WindowInEvent event) {
View Full Code Here

      else if (contentId != null && contentId.equalsIgnoreCase("pointer")) {
        // Pointer Detector Filter
        PointerDetectorFilter pointerDetectorFilter = mp
            .newPointerDetectorFilter().build();
        pointerDetectorFilter
            .addWindow(new PointerDetectorWindowMediaParam("goal",
                50, 50, 150, 150));
        pointerDetectorFilter
            .addWindowInListener(new MediaEventListener<WindowInEvent>() {
              @Override
              public void onEvent(WindowInEvent event) {
View Full Code Here

   */
  @Test
  public void testPointerDetectorFilter() throws InterruptedException {
    player.connect(filter);

    filter.addWindow(new PointerDetectorWindowMediaParam("goal", 50, 50,
        150, 150));
    final BlockingQueue<WindowInEvent> events = new ArrayBlockingQueue<WindowInEvent>(
        1);
    filter.addWindowInListener(new MediaEventListener<WindowInEvent>() {
      @Override
View Full Code Here

   *
   */
  @Test
  public void testWindowEvents() throws InterruptedException {

    PointerDetectorWindowMediaParam window0 = new PointerDetectorWindowMediaParam(
        "window0", 50, 50, 200, 50);

    PointerDetectorWindowMediaParam window1 = new PointerDetectorWindowMediaParam(
        "window1", 50, 50, 200, 150);

    filter.addWindow(window0);
    filter.addWindow(window1);

View Full Code Here

   *
   */
  @Test
  public void testWindowOverlay() throws InterruptedException {

    PointerDetectorWindowMediaParam window0 = new PointerDetectorWindowMediaParam(
        "window0", 50, 50, 200, 50);
    filter.addWindow(window0);

    final BlockingQueue<WindowInEvent> eventsIn = new ArrayBlockingQueue<WindowInEvent>(
        1);
View Full Code Here

    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);
    pointerDetectorFilter
        .addWindowInListener(new MediaEventListener<WindowInEvent>() {
          public void onEvent(WindowInEvent event) {
            // Set overlay image
View Full Code Here

TOP

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

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.