video.settings.disable

getVideo(id).settings.disable() or getVideo(id).settings.disable(opacity) (since PennController 1.6) Will disable the controls interface. Note that some browsers might make the controls disappear altogether. If you pass no parameter, a 50% opaque layer will be printed on top of the interface. You can pass a value from 0.01 (fully transparent***) to 1 (fully opaque) to control the aspect …

standard.settings.cssContainer

getElement(id).settings.cssContainer(“styleName”, “style”) or getElement(id).settings.cssContainer({“style name 1”: “style 1”, “style name 2”: “style 2″}) Applies the CSS style(s) to the container’s element. This will affect both the element itself and any element wrapping it as added via or . This command often more closely accomplishes what you want to achieve than the command. Example: [js highlight=”4″ …

standard.refresh

getElement(id).refresh() (since PennController 1.1) Calls the command again on the element, while leaving it where it was printed last. This command is primarily useful if some aesthetic command does not take effect unless print is called afterward, but you do not want to call print because calling it when you need the aesthetic command to …

video.test.playing

getVideo(id).test.playing() (since beta 0.3) Tests whether the video stream is playing at the moment when the test command gets evaluated.

video.test.hasPlayed

getVideo(id).test.hasPlayed() (since beta 0.3) Tests whether the video stream has played at least once before in the trial.

video.settings.log

getVideo(id).settings.log() or getVideo(id).settings.log(“play”) or getVideo(id).settings.log(“pause”) or getVideo(id).settings.log(“end”) or getVideo(id).settings.log(“seek”) Tells to add a line in the results file each time an event happens. If you do not specify which event you want to log, all of them will add a line to the results file. “play” adds a line including a timestamp and an offset, …

video.settings.once

getVideo(id).settings.once() Disables the buttons to play/pause the video right after its first playing (the video can still be played using the action play). Example: [js highlight=”5″ try=”true”] newText(“instructions”, “Please watch the video below”) .print() , newVideo(“skate”, “skate.mp4”) .settings.once() .print() .wait() [/js] Adds some instruction text to the screen and a video below the text. After …

video.wait

getVideo(id).wait() or getVideo(id).wait(“first”) or getVideo(id).wait(test) Waits until the video resource is done playing before evaluating and executing the next commands. If you call wait(“first”), then if the video has already been played at least once by the time this command is evaluated, the next commands are evaluated and executed right away. If it was never …

video.stop

getVideo(id).stop() (since beta 0.3) Stops the playback of the video and goes back to the start of it, making it impossible to resume from the current position later. Example: [js highlight=”10″ try=”true”]newVideo(“skate”, “skate.mp4”) .print() .play() , newTimer(“preview”, 2500) .start() .wait() , getVideo(“skate”) .stop()[/js] Prints and starts playing the file sentence.mp4 and stops it after 2500ms. …

video.remove

getVideo(id).remove() Removes the <video> element from the screen. Example: [js try=”true” highlight=”6″] newVideo(“skate”, “skate.mp4”) .print() .wait() , getVideo(“skate”) .remove()[/js] Adds the video ksate.mp4 onto the screen, and removes it from the screen after the video has been fully played.