Welcome!

Sign in with your CogSci, Facebook, Google, or Twitter account.

Or register to create a new account.

We'll use your information only for signing in to this forum.

Supported by

How to randomize the order of the videos

Hello,
I'm using media_player_mpy to insert 16 video clips in a cue-paradigm task. The rest of the experiment is written with Python script. We're trying to figure out if there is anyway we can set the videos to play in a quasi-random sequence.
Thank you for your help!

Best,
Iris

Comments

  • eduardeduard Posts: 963

    Hi Iris,

    Sorry for the late reply. You can use the loop table to randomize the filenames that you want to play back. So, you would make a variable (e.g. video_file) and in every line you would write one of the filenames. Then in the Media player where you select the video file to play you put [video_file] which will choose the current file.

    Does that make sense?

    Eudard

  • irisshen926irisshen926 Posts: 5

    Hi Eduard,
    Thank you for your response! That makes sense!

    Best,
    Iris

Sign In or Register to comment.