Movie doesn't play?
              in 
             Core Library Questions 
              •  
              3 months ago    
            
 
           
             Hi!
            
             
            
            
             
              
             
           
 
            
           
             I'm doing a college project and I need to load and play a movie. I'm using the code available on processing.org, but the movie doesn't play. It loads and shows up on canvas, but it's duration shows as 0.0 and it doesn't play. Any ideas on how to fix this?
            
            - import processing.video.*;
 - Movie myMovie;
 - void setup() {
 - size(800, 460);
 - frameRate(30);
 - myMovie = new Movie(this, "MiniPosters.mov");
 - // Prints the duration of the movie
 - println(myMovie.duration());
 - myMovie.play();
 - }
 - void draw() {
 - if (myMovie.available()) {
 - myMovie.read();
 - }
 - image(myMovie, 0, 0);
 - }
 - void movieEvent(Movie myMovie) {
 - myMovie.read();
 - }
 
 
              
              1  
            
 
            