OS : MacOs
**PsychoPy version: 2023.2.3
**Standard Standalone? yes
**What are you trying to achieve?:
I am trying to create a routine with a loop of video stimuli (to which you answer yes ‘a’ or ,‘l’ with the keyboard. My videos ar in .mp4. It used to crash after the first video because the other videos needed time to load.
What did you try to make it work?:
In my routine, have created a 2 second fixation time that comes before the video, with a static component named ‘preload’, and asked that the videos ‘set during preload’ instead of ‘set every repeat’.
**What specifically went wrong when you tried that?:
Since I have done that, I always have the following error :
‘UnboundLocalError: local variable ‘Videos’ referenced before assignment’
I know that I am supposed to change something in the coder to make sure that my ‘Video’ component is defined or referecend before being used but I don’t know where and what to write in the coder to do so.
Thank you