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.
a (belated) welcome to the openFrameworks forum! glad you found us, this is the main place for getting support with using openFrameworks. there’s also an IRC channel #openframeworks on freenode, you can use a web interface to access it here http://en.irc2go.com/webchat/?net=freenode&room=openframeworks . it’s not always very full but you can try asking for help there also. and there’s documentation and tutorials on the website at http://openframeworks.cc although i guess you’ve found those already. and for programming problems not specific to openFrameworks but more about, how would i achieve this effect in code in general, you could try also asking your question in the Processing forums at http://forum.processing.org/ (Processing and openFrameworks are very similar so a solution that works in Processing can usually be adapted to work in openFrameworks) and StackOverflow at http://stackoverflow.com .
it seems like you solved your problem already, but here’s another method i would suggest in case anyone else has the same problem. have two video players running simultaneously, with some preroll/postroll on the videos you want to play. when it comes time to switch from one to the other start the second one playing then crossfade over a few frames, maybe 0.5-1 second. you can do this by using a float alpha that changes gradually from 0 to 1 over the duration, then use ofSetColor() to set the alpha for each video, ie