up Inquisit Language Reference

video element

The video element defines a set of video items and controls how they are displayed.

Syntax

<video videoname>
/ animation = circle(duration, loopcount, start, xcenter, ycenter, radius) or path(duration, loopcount, x1, y1, x2, y2, x3, y3, ...) or points(duration, loopcount, x1, y1, x2, y2, x3, y3, ...)
/ dropposition = (x value, y value) or (x constant, y constant)
/ dropsource = value or boolean
/ droptarget = property or boolean
/ erase = true(red value, green value, blue value) or true(color value) or true(color name) or false
/ halign = alignment
/ height = integer expression
/ hposition = x expression
/ items = itemname or ("item", "item", "item",... )
/ monitor = integer
/ onprepare = [expression; expression; expression; ...]
/ playthrough = boolean
/ position = (x value, y value)
/ resetinterval = integer
/ select = integer or selectionmode or selectionmode(pool) or dependency(stimulusname) or dependency(listname) or listname
/ size = (width variable, height variable)
/ stream = boolean
/ valign = alignment
/ vposition = y expression
/ width = integer expression
</video>

Properties

video.videoname.bottom
video.videoname.currentindex
video.videoname.currentitem
video.videoname.currentitemnumber
video.videoname.currentvalue
video.videoname.dropsource
video.videoname.droptarget
video.videoname.dropx
video.videoname.dropy
video.videoname.erase
video.videoname.erasecolorblue
video.videoname.erasecolorgreen
video.videoname.erasecolorred
video.videoname.height
video.videoname.hposition
video.videoname.itemcount
video.videoname.items
video.videoname.left
video.videoname.loop
video.videoname.monitor
video.videoname.name
video.videoname.nextindex
video.videoname.nextvalue
video.videoname.playthrough
video.videoname.resetinterval
video.videoname.right
video.videoname.selectedcount
video.videoname.skip
video.videoname.stimulusonset
video.videoname.timestamp
video.videoname.top
video.videoname.typename
video.videoname.unselectedcount
video.videoname.vposition
video.videoname.width

Functions

video.videoname.appenditem
video.videoname.clearitems
video.videoname.insertitem
video.videoname.item
video.videoname.removeitem
video.videoname.resetselection
video.videoname.setitem

Remarks

The video element determines how video files are selected on each trial (e.g. randomly, in sequence, etc.) and how those items should be presented. Inquisit can display a variety of different streaming formats, including asf, vod, mpeg-1, mpeg-2, mpeg-3, mpeg-4, avi, midi, mov, wav, snd, au, and aiff, animated gifs, and Adobe Flash animations. Note that not all video file containers and codecs are supported on all platforms. To present videos that will work on both Mac and Windows, use mpg file containers with the MPEG2 codec format, or use conditional include elements to select *.wmv versions of your videos on Windows and *.mov versions for Mac.

Examples

The following randomly selects from 3 video files and displays the video on the upper left quadrant of the screen. Responding is not permitted until the video clip is finished.

<video tvshows>
/ items = ("desparatehousewives.mpg", "thedailyshow.avi", "southpark.wmv")
/ playthrough = true
/ position = (25, 25)
</video>

Send comments on this topic:
Copyright Millisecond Software, LLC. All rights reserved.