Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

How to randomize the order of the videos

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!



  • 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?


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


Sign In or Register to comment.