ofVideoPlayer setFrame question

howdy,

i’m having some trouble with setFrame. in one instance it works fine but in another it does not-
the video jumps to the frame but then does not continue playing.

what am i doing wrong?

//--------------------------------------------------------------
void ofApp::setup(){

if (x ==2){
video2.load("2.mp4");

//--------------------------------------------------------------
void ofApp::update(){

if (x == 2){

            video2.load("2.mp4");
            video2.play();

			video2.update();

}

//--------------------------------------------------------------
void ofApp::draw(){

if (x == 2){

video2.draw(0,0,5400,1920);

//working
if (video2.getCurrentFrame() == 200){

        video2.setFrame(450);
        video2.play();
        
		}

//not working
if( j == 10){
video2.setFrame(450);
video2.play();
}
}

//--------------------------------------------------------------
void ofApp::keyPressed(int key){

switch (key) {
    case 'a':
        x = 1;
		break;

    case 'b':
        x = 2;            
        break;

    case 'j':
        j = 10;
        break;
}

}