This property indicates whether the video is currently playing.
<video>
video.name.isPlaying
Read Only
boolean
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.
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>