up Inquisit Language Reference

video element

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

Attributes

<video name>
/ items = itemname
/ items = (file, file, file,... )

/ loop = boolean
/ playThrough = boolean
/ stream = boolean
/ volume = integer
/ animation = animation(....)
/ animation = circle(duration, loopCount, start, end, xcenter, ycenter, radius)
/ animation = path(duration, loopCount, x1, y1, x2, y2, x3, y3, ...)
/ animation = points(duration, loopCount, x1, y1, x2, y2, x3, y3, ...)
/ animation = size(duration, loopCount, startWidth, startHeight, scale1, scale2, scale3, ...)
/ animation = rotation(duration, loopCount, degrees1, degrees2, degrees3, ...)

/ dropPosition = (x, y)
/ dropPosition = (xposition, yposition)
/ dropPosition = (xexpression, yexpression)

/ dropSource = boolean
/ dropSource = expression

/ dropTarget = boolean
/ dropTarget = expression

/ erase = true
/ erase = true(colorname)
/ erase = false

/ hAlign = alignment
/ height = height
/ height = expression

/ hJustify = justification
/ hPosition = x
/ hPosition = expression

/ monitor = integer
/ onAnimate = { script }
/ position = (x, y)
/ position = (xexpression, yexpression)

/ rotation = degrees
/ rotation = expression

/ scale = factor
/ size = (width, height)
/ size = (widthexpression, heightexpression)

/ vAlign = alignment
/ vJustify = justification
/ vPosition = y
/ vPosition = expression

/ width = width
/ width = expression

/ onPrepare = { script }
/ resetInterval = integer
/ select = selectmode(stimulus)
/ select = selectmode(list)
/ select = selectmode(integer, integer, integer, ...)
/ select = list
/ select = selectmode
/ select = index

/ selectionRate = rate
</video>

Properties

video.name.currentTime
video.name.isPlaying
video.name.loop
video.name.volume
video.name.bottom
video.name.dropSource
video.name.dropTarget
video.name.dropX
video.name.dropY
video.name.eraseColor
video.name.eraseColorBlue
video.name.eraseColorGreen
video.name.eraseColorRed
video.name.height
video.name.heightPct
video.name.heightPx
video.name.hPosition
video.name.left
video.name.monitor
video.name.right
video.name.rotation
video.name.scale
video.name.top
video.name.vPosition
video.name.width
video.name.widthPct
video.name.widthPx
video.name.x
video.name.xPct
video.name.xPx
video.name.y
video.name.yPct
video.name.yPx
video.name.currentIndex
video.name.currentItem
video.name.currentItemNumber
video.name.currentValue
video.name.erase
video.name.itemCount
video.name.items
video.name.nextIndex
video.name.nextValue
video.name.playThrough
video.name.resetInterval
video.name.selectedCount
video.name.selectedIndex
video.name.selectedValue
video.name.skip
video.name.stimulusOnset
video.name.timestamp
video.name.unselectedCount
video.name.name
video.name.typeName

Functions

video.name.containsPoint
video.name.appendItem
video.name.clearItems
video.name.insertItem
video.name.item
video.name.removeItem
video.name.resetSelection
video.name.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>

Copyright Millisecond Software, LLC. All rights reserved.