FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Topics & Contributions
   Video, Camera
(Moderator: REAS)
   newbie question
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: newbie question  (Read 533 times)
pinkwalker

WWW Email
newbie question
« on: Nov 18th, 2004, 10:10pm »

Hy,
 
i'm in a little situation. I have more than one files in mi project, and i want to play it in random .  
 
My question is how to know the state (play or stop) of each video. Anyone can help me ?
 
 
cheers
 
Gabriel
 

***************
www.pinkwalker.tk
fjen

WWW
Re: newbie question
« Reply #1 on: Nov 19th, 2004, 1:53pm »

try BVideo.play ... it's not documented.
 
my_video = loadVideo("some.mov");
 
void loop()
{
    if(!my_video.play){
   my_video = loadVideo("someOther.mov");
    }
}
 
this is untested ... but should work.
 
/F
 
fjen

WWW
Re: newbie question
« Reply #2 on: Nov 19th, 2004, 1:56pm »

oh, another thing: if you use repeat() it's never gonna stop .. so to check it the movie is looping you could use BVideo.loop ..
 
if (my_video.loop){
// it's looping
}
 
/F
 
Pages: 1 

« Previous topic | Next topic »