Replies: 5 comments
-
It doesn't look like the code above has any reference to the video file in it. Did you mean to paste a different set of code? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick reply. See below for the code. The video is stored locally on my computer in the same file as the experiment. I hope you can spot the problem. <�!�d�o�c�t�y�p�e� �h�t�m�l�>� � � � � �v�a�r� �t�i�m�e�l�i�n�e� �=� �[�]�;� � |
Beta Was this translation helpful? Give feedback.
-
apparently my source code is removed when I post it. I've attached it in a file. |
Beta Was this translation helpful? Give feedback.
-
It may be related to local file:// protocol issues. See this stackoverflow thread. |
Beta Was this translation helpful? Give feedback.
-
I figured it out. Thank you for your help. |
Beta Was this translation helpful? Give feedback.
-
I'm having trouble with using video's as stimuli.
In my experiment I want to ask participants if they think it's save to cross a road. Participants will watch a video and will be asked to judge the gaps between oncoming traffic as either save or unsafe to cross (by pressing two keys while watching the video).
From what i've read so far in other posts, a code similar to this should suffice:
var trial = {
type: 'single-stim',
stimulus: '',
prompt: 'Press Y if the video has a gorilla in it, press N otherwise.',
choices: ['y','n'],
is_html: true
}
However, when I do this the video does not play. The video does play in a html file, but not with jsPsych.
In the html file I use the following code:
I'm a newbie at using jsPsych, so some insight in to what i'm doing wrong would be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions