I have some problems with MovieStim3.
I am trying to play a movie and when it finishes, the code waits for a keypress (“T” or “V”).
However, after the movie is played, I have to click with my pad on the window (which is already in fullscreen) to get the keyboard event.
I am working with Psychopy v2020.1.3 on Windows 10.
Find bellow the code
from psychopy import visual, core, event from psychopy.event import getKeys, waitKeys win = visual.Window((1024, 768), fullscr = True) mov = visual.MovieStim3(win, "video/videoTest.mp4", size=(320, 240)) while mov.status != visual.FINISHED: mov.draw() win.flip() if event.getKeys(): break waitKeys(keyList = ["t", "v"], modifiers = False, timeStamped = False) win.close()
Thanks in advance for your help!