Exp-video-config Class
These docs have moved here.Video configuration frame guiding user through making sure permissions are set appropriately and microphone is working, with troubleshooting text. Almost all content is hard-coded, to provide a general-purpose technical setup frame.
"frames": {
"video-config": {
"kind": "exp-video-config",
"troubleshootingIntro": "If you're having any trouble getting your webcam set up,
please feel free to call the XYZ lab at (123) 456-7890 and we'd be glad to
help you out!"
}
}
Item Index
Methods
Properties
- audioOnly
- autosave
- doUseCamera
- maxRecordingLength
- maxUploadSeconds
- messageEarlyExitModal
- recorder
- recorderElement
- recorderReady
- showWaitForRecordingMessage
- showWaitForUploadMessage
- startRecordingAutomatically
- stoppedRecording
- troubleshootingIntro
- videoId
- videoList
- waitForRecordingMessage
- waitForRecordingMessageColor
- waitForUploadMessage
- waitForUploadMessageColor
- waitForWebcamImage
- waitForWebcamVideo
Methods
beforeUnload
-
event
Customize what happens when the user exits the page
Parameters:
-
event
EventThe event to be handled
Returns:
If string is provided, triggers a modal to confirm user wants to leave page
destroyRecorder
()
hideRecorder
()
makeTimeEvent
-
eventName
-
extra
Returns:
Event data object
onRecordingStarted
()
setupRecorder
-
element
Parameters:
-
element
NodeA DOM node representing where to mount the recorder
Returns:
showRecorder
()
startRecorder
()
Returns:
stopRecorder
()
Returns:
whenPossibleToRecordObserver
()
Properties
audioOnly
Number
Default: 0
autosave
Number
private
Default: 1
doUseCamera
Boolean
Default: true
maxRecordingLength
Number
Default: 7200
maxUploadSeconds
Number
Default: 5
messageEarlyExitModal
String | Null
The message to display in the early exit modal. Newer browsers may not respect this message.
recorder
VideoRecorder
private
recorderReady
Boolean
private
stoppedRecording
Boolean
private
troubleshootingIntro
String
Text to show as the introduction to the troubleshooting tips section
Default: ""
videoId
String
private
videoStream_<experimentId>_<frameId>_<sessionId>_timestampMS_RRR
where RRR are random numeric digits.
videoList
List
private
Events
pauseVideo
recorderReady
stoppingCapture
unpauseVideo
videoStreamConnection
Event Payload:
-
status
Stringstatus of video stream connection, e.g. 'NetConnection.Connect.Success' if successful