| Reference | Downloads | Github

Playing a continuous video during a task

Dear community,
I would like to code a (very simple) experiment recording simple reaction timea in response to a stimulus.
In the experiment I need a video playing (continuously) in the background. The video should not be synchronized with the trials (it doesn’t matter the synchrony at all).

Is there a simple way to code this?

Thank you!

Set movie.autoDraw = True and have the whole experiment timed to frames using win.flip() and avoid other ways of controlling time since they will cause the movie to halt while they run, i.e. core.wait, event.waitKeys etc.). So initiate like this:

# Set things up
from psychopy import visual
win = visual.Window()
movie = visual.MovieStim(win, 'my_movie_name.avi')
movie.autoDraw = True