Hi all,
We would like to show a video optionally during the experiment. MovieStim3 displays the video in an separate script but when we added it in our main experiment script, it shows only one frame and it gets stuck. The sound continues to plays during this time. I have added the code below. Any suggestions for this problem is welcomed.
if event.getKeys(["f"]):
background.setAutoDraw(False)
fixkreuz_neutral.setAutoDraw(False)
per_stim.setAutoDraw(False)
image_stimulus.setAutoDraw(False)
mov = visual.MovieStim3(win, './videos/animated_target.avi')
while mov.status !=constants.FINISHED:
mov.draw()
win.flip()
#mov.play()
if event.waitKeys(maxWait=3000, keyList=["w"]):
break
#background.setAutoDraw(True)
#fixkreuz_neutral.setAutoDraw(True)
#per_stim.setAutoDraw(True)
#image_stimulus.setAutoDraw(True)