Stop a video playback with a keypress and record reaction time
Hi,
In my experiment, the user watches a video and presses a key (let's say "space") when he sees a specific object.
At the key press, the video stops.
I then need to record the time between the beginning of the video and the time he pressed the key.
How can I do that?
Thank you for your help.
Emphyrio

Comments
Hi Emphyrio,
The start time of the video is automatically recorded as
time_[name of item]. So, if we assume that yourmedia_player_mpyitem is simply called media_player_mpy, then you could determine the response time by inserting a simpleinline_scriptdirectly after the media player, with the following code in the Run phase:Does that make sense?
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi Sebastiaan,
Yes, it does. I still have to make some tests, but it seems to work.
Thank you very much!
Emphyrio