We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpVideo Capture,  Movie Playback,  Vision Libraries › how to put three .mov together and play randomly
Page Index Toggle Pages: 1
how to put three .mov together and play randomly (Read 1538 times)
how to put three .mov together and play randomly
Jun 4th, 2007, 2:55pm
 
I'm quite a novice at the old programming, and cant figure out how to put three .mov next to each other, I have been trying to alter the exapmle in the refernce library given for jump() class.
Do i need to create another variable to attach another movie in the same window?
Re: how to put three .mov together and play random
Reply #1 - Jun 5th, 2007, 3:02am
 
Hi,

this will not play queued movies, but you can change from one to another with a keystroke/mouse instance.

Quote:
import processing.opengl.*;
import processing.video.*;

FasterMovie myMovie;

PImage mImage;

void setup()
{
 size(800,600, OPENGL);
// for smoother result, try different size/rendering like P3D or JAVA2D
 frameRate(60);
myMovie = new FasterMovie(this, "Movie1.mov",false);
myMovie.loop();
}

void movieImageAvailable ( PImage _myMovie )
{
   mImage = _myMovie;
}

void draw(){
image(myMovie,0,0,width,height);
if(mousePressed){
myMovie.stop();
myMovie = null;
mImage = null;
myMovie = new FasterMovie(this, "Movie2.mov", false);
myMovie.loop();
 }
}



To use this code and play your movies faster, you'll have to add FasterMovie.pde in your sketch :

http://processing.org/discourse/yabb_beta/YaBB.cgi?board=os_core_pde;action=display;num=1175633922;start=8#8

and replace the video library with this one there :

http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Video;action=display;num=1174051925
Page Index Toggle Pages: 1