up Inquisit Language Reference

isPlaying property

This property indicates whether the video is currently playing.

Member of

<video>

Syntax

video.name.isPlaying

Read Only

Type

boolean

Remarks

This property is useful to use in continuous trials that require participants to make responses to the content of a movie while the movie is playing.

Examples

The following displays if the video is currently playing:

<text myText>
/ items= ("isPlaying = <% video.test.isPlaying %>")
</text>

The following displays if the video is currently playing in an instruction page:

<page myPage>
isplaying = <% video.test.isPlaying %>
</page>

The following trial demonstrates how to use the property 'isPlaying' in a continuous trial. This continuous trial doesn't stop until the movie is done (see 'stop' condition), yet allows participants to repeatedly press the spacebar. All spacebar presses as well as their respective latencies are stored in the raw datafile.

<video target>
/ items = ("examplevideo.mp4")
/ playthrough = false
/ erase = false
</video>

<trial playVideo>
/ stop = {
  return (!video.target.isPlaying);
}
/ stimulusFrames = [1 = target]
/ validResponse = (" ")
</trial>

Copyright Millisecond Software, LLC. All rights reserved.