I’m trying to develop a kinect controlled fashion show. One of the musts is having seamless transition between videos. ( Enterance to loop , loop to exit )
There seems after I change video there is an empty frame. ( one frame delay in another words ) If i play the videos on background and just setPosition to 0 when the changing occurs I don’t see that empty frame.
My update function contains a test which controls the state of the currentVideo and changes the players state.
ofVideoPlayer *currentEnteranceVideo;
ofVideoPlayer *currentLoopVideo;
ofVideoPlayer *currentExitVideo;
ofVideoPlayer *currentVideo;
UPDATE
if(currentVideo->getIsMovieDone()){
switch (currentState) {
case Enterance:
ofLog()<<"enterance to loop";
currentVideo = currentLoopVideo;
currentState = Loop;
break;
case Loop:
ofLog()<<"loop to exit";
currentState = Exit;
currentVideo = currentExitVideo;
break;
default:
break;
}
currentVideo->play();
currentVideo->setLoopState(OF_LOOP_NONE);
}
currentVideo->idleMovie();
DRAW
ofSetHexColor(0xffffff);
currentVideo->draw(30, 30.0f, 668.0f, 1024.0f);
I’m new to cpp so I’m not sure that this is a bug or I’m doing smt wrong. Thanks for your help.