Loading...
Logo
Processing Forum

How to setup up a Video Array

in General Discussion  •  Other  •  2 years ago  
Hey,


I was just wondering is it possible to setup a video array to load multiple videos into my patch similar to using a PImage array for as many images as required.




Replies(1)

Sure. It may be more sensible to work with larger objects that each contain a single movie though, depending on what your intentions are. But if you want a simple array of movies it works just like an array of any other type of object, like this...
Copy code
  1. Movie[] movies = new Movie[3];
  2.  
  3. movies[0] = new Movie(this, "mov1.mov");
  4. movies[1] = new Movie(this, "mov2.mov");
  5. movies[2] = new Movie(this, "mov3.mov");

  6. etc.