Millisecond Forums

Step by Step Instructions for Videos--Mac vs. PC

https://forums.millisecond.com/Topic9930.aspx

By bel473 - 3/12/2013

Hello all,


I am a new Inquisit user and am having trouble putting in the conditional programming for a choosing an.mov file or a .wmv depending on whether or not the participant is using a Mac or PC. Can someone post step-by-step instructions for this or post an example of how this is programmed?


Thanks a ton!

By Dave - 3/12/2013

You need three files:

#1: main.iqx

<block myblock>
/ trials = [1-2=mytrial]
</block>

<trial mytrial>
/ stimulusframes = [1=myvideo]
/ validresponse = (57)
</trial>

<video myvideo>
/ items = myvideoitems
</video>

<include>
/ precondition = [computer.platform=="win"]
/ file = "win_vids.iqx"
</include>

<include>
/ precondition = [computer.platform=="mac"]
/ file = "mac_vids.iqx"
</include>

#2: win_vids.iqx

<item myvideoitems>
/ 1 = "a.wmv"
/ 2 = "b.wmv"
</item>

#3: mac_vids.iqx

<item myvideoitems>
/ 1 = "a.mov"
/ 2 = "b.mov"
</item>