video_keyboard_response not working #1711
-
Hi there, Can't seem to get a video stimulus to play at all. Player is visible on edge and firefox but not functioning. Things I have tried:
Code below: <!doctype html> <title>Effect of Frame of Reference on Biological Motion [jsPsych]</title>
var prime_fixation_test = {
};
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Also tried the latest version of jQuery - the player now shows up on chrome but the video stimuli still don't play.
|
Beta Was this translation helpful? Give feedback.
-
Found a solution - see below. The plugin required the stimuli in an array. Just add brackets to the example timeline example in the documentation timeline_variables: [ |
Beta Was this translation helpful? Give feedback.
Found a solution - see below. The plugin required the stimuli in an array. Just add brackets to the example timeline example in the documentation
timeline_variables: [
{ test: ["stimuli/Walk-90L-upright.mp4"], prime: "stimuli/Grass_Inverted.jpg"},
{ test: ["stimuli/Walk-90L-upright.mp4"], prime: "stimuli/Grass_Upright.jpg"},
{ test: "stimuli/Walk-90L-inverted.mp4", prime: "stimuli/Grass_Inverted.jpg"},
{ test: "stimuli/Walk-90L-inverted.mp4", prime: "stimuli/Grass_Upright.jpg"},
{ test: "stimuli/Walk-90R-upright.mp4", prime: "stimuli/Grass_Inverted.jpg"},
{ test: "stimuli/Walk-90R-upright.mp4", prime: "stimuli/Grass_Upright.jpg"},
{ test: "stimuli/Walk-90R-inverted.mp4", prime: "stimuli/G…