Skip to content
Discussion options

You must be logged in to vote

Hi @petyaracz,

Since you've got stimuli_num as the condition and stim_list as a list of all the videos in that condition you could just preload only those videos:

var stim_list = [vid_cond1,vid_cond2];
var stimuli_num = jsPsych.randomization.shuffle([0,1])[0];
var vid_timeline = stim_list[stimuli_num];

var filenames = stim_list[stimuli_num].map((element) => element.video);

var preload = {
    type: jsPsychPreload,
    videos: filenames
 };

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by petyaracz
Comment options

You must be logged in to vote
1 reply
@petyaracz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants