//-------------------------------------------------------------- void ofApp::setup(){ ofSetLogLevel(OF_LOG_NOTICE); ofFileDialogResult result = ofSystemLoadDialog("Select movie file..."); if(result.bSuccess == false){ ofLogWarning() << "SystemDialog canceled"; ofExit(1); } ofSleepMillis(300); video.load(result.getPath()); video.setVolume(0); video.setLoopState(OF_LOOP_NONE); // WORKAROUND video.play(); video.stop(); windowRefresh(ofGetWindowWidth(), ofGetWindowHeight()); }