Package quicktime.std.movies

Examples of quicktime.std.movies.MovieController


    selection = st;
    duration = dur;
   }
  
   public void setMovieSelection() {
     MovieController mc = null;
    if (mc == null) {
     // fetch or create a moviecontroller for the selected movie
     MediaPresenter presenter = VideoGrok.getPresenter();
     try {
      presenter.openFromURL(movieURL,getSelectionStart());
      mc = presenter.getMovieController();
     } catch (Exception e) {
      e.printStackTrace();
     }

    }
    if (mc == null) {
     System.out.println("Can't create a moviecontroller for "+movieURL+" in MovieSelection.playMovieSelection()");
    }
    try {
      TimeRecord ts = mc.getSelectionBegin();
      TimeRecord td = mc.getSelectionDuration();
      ts.setValue(selection.getValue());
      ts.setScale(selection.getScale());
      td.setValue(duration.getValue());
      td.setScale(duration.getScale());
     mc.setSelectionBegin(ts);
     mc.setSelectionDuration(td);
     System.out.println("Duration in setMovieSelection: "+td+duration+(td.getValue()-winbase));
    } catch (Exception e) {
     System.out.println("Could not set selection "+selection.toString()+" "+duration.toString()+" in MovieSelection.setMovieSelection()");
    }
   }
View Full Code Here


     System.out.println("Could not set selection "+selection.toString()+" "+duration.toString()+" in MovieSelection.setMovieSelection()");
    }
   }

   public void playMovieSelection() {
    MovieController mc = null;
   
    if (mc == null) {
    // fetch or create a moviecontroller for the selected movie
     MediaPresenter presenter = VideoGrok.getPresenter();
     try {
       presenter.openFromURL(movieURL,getSelectionStart());
      mc = presenter.getMovieController();
     } catch (Exception e) {
      e.printStackTrace();
     }
   
    }
    if (mc == null) {
     System.out.println("Can't create a moviecontroller for "+movieURL+" in MovieSelection.playMovieSelection()");
    }
    setMovieSelection();
    try {
     mc.setPlaySelection(true);
     mc.goToTime(selection);
     mc.play((float) 1.0);
    catch (Exception e) {
     System.out.println("Could not play selection "+selection.toString()+" "+duration.toString()+" in MovieSelection.playMovieSelection()");
    }
   
  }
View Full Code Here

/*    */
/*    */   /** @deprecated */
/*    */   public QTDrawable fromMovie(Movie paramMovie)
/*    */     throws QTException
/*    */   {
/* 69 */     MovieController localMovieController = new MovieController(paramMovie);
/* 70 */     localMovieController.setKeysEnabled(true);
/* 71 */     return new QTPlayer(localMovieController);
/*    */   }
View Full Code Here

/* 462 */       localQDGraphics1 = this.canvas.getPort();
/*     */     else {
/* 464 */       localQDGraphics1 = QDGraphics.scratch;
/*     */     }
/* 466 */     if (this.canvas.movieController != null) {
/* 467 */       MovieController localMovieController = this.canvas.movieController;
/* 468 */       QDGraphics localQDGraphics2 = localMovieController.getPort();
/* 469 */       if (!localQDGraphics1.equals(localQDGraphics2))
/*     */       {
/* 471 */         setControllerGWorld(localMovieController, localQDGraphics1);
/*     */       }
/* 473 */     } else if (this.canvas.movie != null)
View Full Code Here

TOP

Related Classes of quicktime.std.movies.MovieController

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.