video-recorder Class
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:
-
videoFilenameObjectdesired filename for video (will be set after saving with Pipe name) ['']
-
pipeKeyObjectPipe account hash ['']
-
pipeEnvObjectwhich Pipe environment [1]
-
maxRecordingTimeObjectrecording length limit in s [100000000]
-
autosaveObjectwhether to autosave - 1 or 0 [1]
-
audioOnlyObjectwhether 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