ofVideoPlayer: glitch or error loading video?

I’m extremely new to OF and trying to use it for a project involving video. I’m trying to load a video when a certain point on the screen is clicked. The video is being loaded within a class. When I click, however, a lot of glitched looking rectangles and things show up (not my video). There are no errors, my image just looks corrupted. What am I doing wrong here?

  
void Menu::update(){  
      
    if (clicked == true) {  
  
        menuVideo.update();  
    }  
      
}  
  
void Menu::draw(){  
      
    if (clicked == true) {  
        menuVideo.draw(0,0);  
    }  
}  
  
void Menu::checkClick(int x, int y){  
      
    if (x > posX && x < posX + size && y > posY && y < posY + size) {  
        clicked = !clicked;  
          
        if(clicked == true) {  
            menuVideo.loadMovie("movies/selectLOST.mp4");  
            menuVideo.play();  
        }  
          
    }  
      
}  

Have you tried using the movie in the videoplayer example? Does that movie work?
Are you doing anything with FBOs? Sounds like your buffer is not getting cleared.
Are you only loading the movie once? Can you put a simple trace in there to make sure.

Nick

Thanks for the reply, Nick.

I tried what you suggested, and was still getting the same glitchy effect. I wasn’t using FBOs, so that wasn’t it.

I think I figured it out, though. It seems the videos were being played (multiplied?) on top of each other, which was causing the glitch. The way image/video/color layering works in OF is still a bit confusing to me.