@aaa wrote:
I'm currently using ofxHAPAVPlayer but I had this problem with the standard ofVideoPlayer as well.
I'll play() a video which as been previously stopped. Then immediately set the frame to zero before updating or drawing. However, for the first frame or two, it will draw from wherever it was before.
So in setup:
doorsLoop.play();
doorsLoop.stop();update:
// called when scene changes
if(scene == 4) {doorsLoop.play(); doorsLoop.setFrame(0); } // called when its scene 4 in a loop if(scene == 4) { doorsLoop.update(); }
draw:
if(scene == 4) {
ofClear(0,0,0);doorsLoop.draw(0, 0, ofGetWidth(), ofGetHeight()); }
Posts: 1
Participants: 1