video-recorder Class
These docs have moved here.An instance of a video recorder tied to or used by one specific page. A given experiment may use more than one video recorder depending on the number of video capture frames.
Methods
destroy
()
Destroy video recorder
getTime
()
Date | Null
Get a timestamp based on the current recording position. Useful to ensure that tracked timing events line up with the video.
Returns:
install
-
videoFilename
-
pipeKey
-
pipeEnv
-
maxRecordingTime
-
autosave
-
audioOnly
Install a recorder onto the page and optionally begin recording immediately.
Parameters:
-
videoFilename
Objectdesired filename for video (will be set after saving with Pipe name) ['']
-
pipeKey
ObjectPipe account hash ['']
-
pipeEnv
Objectwhich Pipe environment [1]
-
maxRecordingTime
Objectrecording length limit in s [100000000]
-
autosave
Objectwhether to autosave - 1 or 0 [1]
-
audioOnly
Objectwhether to do audio only recording - 1 or 0 [0]
Returns:
Resolves when widget successfully installed and started
record
()
Promise
Start recording a video, and allow the state of the recording to be accessed for later usage
Returns:
stop
()
Stop recording and save the video to the server