Class: MovieStim

visual.MovieStim(options)

new MovieStim(options)

Movie Stimulus.
Parameters:
Name Type Description
options Object
Properties
Name Type Attributes Default Description
name String the name used when logging messages from this stimulus
win Window the associated Window
movie string | HTMLVideoElement the name of the movie resource or the HTMLVideoElement corresponding to the movie
units string <optional>
"norm" the units of the stimulus (e.g. for size, position, vertices)
pos Array.<number> <optional>
[0, 0] the position of the center of the stimulus
units string <optional>
'norm' the units of the stimulus vertices, size and position
ori number <optional>
0.0 the orientation (in degrees)
size number <optional>
the size of the rendered image (the size of the image will be used if size is not specified)
color Color <optional>
Color('white') the background color
opacity number <optional>
1.0 the opacity
contrast number <optional>
1.0 the contrast
interpolate boolean <optional>
false whether or not the image is interpolated
flipHoriz boolean <optional>
false whether or not to flip horizontally
flipVert boolean <optional>
false whether or not to flip vertically
loop boolean <optional>
false whether or not to loop the movie
volume number <optional>
1.0 the volume of the audio track (must be between 0.0 and 1.0)
noAudio boolean <optional>
false whether or not to play the audio
autoPlay boolean <optional>
true whether or not to autoplay the video
autoDraw boolean <optional>
false whether or not the stimulus should be automatically drawn on every frame flip
autoLog boolean <optional>
false whether or not to log
Source:
To Do:
  • autoPlay does not work for the moment.

Extends

  • VisualStim

Members

(private) _updateIfNeeded

Update the stimulus, if necessary.
Source:

contains

Determine whether the given object is inside this movie.
Source:

setFlipHoriz

Setter for the flipHoriz attribute.
Source:

setFlipVert

Setter for the flipVert attribute.
Source:

setMovie

Setter for the movie attribute.
Source: