Playing videos of different lengths on MWorks

Hi Chris,

I have some clips (mp4 files) of different lengths that I’d like to use as my RSVP stimuli. Is there a way to either read the length of a clip, or to automatically move on to the next task state when the video stops playing?

So far, all my videos have had fixed lengths so it was straightforward.

Thanks in advance!

Best,
Sachi

Hi Sachi,

If you assign a variable to the ended parameter, you can use it to know when each video ends. Please see the attached example.

Cheers,
Chris

Attachment: video_ended.mwel.zip (825 Bytes)

Hi Chris,

This is helpful — works as I want. Thank you so much!

Sachi