Clearing screen when video is paused

Hi there,
How do I clear the screen (eg. by paining a black rect all over the screen) when the video is paused in the videoplayer?

I paused the video by using:

  
Movie.setPaused(true);  

So the question break to:

  1. How do I check if a video is paused? Currently I’m using
  
 if (Movie.getSpeed() > 0)   
{ ofRect(0,0,800,600) }  

. But it does not seem to work.

  1. How do I clear the paused video image from the screen?

Thanks!
Mo

P.S. I’m using WinXP

Seems like you are doing the opposite you are tyring o do.

By doing this:

  
if (Movie.getSpeed() > 0)  
{ ofRect(0,0,800,600) }  

You are Saying “if the spee si gtater than 0” or the equivalent in this case “if the video is NOT paused”.

wirte this instead:

  
if (Movie.getSpeed() == 0)  
{ ofRect(0,0,800,600) }  

}

Note the doble “==”, use this when comparing numbers or strings.

Maybe this could also help:

  
if (Movie.getSpeed() > 0)  
{  
    theMovie.draw(0,0,800,600);  
}  

“if the video is NOT paused draw it”.

UPS - you’re quit right. A logical slip.
Thanks!