Examples of GSMovie


Examples of codeanticode.gsvideo.GSMovie

   
    @Override
    protected void onNewFrame() {
      super.onNewFrame();
     
      GSMovie m = getMovie();
      if (!stopSliderAdvance && m != null && slider != null){
        slider.setValue(m.time()); //ONLY UPDATE the slider position WHEN NOT DRAGGING THE SLIDER
      }
    }
View Full Code Here

Examples of codeanticode.gsvideo.GSMovie

    this.duration = 0.0f;
    this.setName("movieclip: " + movieFile);
    firstTimeRead = true;
   
    try {
      movie = new GSMovie(pApplet, movieFile, ifps);
      movie.setEventHandlerObject(this);

      //      if (pApplet instanceof MTApplication) {
      //        MTApplication app = (MTApplication) pApplet;
      //        movie.play();
View Full Code Here

Examples of codeanticode.gsvideo.GSMovie

   * Gets the duration.
   *
   * @return the duration
   */
  public float getDuration(){//duration only valid if video is playing
    GSMovie movie = getMovie();
    if (movie.duration() == 0.0){
      return duration;
    }else{
      duration = movie.duration();
      return duration;
    }
  }
View Full Code Here

Examples of codeanticode.gsvideo.GSMovie

   * Jump.
   *
   * @param where the where
   */
  public void jump(float where) {
    GSMovie movie = getMovie();
    movie.jump(where);
  }
View Full Code Here

Examples of codeanticode.gsvideo.GSMovie

 
  /**
   * Play.
   */
  public void play() {
    GSMovie movie = getMovie();
    movie.play();
  }
View Full Code Here

Examples of codeanticode.gsvideo.GSMovie

  /**
   * Stop.
   */
  public void stop() {
    GSMovie movie = getMovie();
    movie.stop();
  }
View Full Code Here

Examples of codeanticode.gsvideo.GSMovie

  /**
   * Loop the movie.
   */
  public void loop() {
    GSMovie movie = getMovie();
    movie.loop();
  }
View Full Code Here

Examples of codeanticode.gsvideo.GSMovie

  /**
   * No looping.
   */
  public void noLoop() {
    GSMovie movie = getMovie();
    movie.noLoop();
  }
View Full Code Here

Examples of codeanticode.gsvideo.GSMovie

  /**
   * Pause.
   */
  public void pause() {
    GSMovie movie = getMovie();
    movie.pause();
  }
View Full Code Here

Examples of codeanticode.gsvideo.GSMovie

   * Time.
   *
   * @return the time the movie plays in float
   */
  public float getTime() {
    GSMovie movie = getMovie();
    return movie.time();
  }
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.