OS (e.g. Win10): WIN11
PsychoPy version (e.g. 1.84.x): 2022.2.3
What are you trying to achieve? Is it possible to stop the presentation of a video after X seconds and continue it just by pressing the space bar?
(I am currently editing the video so that it ends after X seconds and pressing the space bar takes me to the next routine where the rest of the video appears. I’d rather avoid another routine)
Hi @Eldad_Avital,
according to this, you should be able to do this by
Every frame
keys = YourKeyboard.getKeys()
if YourMovie.isPlaying and t > YourDuration:
YourMovie.pause()
if YourMovie.isPaused and "space" in keys:
YourMovie.play()