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();
}
}
}